Skip to content
Home » How to uncompress a tarball that uses .xz

How to uncompress a tarball that uses .xz

To uncompress a tarball that uses .xz run the below command. The tar with suitable options helps to uncompress .xz files.

tar xf archive.tar.xz

If the above command gives any cannot exec error the initially install sudo apt install xz-utils.

If the above command doesn’t work in your case then try :

tar -xJf file.tar.xz

Hope these commands solves your issues.

Also Read:

How to find size of the folder in linux