CentOS 下安装7-Zip 以及常用的解压命令

在SHH或者终端下输入:yum –y install p7zip(如果提示找不到资源,则要自己下载编译安装,命令如:)

wget http://nchc.dl.sourceforge.net/sourceforge/p7zip/p7zip_4.65_src_all.tar.bz2

tar -xjvf p7zip_4.65_src_all.tar.bz2

cd p7zip_4.65

make && make install

 

看到如下信息就说明你安装成功了:

./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   解压到当前目录下,但保留原来的目录结构

你可能感兴趣的:(CentOS 下安装7-Zip 以及常用的解压命令)