How to decompress the CentOS .tar.gz. tar. xz .tar.bz2. tar. lz File
The most common source code package downloaded from the network is the .tar.gz .tar.bz2 package, and some are. tar. xz. tar. lz packages.
Some people say that. tar. xz is the king of compression rates, but the compression ratio of .tar. lz is higher:
To decompress .tar.gz .tar.bz2, it is very easy:
Decompress the file in .tar.gz format to tar-zxvf xx.tar.gz.
Decompress the file in .tar.bz2 format to tar-jxvf xx.tar.bz2
. Tar. xz. tar. lz is more complex:
. Tar. decompression method:
Xz-d mpfr-3.1.2.tar.xz
Upload an mpfr-3.1.2.tar file and then execute
Tar-xvf mpfr-3.1.2.tar
. Tar. lz decompression method:
This format needs to be decompressed using Lzip or Lunzip. This program is not installed by default in CentOS 6.5.
[root@localhost opt]# lzip-bash: lzip: command not found[root@localhost opt]# lunzip-bash: lunzip: command not found[root@localhost opt]#
Syntax: lzip-d file. lz more see: http://www.nongnu.org/lzip/manual/lzip_manual.html#Examples
Download: http://www.nongnu.org/lzip/ http://download.savannah.gnu.org/releases/lzip/