Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to decompress a .tar.xz file?

Tags:

linux

There is a file having an extension .tar.xz : wkhtmltox-linux-i386_0.12.0-03c001d.tar.xz

What is the linux command to uncompress it ?

like image 969
pheromix Avatar asked Feb 03 '26 18:02

pheromix


2 Answers

From the Ubuntu Site here.

tar -xJf wkhtmltox-linux-i386_0.12.0-03c001d.tar.xz
like image 125
omoman Avatar answered Feb 05 '26 08:02

omoman


If you have a recent version of tar (1.25 or later), you should be able to just type:

tar xf wkhtmltox-linux-i386_0.12.0-03c001d.tar.xz

And it will correctly determine what type of decompression to use.

In addition, you can use tar caf archive.ext files_to_add to create archives, and it will decide which compression algorithm to use based on the extension of the archive.

like image 42
Wlerin Avatar answered Feb 05 '26 07:02

Wlerin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!