7zip is an open source compression software that can be used for file extraction. It can only be used on Windows systems. Although it can be used in Linux systems, it is more troublesome to install. The following small series will introduce you to Linux installation and Use the 7zip method.
Here's how to install 7zip (or p7zip) in Linux.
Installing 7zip on Debian, Ubuntu or Linux Mint systems
There are three 7zip packages available on the Debian-based publishing system.
p7zip: Contains 7zr (the smallest 7zip archive tool) and can only handle native 7z formats.
p7zip-full: Contains 7z and supports 7z, LZMA2, XZ, ZIP, CAB, GZIP, BZIP2, ARJ, TAR, CPIO, RPM, ISO and DEB formats.
p7zip-rar: Contains a plugin that extracts RAR files.
It is recommended to install the p7zip-full package (not p7zip), as this is the most complete 7zip package that supports many archive formats. In addition, if you want to process RAR files, you also need to install the p7zip-rar package. The reason for making a standalone plugin package is because RAR is a proprietary format.
Let Ubuntu 12.10 support RAR and 7Z file decompression http://www.linuxidc.com/Linux/2012-11/74223.htm
$ sudo apt-get install p7zip-full P7zip-rar
Installing 7zip on Fedora or CentOS/RHEL systems
Two 7zip packages are available on Red Hat-based publishing systems.
p7zip: Contains the 7za command, which supports 7z, ZIP, GZIP, CAB, ARJ, BZIP2, TAR, CPIO, RPM, and DEB formats.
p7zip-plugins: Contains the 7z command, an additional plugin that extends the 7za command (for example, supports ISO format extraction).
On the CentOS/RHEL system, you need to make sure the EPEL repository is available before running the following command, but no additional libraries are required on the Fedora system.
$ sudo yum install p7zip p7zip-plugins
Note that unlike the Debian-based publishing system, the Red Hat-based publishing system does not provide a RAR plugin, so you cannot use the 7z command. Extract the extracted RAR file.
Creating or extracting archives using 7z
Once the 7zip software is installed, you can use the 7z command to package and unpack a wide variety of archives. The 7z command uses different plugins to assist in processing archives of the corresponding format.
Use & ldquo; a & rdquo; option you can create an archive file, it can create 7z XZ, GZIP, TAR, ZIP and BZIP2 file, these types of formats. If the specified archive already exists, it will "add" the file to the existing archive instead of overwriting the original archive.
$ 7z a "archive-filename" "list-of-files"
Use the “e” option to extract an archive file, and the extracted files will be placed in the current directory. The format supported by the extraction is much larger than the format supported at the time of creation, including 7z, XZ, GZIP, TAR, ZIP, BZIP2, LZMA2, CAB, ARJ, CPIO, RPM, ISO, and DEB.
$ 7z e "archive-filename"
Another way to unpack is to use the “x” option. Unlike the “e” option, it uses the full path to extract the archived content.
$ 7z xarchive-filename
To see a list of archived files, use the “l” option.
$ 7z l archive-filename
To update or delete archives, use the “u” and “d” options respectively.
$ 7z u "archive-filename" "list-of-files-to-update"
$ 7z d "archive-filename" "list-of-files-to-delete"
To test the integrity of the archive, use:
$ 7z t "archive-filename"
The above describes the method of using the 7zip compression tool for each Linux installation. 7zip can also be installed on Ubuntu and CentOS systems. File extraction requires 7zip commands.
hexdump is a command used to view the hexadecimal encoding of files in Linux system
In the Ubuntu system operation, sometimes the default startup program changes due t
I have learned Linux commands, the find command can be used to find directory files. Today, Xiaobian
When performing Linux multi-terminal operation, if synchronization between differen
Linux system switching root user skills
How to set up Kali Linux after installation?
Ubuntu system configuration Ruby On Rails development environment method
How to undo operations in Git in Linux
Linux how to install and configure rz/sz command
How to install Eclipse and PyDev extensions in Ubuntu 14.04?
How Linux can quickly modify the sql file in the specified ID
How Linux uses the command line to clean up the disk to increase the space
Linux system Vsftpd server virtual user and passive mode configuration method
Ubuntu system to enable Soft AP method
Ubuntu 64-bit installation WPS office software error how to do?
How to cut off Win8 system resource manager
How to make Win10 new Edge browser more smooth?
Win7 open God mode detailed use tutorial
Win7 system opens the control panel but can't find the uninstaller option how to recover
The game can't be full screen, Win7 face is saved
Win10 can not access the D disk solution
How to set QQ Pinyin as handwriting input method
Win7 using iis to build a web server
Win7 retrieves realtek high-definition audio manager operation skills