wget http://nchc.dl.sourceforge.net/sourceforge/p7zip/p7zip_9.20.1_src_all.tar.bz2 wget http://nchc.dl.sourceforge.net/sourceforge/p7zip/p7zip_9.20.1_x86_linux_bin.tar.bz2 tar -xjvf p7zip_9.20.1_src_all.tar.bz2 tar -xjvf p7zip_9.20.1_x86_linux_bin.tar.bz2 cd p7zip_9.20.1 make && make install ./install.sh
看到如下信息就说明你安装成功了:
./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/DOCS
这时如果发现乱码,请执行命令export LANG=zh_CN.GBK
常用命令:
7za e ishagua.7z #解压到当前目录下,不保留原来的目录结构 7za x ishagua.7z #解压到当前目录下,但保留原来的目录结构 7za x rootwww.zip #(解压大于4G的zip包) 7z x test.rar #(解压rar包)
故障解决:
/lib/ld-linux.so.2: bad ELF interpreter
解决:
yum install glibc.i686