Install rar and unrar online decompression software in CentOS

Source: Internet
Author: User

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.rpm

Installrarcentosx64
# 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.rpm

This article is complete.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.