Linux_FoundationLinux_Foundation
LFCS · Question #836
LFCS Question #836: Real Exam Question with Answer & Explanation
The correct answer is E: dpkg-L pkgname. The dpkg -L command is used to list all the files that belong to a specified installed Debian package.
Submitted by fatema_kw· Apr 18, 2026Essential Commands
Question
How do you get a list of files that have been installed from a dpkg package?
Options
- Adpkg-I pkgname
- Bdpkg-C pkgname
- Cdpkg-s pkgname
- Ddpkg-S pkgname
- Edpkg-L pkgname
Explanation
The dpkg -L command is used to list all the files that belong to a specified installed Debian package.
Common mistakes.
- A.
dpkg -Iis not a standard or recognized option for listing files within a package;-iis typically used for installing a package. - B. The
dpkg -Ccommand is used to check for broken or partially installed packages, not to list the files within a package. - C. The
dpkg -s pkgnamecommand displays the status information (e.g., installed, removed) about a package, but it does not list its files. - D. The
dpkg -S filenamecommand searches for which installed package owns a particular file, which is the opposite of listing files within a known package.
Concept tested. DPKG package file listing
Reference. https://manpages.debian.org/testing/dpkg/dpkg.8.en.html
Topics
#dpkg#package management#command line#file listing
Community Discussion
No community discussion yet for this question.