7zip on Archlinux Command Line. 7zip is open source software file archiver with a high compression ratio. It support many popular archive formats besides 7z, such as zip, tar, gzip, etc.
7zip is distribute under GNU LGPL license and some parts of code are under the BSD 3-Clause License.
Main features of 7 zip:
- High compression ratio in 7z format with LZMA & LZMA2 compression.
- Support packing & unpacking : 7z, XZ, GZIP, ZIP, BZIP2, TAR, and WIM
- Support unpacking only : AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, Z, XAR, WIM, VMDK, VHD, VDI, UEFI, UDF, SquashFS, RPM, RAR, QCOW2, NTFS, NSIS, MSI, MBR, LZMA, LZH, ISO, IHEX, HFS, GPT, FAT.
- Compression ratio is 2-10% better than PKZip & Winzip for zip and GZIP Formats
- Strong AES-256 encryption in 7z & Zip
More features see at official 7 zip sites:
7zip installation in archlinux
Install 7zip in archlinux
$sudo pacman -S p7zip
To see available options of 7zip, type 7zip in terminal
The basic commands available after the 7zip installation are 7z, 7za, and 7zr.
Based From archlinux wiki:
Differences between 7z, 7za, and_7zr binaries
- 7z uses plugins to handle archives.
- 7za is a stand-alone executable that handles fewer archive formats than 7z.
- 7zr is a stand-alone executable. It is a "light-version" of 7za that only handles 7z archives. In contrast to 7za, it cannot handle encrypted archives.
Example of Using 7zip command in archlinuxadd files to archive:
$7z a archivename filetoarchive1 filetoarchive2 folder1 folder2.. etc
$7z l archivename
Extract files from archives:
Extract all without create folder:
$7z e archivename
First you must list the files first
$7z e archivename files1 files2 files3
Extract all archived files into custom path / new folder:
$7z x -onewfolder archivenameIn these example target new folder is "kampret"