nerdexam
CompTIACompTIA

XK0-005 · Question #347

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

The correct answer is A: rpm -qf /bin/someapp. {"question_number": 3, "explanation": "rpm -qf /bin/someapp queries (-q) which installed RPM package owns a specific file (-f = file). This is essential when you know the file path but not the package name. -Vv verifies package integrity with verbose output (not for file-to-packa

System Management

Question

A systems administrator wants to upgrade /bin/someapp to a new version, but the administrator does not know the package name. Which of the following will show the RPM package name that provides that binary file?

Options

  • Arpm -qf /bin/someapp
  • Brpm -Vv /bin/someapp
  • Crpm -p /bin/someapp
  • Drpm -i /bin/someapp

Explanation

{"question_number": 3, "explanation": "rpm -qf /bin/someapp queries (-q) which installed RPM package owns a specific file (-f = file). This is essential when you know the file path but not the package name. -Vv verifies package integrity with verbose output (not for file-to-package lookup). -p queries an uninstalled RPM package file (requires a .rpm file, not an installed binary path). -i installs a package. The -qf combination is the standard RPM way to perform reverse file-to-package lookups.", "generated_by": "claude-sonnet", "llm_judge_score": 5}

Topics

#RPM#Package Management#Command Line#File Ownership

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions