一、下载rar安装包
wget https://www.rarlab.com/rar/rarlinux-x64-5.6.0.tar.gz
二、解压并安装
解压
tar -xzvf rarlinux-x64-5.6.0.tar.gz
进入解压后的文件夹,安装
make install
注意:安装后运行rar命令,如果提示“rar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory”错误按照下面安装依赖包。
三、安装依赖包(可选)
apt-get install lib32stdc++6
四、解压缩rar文件
解压命令:rar x test.rar 或 unrar -e test.rar
压缩命令:rar a test.rar /dir
注意:使用时如果 出现“...is not RAR archive No files to extract”错误,是因为rar版本太旧,下载新版本安装即可。
---------------------
作者:ACanswer
来源:CSDN
原文:https://blog.csdn.net/ACanswer/article/details/81635140
版权声明:本文为博主原创文章,转载请附上博文链接!