Crmgo Blog

Unpacking deb

Unpacking deb

To unpack a .deb package, you need to perform the following two steps: 1) Determine the compression type of the data by running: ar t package_name.deb | grep data This will return the name of the file in the archive, for example, data.tar.gz. 2) Execute the corresponding command from the list below based on the file name: ar -p…

Unpacking deb

To unpack a deb package, you need to perform the following two steps:

1) Determine the compression type of the data

ar t package_name.deb | grep data

The output will be the name of the file in the archive, for example, data.tar.gz.

2) Execute the corresponding command from the list below based on the file name:

  • ar -p package_name.deb data.tar.gz | tar zx -C .
  • ar -p package_name.deb data.tar.bz2 | tar jx -C .
  • ar -p package_name.deb data.tar.lzma | unlzma | tar x -C .

The files will be unpacked into the current directory.

Unpacking DEB via the DPKG package manager

To unpack, simply run the command:

dpkg --extract package_name.deb .

The unpacking will be performed in the current directory.

Note: This post may be AI-assisted and then human-edited. Editorial responsibility: Dmytro Lomaka, Kaltenkirchen.