歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS 下安裝7-Zip 以及常用的解壓命令

CentOS 下安裝7-Zip 以及常用的解壓命令

日期:2017/2/28 16:21:05   编辑:Linux教程

在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 解壓到當前目錄下,但保留原來的目錄結構

Copyright © Linux教程網 All Rights Reserved