Home ubuntu Unpacking archive TAR.XZ

Unpacking archive TAR.XZ




Faced with archive type tar.xz. What is it and how to unpack?

Answer 1, Authority 100%

XZ is a file compression format using the LZMA algorithm. To use on Ubuntu, you need to install xz-utils.


sudo apt-get install xz-utils


tar -xpjf archive.tar.xz

Answer 2, Authority 47%

In the future, in order not to take care of what type of archive, you can put the Atool utility:

$ sudo apt-get install atool

for unpacking (show on the examples):

$ aunpack a.7z
$ aunpack a.tag.gz.
$ aunpack a.zip.

For archiving:

$ apack a.7z file1.txt file2 dir1

To view the contents:

$ als a.7z

et al.

Answer 3, Authority 20%

There is a universal solution.

In all popular distributions of the operating system GNU / Linux , there is a package dtrx (“do the right extraction”). When it is installed on the dependences, the unpackurser missing in the system will be installed.

The program independently determines what is inside the file, and knows how to unpack TAR, ZIP (including self-extracting .exe), CPIO, RPM, DEB, GEM, 7Z, CAB, RAR, files created by InstallShield, compressed Gzip, BZIP2, LZMA and compress.

If within the archive of other archives / compressed files within the archive, the program is interactively proposed to unpack them.


$ dtrx compressed. File. and

Developer page

man dtrx

Answer 4

On Linux is Unar , unpacking everything and normally processing Russian encoding in Zip . For tar.xz also fits.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions