nerdexam
ExamsLX0-103Questions#23
CompTIA

LX0-103 · Question #23

LX0-103 Question #23: Real Exam Question with Answer & Explanation

The correct answer is E: dpkg-L pkgname. The dpkg -L command lists all files that were installed onto the system by a named package.

Linux Installation and Package Management

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 lists all files that were installed onto the system by a named package.

Common mistakes.

  • A. dpkg -I (--info) extracts and displays metadata from a .deb archive file directly, not from an already-installed package's file list.
  • B. dpkg -C (--audit) checks installed packages for inconsistencies or broken states and does not list individual installed files.
  • C. dpkg -s (--status) shows the installation status and metadata fields of a package but does not enumerate the files the package installed.
  • D. dpkg -S (--search) searches which package owns a given filename pattern, which is the reverse operation of listing all files belonging to a package.

Concept tested. dpkg -L to list files from an installed package

Reference. https://man7.org/linux/man-pages/man1/dpkg.1.html

Topics

#dpkg#dpkg -L#package files#Debian packages

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice
How do you get a list of files that have been installed from a... | LX0-103 Q#23 Answer | NerdExam