nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #707

LFCS Question #707: Real Exam Question with Answer & Explanation

The correct answer is E: rpm-qlp vorbis-tools-1.1.1386.rpm. To list the files contained within an uninstalled RPM package file, the rpm command requires query (-q), list files (-l), and package file (-p) options.

Submitted by diego_uy· Apr 18, 2026Essential Commands

Question

Which command will list all the files installed from the RPM package file named, vorbis-tools- 1.1 .i386.rpm?

Options

  • Arpm-qfvorbis-tools-1.1 .i386.rpm
  • Brpm -F vorbis-tools-1.1 .i386.rpm
  • Crpm -pf vorbis-tools-1.1 .i386.rpm
  • Drpm -ql vorbis-tools-1.1.1386.rpm
  • Erpm-qlp vorbis-tools-1.1.1386.rpm

Explanation

To list the files contained within an uninstalled RPM package file, the rpm command requires query (-q), list files (-l), and package file (-p) options.

Common mistakes.

  • A. rpm -qf is used to query which package owns a specific file, not to list files within a package file.
  • B. rpm -F (freshen) is used to update installed packages, not to list files within a package file.
  • C. rpm -pf is an invalid combination of options; -p is for package file, and -f is for querying files, but not in this structure to list contents.
  • D. rpm -ql vorbis-tools-1.1.i386.rpm would attempt to query an installed package named "vorbis-tools-1.1.i386.rpm", which is unlikely to be its actual installed name, and it lacks the -p option to specify it's a file on disk.

Concept tested. RPM package file content listing

Reference. https://man7.org/linux/man-pages/man8/rpm.8.html

Topics

#RPM package management#Package queries#File listing

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions