Article Title: compression and decompression of tarbzgz and other compressed packages in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Rar --------------------------------------------------------------
If the installation is in the form of a tarball, go to the rar website to download the corresponding version of tarball. The address is http://www.rarlab.com/take 3.88.0 as an example, if it is an IMG platform, execute the following command: Too wget linux-3.8.0.tar.gz "> http://www.rarlab.com/rar/rarlinux-3.8.0.tar.gz
Rar software does not need to be installed. decompress it to/usr/local. The following operations require the root permission.
# Tar zxvf rarlinux-3.8.0.tar.gz-C/usr/local
In this case, the/usr/local/rar command and the unrar command are available. You can create a connection under/usr/local/bin.
# Ln-s/usr/local/rar/usr/local/bin/rar
# Ln-s/usr/local/rar/unrar/usr/local/bin/unrar
If it is debian or unbuntu, you can use the following command for automatic installation.
$ Sudo apt-get install rar
$ Sudo apt-get install unrar
Tar ------------------------------------------------------------------
.Tar.gz unzip: tar zxvf FileName.tar.gz compression: tar zcvf FileName.tar.gz DirName
This section roughly summarizes the compression and decompression methods for various formats of compressed packages in linux. However, I have not used some of the methods. I hope you can help me with them. I will modify them at any time. Thank you!
. Tar unpack: tar xvf FileName.tar package: tar cvf FileName.tar DirName (Note: tar is packed, not compressed !)
---------------------------------------------
. Gz unzip 1: gunzip FileName.gz unzip 2: gzip-d FileName.gz
Compression: gzip FileName
.Tar.gz and. tgz unzip: tar zxvf FileName.tar.gz compression: tar zcvf FileName.tar.gz DirName
---------------------------------------------
. Bz2 extract 1: bzip2-d FileName.bz2 extract 2: bunzip2 FileName.bz2
Compression: bzip2-z FileName
.Tar.bz2 decompression: tar jxvf FileName.tar.bz2 compression: tar jcvf FileName.tar.bz2 DirName
---------------------------------------------
. Bz extract 1: bzip2-d FileName. bz extract 2: bunzip2 FileName. bz
Compression: Unknown
. Tar. bz unzip: tar jxvf FileName.tar. bz
Compression: Unknown
---------------------------------------------
. Z unzip: uncompress FileName. Z
Compression: compress FileName
. Tar. Z decompress: tar Zxvf FileName.tar. Z compression: tar Zcvf FileName.tar. Z DirName
---------------------------------------------
. Zip decompress: unzip FileName.zip compression: zip FileName.zip DirName
---------------------------------------------
. Rar decompression: rar x FileName.rar compression: rar a FileName.rar DirName
Rar Please download to: http://www.rarsoft.com/download.htm!
After decompression, copy rar_static to the/usr/bin directory (Other Directories specified by the $ PATH environment variable can also be used ):
[Root @ www2 tmp] # cp rar_static/usr/bin/rar
[1] [2] [3] [4] Next page