![Forrest logo](/images/logo.png)
dpkg:tldr:b8770
dpkg: List a package's contents.
$ dpkg -L ${package_name}
try on your machine
The command "dpkg -L ${package_name}" is used to list all the files installed by a specific package in Debian-based operating systems.
Here's a breakdown of the command:
- "dpkg" is the primary package management command in Debian-based systems (Debian, Ubuntu, etc.).
- "-L" is an option that specifies that we want to list the files belonging to a package.
- "${package_name}" is a placeholder for the name of the package you want to list the files for. You need to replace "${package_name}" with the actual name of the package.
When you execute this command with the appropriate package name, it will display a list of files installed by that package. This includes configuration files, binaries, libraries, documentation, and any other files that come with the package.
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.