LFCS · Question #836
How do you get a list of files that have been installed from a dpkg package?
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.
Question
Options
- Adpkg-I pkgname
- Bdpkg-C pkgname
- Cdpkg-s pkgname
- Ddpkg-S pkgname
- Edpkg-L pkgname
How the community answered
(45 responses)- A2% (1)
- B2% (1)
- D7% (3)
- E89% (40)
Why each option
The `dpkg -L` command is used to list all the files that belong to a specified installed Debian package.
`dpkg -I` is not a standard or recognized option for listing files within a package; `-i` is typically used for installing a package.
The `dpkg -C` command is used to check for broken or partially installed packages, not to list the files within a package.
The `dpkg -s pkgname` command displays the status information (e.g., installed, removed) about a package, but it does not list its files.
The `dpkg -S filename` command searches for which installed package owns a particular file, which is the opposite of listing files within a known package.
The `dpkg -L pkgname` command is specifically designed to list all the files and directories that are installed as part of the specified Debian package. This allows users to see the entire file structure provided by a package.
Concept tested: DPKG package file listing
Source: https://manpages.debian.org/testing/dpkg/dpkg.8.en.html
Topics
Community Discussion
No community discussion yet for this question.