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: // Others. how can I install the online decompression software rar and unrar on centos?
If your centos is 32-bit, run the following command:
Wget http://www.rarsoft.com/rar/rarlinux-3.9.3.tar.gz
Tar-zxvf rarlinux-3.9.3.tar.gz
Cd rar
Make sees that the following information is successfully installed:
Mkdir-p/usr/local/bin
Mkdir-p/usr/local/lib
Cp rar unrar/usr/local/bin
Cp rarfiles. lst/etc
Common rar commands for cp default. sfx/usr/local/lib:
Rar x centos.rar // Extract centos.rar to the current directory
Rar centos.rar./piaoyi.org // package the piaoyi.org directory as centos.rar
However, it is recommended that you use zip compression and decompression, because zip is generally provided in linux.:
1. zip
Zip-r myfile.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/sunny myfile.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 _ 000000' not found (required by rar)
Solution:
Cp rar_static/usr/local/bin/rar2,
An error occurs when rar is used.
Bash:/usr/local/bin/rar:/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Because the 32-bit program is installed in the 64-bit system, the solution is as follows:
Yum install glibc. i6863,
After you reinstall glibc. i686, the following similar errors will occur:
Error while loading shared libraries: libstdc ++. so.6: cannot open shared object file: No such file or directory
Continue with the installation package:
Yum install libstdc ++. so.6
Supplement foreign sources:
Install Rar/Unrar centos 6
For 64 bit
Install unrar centos x64
# Wget http://pkgs.repoforge.org/unrar/unrar-4.0.7-1.el6.rf.x86_64.rpm
# Rpm-Uvh unrar-4.0.7-1.el6.rf.x86_64.rpm
Install rar centos x64
# Wget http://pkgs.repoforge.org/rar/rar-3.8.0-1.el6.rf.x86_64.rpm
# Rpm-Uvh rar-3.8.0-1.el6.rf.x86_64.rpm
For 32 bit
Install unrar centos 32
# Wget http://pkgs.repoforge.org/unrar/unrar-4.0.7-1.el6.rf.i686.rpm
# Rpm-Uvh unrar-4.0.7-1.el6.rf.i686.rpm
Install rar centos 32
# Wget http://pkgs.repoforge.org/rar/rar-3.8.0-1.el6.rf.i686.rpm
# Rpm-Uvh rar-3.8.0-1.el6.rf.i686.rpm
This article is complete.