exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 352 discussion

Actual exam question from CompTIA's XK0-004
Question #: 352
Topic #: 1
[All XK0-004 Questions]

A junior administrator needs to display information for an RPM package that contains software from an external provider.
Which of the following commands will display the package information?

  • A. rpm -vp package.noarch.rpm
  • B. rpm -qp package.noarch.rpm
  • C. rpm -qf package.noarch.rpm
  • D. rpm -qi package.noarch.rpm
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
saci_frosty
2 years, 5 months ago
Selected Answer: D
D is correct. -qi (query information) https://phoenixnap.com/kb/rpm-command-in-linux
upvoted 3 times
...
evgeniyk
2 years, 5 months ago
I assume proper command should be "rpm -qpi file.rpm" w/o --info we will not get details. but w/o --package we cannot read info from rpm file. Looks like B is the most suitable, but in my opinion each command is bad.
upvoted 2 times
...
edwram
2 years, 5 months ago
Selected Answer: B
Answer is B since "-i" would install the package. -i, --install Install package(s). -q, --query Query package(s).
upvoted 3 times
...
lo_01234_ol
2 years, 6 months ago
Selected Answer: B
rpm -qp -q query -p package
upvoted 2 times
...
NJSoutltaker
2 years, 6 months ago
Selected Answer: D
https://wiki.linuxfoundation.org/networking/rpm-commands
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago