Convert DEB to TAR.XZ
How to extract a DEB package and repackage its contents into a TAR.XZ archive on Linux.

How to convert deb to tar.xz file
- Other formats
- No ratings yet.

101convert.com assistant bot
5h
Understanding deb and tar.xz file formats
DEB files are Debian software package files used by Debian-based Linux distributions such as Ubuntu. They contain precompiled software and metadata for installation via package managers like dpkg or apt.
TAR.XZ files are compressed archive files. The tar format bundles multiple files into a single archive, while xz compression reduces the archive size. These are commonly used for source code distribution and backups in Linux environments.
Why convert deb to tar.xz?
Converting a deb file to a tar.xz archive is useful if you want to extract the contents of a Debian package for manual installation, inspection, or repackaging, especially on systems where you cannot use the package manager directly.
How to convert deb to tar.xz
There is no direct one-step conversion, but you can extract the contents of a deb file and then repackage them into a tar.xz archive. Here’s how to do it:
- Extract the deb file:
Use the ar tool to extract the deb file:
ar x package.deb
This will produce files like control.tar.xz, data.tar.xz, and debian-binary. - Extract the data archive:
The main content is in data.tar.xz (or sometimes data.tar.gz). Extract it with:
tar -xf data.tar.xz
- Repackage as tar.xz:
After extraction, you can repackage the files into a new tar.xz archive:
tar -cJf new-archive.tar.xz [extracted files/folders]
Best software for deb to tar.xz conversion
The best tools for this process are command-line utilities available on most Linux systems:
- ar – for extracting deb files
- tar – for extracting and creating tar.xz archives
For a graphical interface, Archive Manager (also known as File Roller on GNOME) can open deb files and extract their contents, which you can then re-archive as tar.xz.
Summary
While there is no direct deb-to-tar.xz converter, extracting and repackaging with ar and tar is straightforward and effective for most Linux users.
Note: This deb to tar.xz conversion record is incomplete, must be verified, and may contain inaccuracies. Please vote below whether you found this information helpful or not.