- Packages and Binaries:
- p7zip-full
- How To Install zip on Kali Linux
- What is zip
- Install zip Using apt-get
- Install zip Using apt
- Install zip Using aptitude
- How To Uninstall zip on Kali Linux
- Uninstall zip And Its Dependencies
- Remove zip Configurations and Data
- Remove zip configuration, data, and all of its dependencies
- References
- Summary
Packages and Binaries:
p7zip is the Unix command-line port of 7-Zip, a file archiver that handles the 7z format which features very high compression ratios.
- /usr/bin/7zr a standalone minimal version of the 7-zip tool that only handles 7z, LZMA and XZ archives. 7z compression is 30-50% better than ZIP compression.
- /usr/bin/p7zip a gzip-like wrapper around 7zr.
p7zip can be used with popular compression interfaces (such as File Roller or Nautilus).
Another package, p7zip-full, provides 7z and 7za which support more compression formats.
Installed size: 987 KB
How to install: sudo apt install p7zip
7zr
A file archiver with high compression ratio format
[email protected]:~# 7zr -h 7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,8 CPUs AMD Ryzen 7 3700X 8-Core Processor (870F10),ASM,AES-NI) Usage: 7za [. ] [. ] [] a : Add files to archive b : Benchmark d : Delete files from archive e : Extract files from archive (without using directory names) h : Calculate hash values for files i : Show information about supported formats l : List contents of archive rn : Rename files in archive t : Test integrity of archive u : Update files to archive x : eXtract files with full paths -- : Stop switches parsing -ai[r[-|0]] <@listfile|!wildcard>: Include archives -ax[r[-|0]] <@listfile|!wildcard>: eXclude archives -ao : set Overwrite mode -an : disable archive_name field -bb2 : set output log level -bd : disable progress indicator -bs <0|1|2>: set output stream for output/error/progress line -bt : show execution time statistics -i[r[-|0]] <@listfile|!wildcard>: Include filenames -m : set compression Method -mmt[N] : set number of CPU threads -o : set Output directory -r[-|0] : Recurse subdirectories -sa : set Archive name mode -scc : set charset for for console input/output -scs> : set charset for list files -scrc[CRC32|CRC64|SHA1|SHA256|*] : set hash function for x, e, h commands -sdel : delete files after compression -seml[.] : send archive by email -sfx[] : Create SFX archive -si[] : read data from stdin -slp : set Large Pages mode -slt : show technical information for l (List) command -snh : store hard links as links -snl : store symbolic links as links -sni : store NT security information -sns[-] : store NTFS alternate streams -so : write data to stdout -spd : disable wildcard matching for file names -spe : eliminate duplication of root folder for extract command -spf : use fully qualified file paths -ssc[-] : set sensitive case mode -ssw : compress shared files -stl : set archive timestamp from the most recently modified file -stm : set CPU thread affinity mask (hexadecimal number) -stx : exclude archive type -t : Set type of archive -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName] : Update options -v[b|k|m|g] : Create volumes -w[] : assign Work directory. Empty path means a temporary directory -x[r[-|0]] <@listfile|!wildcard>: eXclude filenames -y : assume Yes on all queries
p7zip
Wrapper on 7-Zip file archiver with high compression ratio
[email protected]:~# p7zip -h Usage: /usr/bin/p7zip [options] [--] [ name . ] Options: -c --stdout --to-stdout output data to stdout -d --decompress --uncompress decompress file -f --force do not ask questions -k --keep keep original file -h --help print this help -- treat subsequent arguments as file names, even if they start with a dash
p7zip-full
p7zip is the Unix command-line port of 7-Zip, a file archiver that handles the 7z format which features very high compression ratios.
p7zip-full provides utilities to pack and unpack 7z archives within a shell or using a GUI (such as Ark, File Roller or Nautilus).
Installing p7zip-full allows File Roller to use the very efficient 7z compression format for packing and unpacking files and directories. Additionally, it provides the 7z and 7za commands.
List of supported formats:
- Packing / unpacking: 7z, ZIP, GZIP, BZIP2, XZ and TAR
- Unpacking only: APM, ARJ, CAB, CHM, CPIO, CramFS, DEB, DMG, FAT, HFS, ISO, LZH, LZMA, LZMA2, MBR, MSI, MSLZ, NSIS, NTFS, RAR (only if non-free p7zip-rar package is installed), RPM, SquashFS, UDF, VHD, WIM, XAR and Z.
The dependent package, p7zip, provides 7zr, a light version of 7za, and p7zip, a gzip-like wrapper around 7zr.
Installed size: 4.55 MB
How to install: sudo apt install p7zip-full
7z
A file archiver with high compression ratio format
[email protected]:~# 7z -h 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,8 CPUs AMD Ryzen 7 3700X 8-Core Processor (870F10),ASM,AES-NI) Usage: 7z [. ] [. ] [] a : Add files to archive b : Benchmark d : Delete files from archive e : Extract files from archive (without using directory names) h : Calculate hash values for files i : Show information about supported formats l : List contents of archive rn : Rename files in archive t : Test integrity of archive u : Update files to archive x : eXtract files with full paths -- : Stop switches parsing -ai[r[-|0]] <@listfile|!wildcard>: Include archives -ax[r[-|0]] <@listfile|!wildcard>: eXclude archives -ao : set Overwrite mode -an : disable archive_name field -bb2 : set output log level -bd : disable progress indicator -bs <0|1|2>: set output stream for output/error/progress line -bt : show execution time statistics -i[r[-|0]] <@listfile|!wildcard>: Include filenames -m : set compression Method -mmt[N] : set number of CPU threads -o : set Output directory -p : set Password -r[-|0] : Recurse subdirectories -sa : set Archive name mode -scc : set charset for for console input/output -scs> : set charset for list files -scrc[CRC32|CRC64|SHA1|SHA256|*] : set hash function for x, e, h commands -sdel : delete files after compression -seml[.] : send archive by email -sfx[] : Create SFX archive -si[] : read data from stdin -slp : set Large Pages mode -slt : show technical information for l (List) command -snh : store hard links as links -snl : store symbolic links as links -sni : store NT security information -sns[-] : store NTFS alternate streams -so : write data to stdout -spd : disable wildcard matching for file names -spe : eliminate duplication of root folder for extract command -spf : use fully qualified file paths -ssc[-] : set sensitive case mode -ssw : compress shared files -stl : set archive timestamp from the most recently modified file -stm : set CPU thread affinity mask (hexadecimal number) -stx : exclude archive type -t : Set type of archive -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName] : Update options -v[b|k|m|g] : Create volumes -w[] : assign Work directory. Empty path means a temporary directory -x[r[-|0]] <@listfile|!wildcard>: eXclude filenames -y : assume Yes on all queries
7za
A file archiver with high compression ratio format
[email protected]:~# 7za -h 7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,8 CPUs AMD Ryzen 7 3700X 8-Core Processor (870F10),ASM,AES-NI) Usage: 7za [. ] [. ] [] a : Add files to archive b : Benchmark d : Delete files from archive e : Extract files from archive (without using directory names) h : Calculate hash values for files i : Show information about supported formats l : List contents of archive rn : Rename files in archive t : Test integrity of archive u : Update files to archive x : eXtract files with full paths -- : Stop switches parsing -ai[r[-|0]] <@listfile|!wildcard>: Include archives -ax[r[-|0]] <@listfile|!wildcard>: eXclude archives -ao : set Overwrite mode -an : disable archive_name field -bb3 : set output log level -bd : disable progress indicator -bs <0|1|2>: set output stream for output/error/progress line -bt : show execution time statistics -i[r[-|0]] <@listfile|!wildcard>: Include filenames -m : set compression Method -mmt[N] : set number of CPU threads -o : set Output directory -p : set Password -r[-|0] : Recurse subdirectories -sa : set Archive name mode -scc : set charset for for console input/output -scs> : set charset for list files -scrc[CRC32|CRC64|SHA1|SHA256|*] : set hash function for x, e, h commands -sdel : delete files after compression -seml[.] : send archive by email -sfx[] : Create SFX archive -si[] : read data from stdin -slp : set Large Pages mode -slt : show technical information for l (List) command -snh : store hard links as links -snl : store symbolic links as links -sni : store NT security information -sns[-] : store NTFS alternate streams -so : write data to stdout -spd : disable wildcard matching for file names -spe : eliminate duplication of root folder for extract command -spf : use fully qualified file paths -ssc[-] : set sensitive case mode -ssw : compress shared files -stl : set archive timestamp from the most recently modified file -stm : set CPU thread affinity mask (hexadecimal number) -stx : exclude archive type -t : Set type of archive -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName] : Update options -v[b|k|m|g] : Create volumes -w[] : assign Work directory. Empty path means a temporary directory -x[r[-|0]] <@listfile|!wildcard>: eXclude filenames -y : assume Yes on all queries
How To Install zip on Kali Linux
In this tutorial we learn how to install zip on Kali Linux.
What is zip
This is InfoZIP’s zip program. It produces files that are fully compatible with the popular PKZIP program; however, the command line options are not identical. In other words, the end result is the same, but the methods differ. 🙂
This version supports encryption.
There are three ways to install zip on Kali Linux . We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.
Install zip Using apt-get
Update apt database with apt-get using the following command.
After updating apt database, We can install zip using apt-get by running the following command:
sudo apt-get -y install zip
Install zip Using apt
Update apt database with apt using the following command.
After updating apt database, We can install zip using apt by running the following command:
Install zip Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
After updating apt database, We can install zip using aptitude by running the following command:
sudo aptitude -y install zip
How To Uninstall zip on Kali Linux
To uninstall only the zip package we can use the following command:
Uninstall zip And Its Dependencies
To uninstall zip and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove zip
Remove zip Configurations and Data
To remove zip configuration and data from Kali Linux we can use the following command:
Remove zip configuration, data, and all of its dependencies
We can use the following command to remove zip configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge zip
References
Summary
In this tutorial we learn how to install zip using different package management tools like apt, apt-get and aptitude.