I was trying to extract tar.xz file in Ubuntu recently and was getting errors. The “Right click” –> “Extract” too din’t work. I assumed that as it was tar file it should have the capability to extract this file too. But it was not the case.
Here is how I extracted the tar.xz file:
- First of all we need to install xz-utils package so that the command works. You can install this by using the following command:
sudo apt-get install xz-utils
- Now give the following command to extract the file:
tar xJf foo.tar.xz
Thats it. This will do the trick. Now you can extract tar.xz file using the above tar command or using the “Right click” –> “Extract” method.
If you find any difficulty please leave a comment. I will appreciate a simple “Thanks” if that helps you.