Forrest logo
back to the dpkg-query tool

dpkg-query:tldr:969bf

dpkg-query: List all files installed by a package.
$ dpkg-query --listfiles ${libc6}
try on your machine

The dpkg-query --listfiles ${libc6} command is used to retrieve a list of files installed by the libc6 package on a Debian-based system.

Here's a breakdown of the command:

  • dpkg-query is the command-line tool used to query information about installed packages on Debian-based systems.
  • --listfiles is an option for dpkg-query that specifies that we want to retrieve a list of files installed by the specified package.
  • ${libc6} is a variable that represents the package name 'libc6'. The ${} syntax is used to reference variables in command-line environments.

By running this command, you will get a list of files installed by the 'libc6' package, which is a crucial library package providing the standard C library functions for programs on a Debian-based system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the dpkg-query tool