解压命令:
unrar e 半世界之旅-广州米壳.rar ./mike_creatives/下载安装包:
wget http://www.rarsoft.com/rar/rarlinux-5.6.0.tar.gz安装:
tar -xvf rarlinux-5.6.0.tar.gz
cd rar
make使用:
a. unrar --help
-bash: /usr/local/bin/unrar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
yum install glibc.i686 (解决lib库的32位和64位混乱问题)
b. unrar --help
unrar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
uname -m&&uname -r
x86_64
3.10.0-693.2.2.el7.x86_64
cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
c. yum install libstdc++.so.6 (安装缺少的库)
unrar --help
unrar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
d. yum provides libstdc++.so.6 ()
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
libstdc++-4.8.5-28.el7.i686 : GNU Standard C++ Library
Repo : base
Matched from:
Provides : libstdc++.so.6
libstdc++-4.8.5-28.el7_5.1.i686 : GNU Standard C++ Library
Repo : updates
Matched from:
Provides : libstdc++.so.6
e. yum install libstdc++.so.6 --setopt=protected_multilib=false
f. unrar
unrar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
yum update libstdc++-4.8.5-16.el7.x86_64
unrar
unrar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
yum install libstdc++.so.6 (走完这一步,好了终于可以用unrar了)
注释: 关于找到rar软件的下载地址,是受到 wget http://www.rarsoft.com/rar/rarlinux-3.9.3.tar.gz 的地址的启发。
下载地址: https://www.rarlab.com/download.htm
部分操作参考于 : https://blog.csdn.net/orangleliu/article/details/8869626
https://blog.csdn.net/qianlong4526888/article/details/40108591
https://blog.csdn.net/mm_bit/article/details/51200307
$unrar --help
用法: unrar - -
<@listfiles...>
<命令>
e 解压文件到当前目录
l[t,b] 列出压缩文档信息[technical, bare]
p 打印文件到标准输出
t 测试压缩我俄当
v[t,b] 列出压缩文档的详细信息[technical,bare]
x 解压文件到完整路径
[root@localhost ~]# unrar e anaconda-ks.cfg.rar /home/