Install rar and unrar online decompression software in CentOS
In other words, how do I install rar and unrar online decompression software on centos?
If your centos is 32-bit, run the following command:
Wgethttp: // www.rarsoft.com/rar/rarlinux-3.9.3.tar.gz
Tar-zxvfrarlinux-3.9.3.tar.gz
Cdrar
Make sees that the following information is successfully installed:
Mkdir-p/usr/local/bin
Mkdir-p/usr/local/lib
Cprarunrar/usr/local/bin
Cprarfiles. lst/etc
Cpdefault. sfx/usr/local/lib common rar commands:
Rarxcentos.rar // decompress centos.rar to the current directory
Rarcentos.rar./piaoyi.org///pack piaoyi.orgdirectory as centos.rarHowever, it is recommended that you use zip compression and decompression, because zip is generally provided in linux:
1. zip
Zip-rmyfile.zip./web
Compress all files and folders under the current web directory into a myfile.zip file.-r indicates recursive compression of all files under the subdirectory.
2. unzip
Unzip-o-d/home/sunnymyfile.zip
Decompress the myfile.zip file to/home/sunny/
-O: overwrite the file without prompting;
-D:-d/home/sunny indicates to extract the file to the/home/sunny directory;
Common error Cause Analysis:
1,If the following problem occurs when running the command rar
Rar:/lib/i686/nosegneg/libc. so.6: version 'glibc _ 2.7 'notfound (requiredbyrar)
Solution:
Cprar_static/usr/local/bin/rar2,An error occurs when rar is used.
Bash:/usr/local/bin/rar:/lib/ld-linux.so.2: badELFinterpreter: Nosuchfileordirectory
Because the 32-bit program is installed in the 64-bit system, the solution is as follows:
Yuminstallglibc. i6863,After you reinstall glibc. i686, the following similar errors will occur:
Errorwhileloadingsharedlibraries: libstdc ++. so.6: cannotopen#dobjectfile: Nosuchfileordirectory
Continue with the installation package:
Yuminstalllibstdc ++. so.6
Supplement foreign sources:
InstallRar/Unrarcentos6
For64bit
Installunrarcentosx64
# Wgethttp: // pkgs.repoforge.org/unrar/unrar-4.0.7-1.el6.rf.x86_64.rpm
# Rpm-Uvhunrar-4.0.7-1.el6.rf.x86_64.rpmInstallrarcentosx64
# Wgethttp: // pkgs.repoforge.org/rar/rar-3.8.0-1.el6.rf.x86_64.rpm
# Rpm-Uvhrar-3.8.0-1.el6.rf.x86_64.rpm
For32bit
Installunrarcentos32
# Wgethttp: // pkgs.repoforge.org/unrar/unrar-4.0.7-1.el6.rf.i686.rpm
# Rpm-Uvhunrar-4.0.7-1.el6.rf.i686.rpm
Installrarcentos32
# Wgethttp: // pkgs.repoforge.org/rar/rar-3.8.0-1.el6.rf.i686.rpm
# Rpm-Uvhrar-3.8.0-1.el6.rf.i686.rpmThis article is complete.