CompTIA Linux+ (XK0-005) — Question 176
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?
Answer options
- A. rpm -qf /bin/someapp
- B. rpm -Vv /bin/someapp
- C. rpm -p /bin/someapp
- D. rpm -i /bin/someapp
Correct answer: A
Explanation
The command 'rpm -qf /bin/someapp' queries the RPM database to find the package that owns the specified file, making it the correct choice. The other commands either verify the package, provide information about a package file, or attempt to install a package, none of which will show the package name for the existing binary.