First thing I had to say, I did the experiment first.
Compress a directory HTML
RAR compression result 5.18M
Zip compression result 5.06M
7z compression Result 870K
First, source code compilation installation
Official website:http://www.7-zip.org/download.html
Source file Project Address:http://sourceforge.net/projects/p7zip/, currently the latest version is 9.20.1.
Execute the following command to download the installation:
wget HTTP://NCHC.DL.SOURCEFORGE.NET/PROJECT/P7ZIP/P7ZIP/9.20.1/P7ZIP_9.20.1_SRC_ALL.TAR.BZ2TAR-JXVF p7zip_9.20.1 _SRC_ALL.TAR.BZ2CD P7zip_9.20.1makemake Install
The following message appears after the final step make install, which is the installation complete
./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
the second type, RPM installation
:http://pkgs.repoforge.org/p7zip/, please refer to the latest version.
Install 7ZIP under CentOS 5.x 32-bit
wget HTTP://PKGS.REPOFORGE.ORG/P7ZIP/P7ZIP-9.20.1-1.EL5.RF.I386.RPMRPM-IVH p7zip-9.20.1-1.el5.rf.i386.rpm
install 7ZIP under CentOS 5.x 64-bit
wget HTTP://PKGS.REPOFORGE.ORG/P7ZIP/P7ZIP-9.20.1-1.EL5.RF.X86_64.RPMRPM-IVH p7zip-9.20.1-1.el5.rf.x86_64.rpm
install 7ZIP under CentOS 6.x 32-bit
wget HTTP://PKGS.REPOFORGE.ORG/P7ZIP/P7ZIP-9.20.1-1.EL6.RF.I686.RPMRPM-IVH p7zip-9.20.1-1.el6.rf.i686.rpm
install 7ZIP under CentOS 6.x 64-bit
wget HTTP://PKGS.REPOFORGE.ORG/P7ZIP/P7ZIP-9.20.1-1.EL6.RF.X86_64.RPMRPM-IVH p7zip-9.20.1-1.el6.rf.x86_64.rpm
The third Kind, yum installation
With the installation of Rhel EPEL Repo on CentOS 5.x or 6.x, after installing Rhel EPEL Repo, you can install 7ZIP using yum.
The command is as follows:
Yum Install-y P7zip
< Span style= "font-family: ' Microsoft Yahei '; font-size:14px; line-height:28px ">
7-zip (A) [+] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18p7zip Version 9.20 (LOCALE=ZH_CN. utf-8,utf16=on,hugefiles=on,1 CPU) Usage:7za <command> [<switches> ...] <archive_name> [<file_ Names>, ...] [< @listfiles ...>]<commands> a:add files to archive B:benchmark d:delete files from archive e:extract f Iles from archive (without using directory names) l:list contents of archive t:test integrity of archive u:update fi Les to archive x:extract files with full paths<switches>-ai[r[-|0]]{@listfile |! Wildcard}: Include archives-ax[r[-|0]]{@listfile |! Wildcard}: EXclude archives-bd:disable percentage indicator-i[r[-|0]]{@listfile |! Wildcard}: Include Filenames-m{parameters}: Set compression method-o{directory}: Set Output Directory-p{password}: S ET password-r[-|0]: Recurse subdirectories-scs{utf-8 | WIN | DOS}: Set charset for List Files-sfx[{name}]: Create SFX Archive-si[{name}]: Read data from STDIN-SLT: Show technical information for L (List) command-so:write data to stdout-ssc[-]: Set sensitive case Mode-t{type}: Set type of Archive-u[-][p#][q#][r#][x#][y#][z#][!newarchivename]: Update options-v{size}[b|k|m|g]: Create volumes-w [{path}]: Assign work directory. Empty path means a temporary directory-x[r[-|0]]]{@listfile |! Wildcard}: EXclude filenames
7zip of CentOS