解压工具 7z

538 阅读1分钟

1 下载7z的压缩包

wget https://sourceforge.net/projects/p7zip/files/p7zip/16.02/p7zip_16.02_src_all.tar.bz2

2 bzip安装

yum install -y bzip2

3 解压

tar -jxvf p7zip_16.02_src_all.tar.bz2

4 切换路径

cd p7zip_16.02

5 gcc、gcc+ 安装

yum install gcc

yum install gcc-c++

6 安装

./install.sh /usr/local/bin /usr/local/lib/p7zip /usr/local/man /usr/local/share/doc/p7zip

-   installing /usr/local/bin/7za
-   installing /usr/local/man/man1/7z.1
-   installing /usr/local/man/man1/7za.1
-   installing /usr/local/man/man1/7zr.1
-   installing /usr/local/share/doc/p7zip/README
-   installing /usr/local/share/doc/p7zip/ChangeLog
-   installing HTML help in /usr/local/share/doc/p7zip/DOC

7 解压

7za x test.7z