Under Windows RAR is a common compressed file format, many friends will be packaged into a RAR file into the CentOS server but do not know how to extract.
There have been a lot of customers consulting how to extract the RAR under the CentOS compressed files, so I sorted out, GU has this article.
To extract the RAR file, you need to install a software named Unrar on the CentOS. All versions of the software download the address: http://pkgs.repoforge.org/unrar/.
Let's say how to install Unrar.
Centos 5 32-bit installation
wget http://pkgs.repoforge.org/unrar/unrar-4.2.3-1.el5.rf.i386.rpm
RPM-IVH unrar-4.2.3-1.el5.rf.i386.rpm
Centos 5 64-bit installation
wget http://pkgs.repoforge.org/unrar/unrar-4.2.3-1.el5.rf.x86_64.rpm
RPM-IVH unrar-4.2.3-1.el5.rf.x86_64.rpm
Centos 6 32-bit installation
wget http://pkgs.repoforge.org/unrar/unrar-4.2.3-1.el6.rf.i686.rpm
RPM-IVH unrar-4.2.3-1.el6.rf.i686.rpm
Centos 6 64-bit installation
wget http://pkgs.repoforge.org/unrar/unrar-4.2.3-1.el6.rf.x86_64.rpm
RPM-IVH unrar-4.2.3-1.el6.rf.x86_64.rpm
How to extract a rar file using Unrar
Use the-? parameter to view Help information, the x parameter is used to extract the file, the T parameter is used to test for damage, and the L parameter is used to list files.
Unrar-? <== Get Help
Unrar x <== Extract Files
Unrar T <== test file
Unrar L <== List files
These basic usages can already satisfy the daily application. Original reprint of this site annotated source http://www.111cn.net