nerdexam
CompTIA

XK0-005 · Question #347

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…

The correct answer is A. rpm -qf /bin/someapp. 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…

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

How the community answered

(54 responses)
  • A
    89% (48)
  • B
    6% (3)
  • C
    2% (1)
  • D
    4% (2)

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.

Topics

#RPM#Package Management#Command Line#File Ownership

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice