Install LinuxRAR on Centos

Source: Internet
Author: User
In Windows, we usually compress files more easily or use RAR. by default, Linux does not support RAR compression and decompression. in Linux, RAR software [LinuxRAR] is also free of charge! Run the following command to download the installation package, decompress and install wgethttp: // www.rarsoft.com/rar/rarlinux-3

In Windows, we usually compress files more easily or use RAR. by default, Linux does not support RAR compression and decompression. in Linux, RAR software [LinuxRAR] is also free of charge!

Run the following command to download and unzip the installation package:

 

 
wget http://www.rarsoft.com/rar/rarlinux-3.9.3.tar.gz
tar -xvf rarlinux-3.9.3.tar.gz
cd rar
make

The following information is displayed after execution:

 

 

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

If the following problem occurs when running the command rar,

Rar:/lib/i686/nosegneg/libc. so.6: version 'glibc _ 2.7 'not found (required by rar)

Solution:

 

cp rar_static /usr/local/bin/rar

 

Common commands:

 

 
Rar x meidahua.rar // Extract meidahua.rar to the current directory
Rar a meidahua.rar meidahua.com // package the meidahua.com directory as meidahua.rar

LinuxRAR command details

Usage: rar
 <命令>
  
-
  <选项1>
   
.... -
   <选项n>
    
<Operation documentation>
    <文件…>
     
<@ File list…>
     <解压路径>
    
   
  
 

 

A Add a file to a compressed file
C Add compressed file comments
Cf Add file comment
Cw Write compressed file comments to file
D Delete files in a compressed file
E Decompress the compressed file to the current directory.
F Refresh the files in the compressed file
I [parameter] = <串> Search for strings in a compressed file
K Lock compressed files
L [t, B] List compressed files [technical information, concise]
M [f] Move to a compressed file [only for files]
P Print files to standard output devices
R Fix compressed files
Rc Recreate the lost volume
Rn Rename a compressed file
Rr [N] Add data recovery Records
Rv [N] Create recovery volume
S [name |-] Convert the compressed file to the self-decompressed format or convert it back to the compressed file
T Test compressed files
U Update files in compressed files
V [t, B] Detailed list of compressed files [technical information, concise]
X Extract files from the absolute path

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.