Forrest logo
back to the dpkg-deb tool

dpkg-deb:tldr:415e4

dpkg-deb: Extract package's contents into a directory.
$ dpkg-deb --extract ${filename-deb} ${path-to-directory}
try on your machine

This command is used to extract the contents of a Debian package (*.deb file) into a specified directory.

The command is broken down as follows:

  1. dpkg-deb: This is the command-line tool used to work with Debian packages.

  2. --extract: This parameter specifies that we want to extract the contents of the package.

  3. ${filename-deb}: This is the name of the Debian package file (*.deb) that you want to extract. The filename-deb should be replaced with the actual name of the package file.

  4. ${path-to-directory}: This is the path to the directory where you want to extract the contents of the package. The path-to-directory should be replaced with the actual path to the directory.

When you run this command, dpkg-deb will extract the contents of the specified Debian package file into the specified directory. This can be useful for inspecting the files in a package, or manually extracting specific files from a 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.
back to the dpkg-deb tool