Extracting rar Zip files under CentOS

Source: Internet
Author: User
Tags rar

Gossip does not say, CentOS on how to install RAR, Unrar online decompression software?
If your CentOS is 32-bit, execute 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

See the following message that the installation was successful:

Mkdir-p/usr/local/bin
Mkdir-p/usr/local/lib
CP rar Unrar/usr/local/bin
CP Rarfiles.lst/etc
CP Default.sfx/usr/local/lib

Common RAR Commands:

RAR x Centos.rar//unzip Centos.rar to current directory
RAR centos.rar./piaoyi.org///Package piaoyi.org directory as Centos.rar

But it is recommended that you use ZIP compression and decompression, because zip is generally the Linux system comes with :
1.Zip

Zip-r Myfile.zip./web


All files and folders under the Web in the current directory are compressed into myfile.zip files, and-r means all files in the recursive compressed subdirectory.

2,unzip

Unzip-o-d/home/sunny Myfile.zip


Unzip the Myfile.zip file to/home/sunny/
-O: Overwrite the file without prompting;
-d:-d/home/sunny indicates that the file is extracted to the/home/sunny directory; Common error cause analysis :
1, If you run the command RAR, the following problem occurs

RAR:/lib/i686/nosegneg/libc.so.6:version ' glibc_2.7 ' not found (required by RAR)


Workaround:

CP Rar_static/usr/local/bin/rar

2, the use of RAR error occurs when

BASH:/usr/local/bin/rar:/lib/ld-linux.so.2:bad ELF interpreter:no such file or directory


Because a 32-bit program is installed in a 64-bit system, the workaround:

Yum Install glibc.i686

3, re-install glibc.i686 after the following similar errors

Error while loading shared Libraries:libstdc++.so.6:cannot open Shared object file:no such file or directory


Before continuing with the installation package:

Yum Install libstdc++.so.6


Supplement foreign sources :

For a bit
Install Rar/unrar CentOS 6
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 + 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

The end of this article.

Extracting rar Zip files under CentOS

Related Article

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.