exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 268 discussion

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

A Linux administrator needs to determine if prerequisites are met. One of the application requirements is to install Perl on a system. Which of the following commands would accomplish this task?

  • A. rpm –Uf perl
  • B. rpm –iv perl
  • C. rpm –qa perl
  • D. rpm –eh perl
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
IamNotInKey
2 weeks, 4 days ago
Selected Answer: B
The question asks to install the package, which is done with -i.
upvoted 1 times
...
Bull88
5 months, 3 weeks ago
Selected Answer: B
Because the question says that the user needs to install a package, and with "-i" you will install the package and with the "-v" you will see the verbose of the installation and right there the admin can check if the requirments are met
upvoted 3 times
...
Lorello2023
6 months ago
Selected Answer: C
q = query a = all This queries if a package is installed Will show Perl if it's installed
upvoted 4 times
NastyNutsu
4 months, 1 week ago
"One of the application requirements is to install Perl on a system" that mean the installation have not happen yet, so: Red Hat Package Manager (RPM) -U upgrade -i install the packaged -v verbose mode -q query -e erase -h hash mark rmp -iv pearl -- install pear with verbose mode enable is B malord~
upvoted 2 times
Storcaks
1 week, 4 days ago
You missed the first part of the question, "Linux administrator needs to determine if prerequisites are met". There is no point in installing perl if it's already there. rpm -iv perl is not valid syntax, needs RPM file (e.g., perl-5.32.rpm), not just the name. rpm -qa perl is valid and will check if it's already installed. C is correct.
upvoted 1 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 ...