CentOS installation 7z
7z is an open source compression software. The compression ratio is high. It is easy to use a client in Windows. For use in Linux, installation is required.
First, download the 7z linux version, which is p7zip in linux and sourceforge.
Wget http://downloads.sourceforge.net/project/p7zip/p7zip/9.13/p7zip_9.13_src_all.tar.bz2? R = http % 3A % 2F % 2Fsourceforge.net % 2 Fprojects % 2Fp7zip % 2 Ffiles % 2Fp7zip % 2F9. 13% 2F & ts = 1293507429 & use_mirror = cdnetworks-kr-1
Unzip and install:
Tar jxvf p7zip_9.13_src_all.tar.bz2cd p7zip_9.13make & make install./install. shldconfig
Installation is complete. After the src version is used, the binary executable file is named 7za. The official download page has the bin version and does not need to be compiled. After the download, run install. sh in the directory and generate the executable file 7z without the version.
Decompress the 7z File
7za x phpMyAdmin-3.3.8.1-all-languages.7z-r-o./7za x phpMyAdmin-3.3.8.1-all-languages.7z-r-o ./
Parameter description:
X indicates to decompress the file and decompress the file according to the original directory (another parameter e is to decompress the file, but it will decompress all the files to the root instead of the original folder)
PhpMyAdmin-3.3.8.1-all-languages.7z is compressed file, here I use phpadmin for testing. Use phpmyadmin-3.8.1-all-languages.7z in the current directory.
-R indicates recursively decompressing all subfolders.
-O specifies the directory to be extracted, and-o directly connects to the directory without spaces.
Compressed file/folder
7za a-t7z-r Mytest.7z/opt/phpMyAdmin-3.3.8.1-all-languages /*
Parameter description:
A Indicates adding a file/folder to the compressed package
-T indicates the compression type. Here it is set to 7z.
-R indicates recursion of all subfolders
Mytest.7z is the compressed package name