# wget https://www.rarlab.com/rar/rarlinux-x64-5.8.b4.tar.gz —>> 下载包 # ls -lrt rar/ rar/order.htm rar/acknow.txt rar/readme.txt rar/default.sfx rar/license.txt rar/rarfiles.lst rar/whatsnew.txt rar/makefile rar/rar rar/unrar rar/rar.txt
# mv rarlinux-x64-5.8.b4.tar.gz /root/ —>> 转移到 root 目录下 (根据自己)
# ldd ./rar —->> 查看下 共享库要有 linux-vdso.so.1 => (0x00007fff3028a000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003a47e00000) libm.so.6 => /lib64/libm.so.6 (0x0000003a3ce00000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003a42200000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003a3d200000) libc.so.6 => /lib64/libc.so.6 (0x0000003a3ca00000) /lib64/ld-linux-x86-64.so.2 (0x0000003a3c600000)
# cd /root/rar
# ls-lrt -rw-r–r– 1 1000 1000 25640 Nov 17 20:21 whatsnew.txt -rwxr-xr-x 1 1000 1000 311416 Nov 17 20:21 unrar -rw-r–r– 1 1000 1000 692 Nov 17 20:21 readme.txt -rw-r–r– 1 1000 1000 104664 Nov 17 20:21 rar.txt -rw-r–r– 1 1000 1000 1177 Nov 17 20:21 rarfiles.lst -rwxr-xr-x 1 1000 1000 566160 Nov 17 20:21 rar -rw-r–r– 1 1000 1000 3107 Nov 17 20:21 order.htm -rw-r–r– 1 1000 1000 428 Nov 17 20:21 makefile -rw-r–r– 1 1000 1000 6753 Nov 17 20:21 license.txt -rwxr-xr-x 1 1000 1000 183264 Nov 17 20:21 default.sfx -rw-r–r– 1 1000 1000 4188 Nov 17 20:21 acknow.txt
./rar x /workdir/program/sd.rar —–>> 解压 sd.rar
RAR 5.80 beta 4 Copyright (c) 1993-2019 Alexander Roshal 17 Nov 2019 Trial version Type ‘rar -?’ for help Extracting from /workdir/program/sd.rarCreating OK Extracting OK Extracting OK Extracting OK Extracting OK Extracting OK Extracting OK All OK
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/179642.html原文链接:https://javaforall.cn