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.
