描述:Linux默认自带ZIP压缩,最大支持4GB压缩,RAR的压缩比大于4GB.
-------------------------------------------------- 下载
# wget http://www.rarsoft.com/rar_CN/rarlinux-3.9.3.tar.gz
# tar -xzvf rarlinux-3.9.3.tar.gz
rar/
rar/readme.txt
rar/default.sfx
rar/whatsnew.txt
rar/license.txt
rar/order.htm
rar/rar
rar/unrar
rar/rar_static
rar/technote.txt
rar/rarfiles.lst
rar/makefile
rar/rar.txt
# cd rar
-------------------------------------------------- 编译文件
# make
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
-------------------------------------------------- 安装编译文件
# make install
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
-------------------------------------------------- 执行rar帮助命令
# rar --help
rar: /lib/libc.so.6: version `GLIBC_2.7' not found (required by rar)
-------------------------------------------------- 添加全局命令
# cp -f rar_static /usr/local/bin/rar
cp: overwrite `/usr/local/bin/rar'? y
-------------------------------------------------- 即可访问 rar 命令
# rar --help