I'm used to extracting tarballs with a -xfz
flag, which handles gzip and bzip2 archives.
Recently I've run into a .tar.xz
file and I would like to uncompress it in one step using tar
, how can I do that?
compressiontar
I'm used to extracting tarballs with a -xfz
flag, which handles gzip and bzip2 archives.
Recently I've run into a .tar.xz
file and I would like to uncompress it in one step using tar
, how can I do that?
Best Answer
Ubuntu includes GNU tar, which recognizes the format by itself! One command works with any supported compression method, per the manual.
etc. If tar gives a
Cannot exec
error, you may need tosudo apt install xz-utils
first.