Extract or uncompress tar.xz files

From ezUnix
Jump to: navigation, search
                                    pdf_icon.png Download this article as a single PDF document 


XZ Utils is free general-purpose data compression software with high compression ratio.
XZ Utils were written for POSIX-like systems, but also work on some not-so-POSIX systems.
tar.xz compression is becoming more and more popular.

Here is how it works

  • On Debian or Ubuntu, first install the package xz-utils
# sudo apt-get install xz-utils
  • Extract a .tar.xz the same way you would extract any tar.__ file.
# tar -xf file.tar.xz


  • To create a .tar.xz archive, use tack c
# tar -cJf linux-3.12.6.tar.xz linux-3.12.6/


# tar -cJf [name of archive] [directory to compress]

Think x to extract, and c to create.

That's all folks!

<comments />
Talk:Extract or uncompress tar.xz files