nerdexam
Linux_Foundation

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.

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

How the community answered

(45 responses)
  • A
    2% (1)
  • B
    2% (1)
  • D
    7% (3)
  • E
    89% (40)

Why each option

The `dpkg -L` command is used to list all the files that belong to a specified installed Debian package.

Adpkg-I pkgname

`dpkg -I` is not a standard or recognized option for listing files within a package; `-i` is typically used for installing a package.

Bdpkg-C pkgname

The `dpkg -C` command is used to check for broken or partially installed packages, not to list the files within a package.

Cdpkg-s pkgname

The `dpkg -s pkgname` command displays the status information (e.g., installed, removed) about a package, but it does not list its files.

Ddpkg-S pkgname

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.

Edpkg-L pkgnameCorrect

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

#dpkg#package management#command line#file listing

Community Discussion

No community discussion yet for this question.

Full LFCS Practice