Forrest logo
back to the dpkg-deb tool

dpkg-deb:tldr:eafc0

dpkg-deb: List the package's contents.
$ dpkg-deb --contents ${filename-deb}
try on your machine

The command "dpkg-deb --contents ${filename-deb}" is used to list the contents of a Debian package (.deb file).

Let's break it down:

  • "dpkg-deb": This is the command provided by the dpkg package management system in Debian-based systems. It is used for managing Debian packages.

  • "--contents": This flag is used to specify that we want to list the contents of a package.

  • "${filename-deb}": This is a placeholder that represents the name of the .deb file you want to inspect. You need to replace it with the actual file name and path.

By running this command, you will see a list of files and directories contained within the specified .deb file. This can be useful for checking what files will be installed or modified by the package, ensuring that there are no unexpected changes.

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-deb tool