1.下载工具
wget -c https://www.rarlab.com/rar/rarlinux-x64-5.5.0.tar.gz
2.解压和安装rar工具
- tar -xzvf rarlinux-x64-5.5.0.tar.gz
- #加压后生产rar目录
- cd rar
- [root@localhost rar]# ls
- acknow.txt default.sfx license.txt makefile order.htm rar rarfiles.lst rar.txt readme.txt unrar whatsnew.txt
- [root@localhost rar]# make && make install
RAR 5.20 Copyright (c) 1993-2014 Alexander Roshal 2 Dec 2014
Trial version Type RAR -? for help
Usage: rar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>
<Commands>
a Add files to archive
c Add archive comment
ch Change archive parameters
cw Write archive comment to file
d Delete files from archive
e Extract files without archived paths
f Freshen files in archive
i[par]=<str> Find string in archives
k Lock archive
l[t[a],b] List archive contents [technical[all], bare]
m[f] Move to archive [files only]
p Print file to stdout
r Repair archive
rc Reconstruct missing volumes
rn Rename archived files
rr[N] Add data recovery record
rv[N] Create recovery volumes
s[name|-] Convert archive to or from SFX
t Test archive files
u Update files in archive
v[t[a],b] Verbosely list archive contents [technical[all],bare]
x Extract files with full path
...