On an RPM-based system, type the rpm command that reports which installed package owns the file /usr/bin/ssh.

LPIC-1 Exam 101-500, objective 102. Linux installation and package management medium

Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.

It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.

Answer

Type the answer.

Accepted answers

Case sensitive — Linux is, and grading LS as ls would teach a falsehood.

Why

rpm's query mode is -q, and the letters after it select what you are querying. -qf FILE names the package owning a file, -ql PACKAGE lists the files a package installed, -qi PACKAGE prints its metadata, -qa lists every installed package, and -qc / -qd list its configuration and documentation files. Add -p to query a package file on disk instead of the installed database, as in 'rpm -qlp foo.rpm'. The Debian equivalent of -qf is 'dpkg -S'.

Where this comes from

Cited
LPI exam objective 102.5
What it says
Obtain information about installed RPM packages, including which package owns a file.

Practise this

Reading one question is not practice. The trainer will draw a set from objective 102 and space the ones you get wrong.

Practise LPIC-1 Exam 101-500