nerdexam
CompTIACompTIA

XK0-005 · Question #1672

XK0-005 Question #1672: Real Exam Question with Answer & Explanation

The correct answer is C: rpm -qa perl. {"question_number": 8, "correct_answer": "C", "explanation": "rpm -qa queries all installed RPM packages. When combined with a package name like rpm -qa perl, it returns the installed version of Perl if it is present, or no output if it is not - this verifies whether the prerequi

System Management

Question

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?

Options

  • Arpm -Uf perl
  • Brpm -iv perl
  • Crpm -qa perl
  • Drpm -eh perl

Explanation

{"question_number": 8, "correct_answer": "C", "explanation": "rpm -qa queries all installed RPM packages. When combined with a package name like rpm -qa perl, it returns the installed version of Perl if it is present, or no output if it is not - this verifies whether the prerequisite is met. rpm -Uf upgrades or installs a package from a file, not a query. rpm -iv installs a package verbosely; it does not check if it is already installed. rpm -eh is not a valid rpm option combination.", "generated_by": "claude-sonnet", "llm_judge_score": 5}

Topics

#Package Management#RPM#Linux Commands#Software Installation

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions