
Ubuntu, Debian, and Linux Mint: $ sudo apt install p7zip-fullįedora, AlmaLinux, Rocky Linux, Red Hat, CentOS: $ sudo dnf install p7zip*Īrch Linux and Manjaro: $ sudo pacman -S p7zip Use the appropriate command below to install 7-Zip with your Linux distro’s package manager.

In this tutorial, you will see how to install 7-Zip on various Linux distributions and learn to use 7-Zip commands to perform compression and decompression of files and directories on the Linux command line. 7-Zip can also encrypt your compressed archives with AES-256. Although you can already compress files by using the tar and zip commands, 7-Zip can outperform other compression technologies in terms of compression ratio, as shown in our benchmark tests for the best compression tool in Linux. 7z for 7zip.7-Zip is free software for compressing/decompressing files. You should see several types of archive format options. Simply right click on the file/directory, and select Compress. You can compress a file in 7zip archive format graphically. 7z archive file using this command: 7z e file.7z Compress a file in 7zip archive format in Linux You right click on the file and proceed to extract it. 7z file as you extract any other compressed file. With 7Zip installed, you can either use the GUI or the command line to extract 7zip files in Linux. Now you have 7zip archive support in your system. Use the following command to install 7zip support in Ubuntu and Debian based distributions. P7zip packages are in the universe repository in Ubuntu so make sure that you have enabled it using this command: sudo add-apt-repository universe Installing p7zip-full should be sufficient in most cases but you may also install p7zip-rar for additional support for the rar file. The p7zip-rar package provides support for RAR files along with 7z. 7z while the full version provides support for more 7z compression algorithms (for audio files etc). The difference between p7zip and p7zip-full is that p7zip is a lighter version providing support only for. You’ll find three 7zip packages in Ubuntu: p7zip, p7zip-full and p7zip-rar.


First thing you need is to install the p7zip package.
