Install p7Zip GUI on Ubuntu 22.04 LTS Jammy Linux

Tutorial to install Install p7Zip on Ubuntu 22.04 Jammy JellyFish using command terminal. It is an open source tool for heavily compressing files and folders on Linux and FreeBSD systems. It is the best alternative to Winrar software for Windows platforms.

Being open-source doesn’t mean it’s not available for Win systems. p7Zip is a fork of 7Zip which is initially available for Windows. With the help of it, we not only compress, but we can also decompress the files available in other formats such as RAR. This free compression tool offers many common features such as AES-256 encryption, hyper-threading and fast speed. Apart from the GUI version, the 7Zip is also available in the command line suitable for servers or desktops running without a desktop environment.

Steps to install p7Zip on Ubuntu 22.04 LTS Linux

The commands are also applicable to older Ubuntu versions such as 20.04/19.10/19.04; 18.10/18.04, including Linux Mint, Elementary OS, POP_OS, etc.

1: Open terminal

Well, if you are already an Ubuntu user, I don’t need to tell you how to access the command terminal. However, those new to Linux can open it by searching Applications or using a simple keyboard shortcut which is: Ctrl+Alt+T.

2: Run Apt Update

Although this command is not necessary as here we are going to use the SNAP command for 7Zip installation. However, run it to ensure that all packages available on your system are up to date.

sudo apt update

3: Install p7ZIp on Ubuntu 22.04 LTS

This compression tool is available in the Universe repository of ubuntu. Therefore, add it, if it is not on your system.

sudo add-apt-repository universe
sudo apt update
sudo apt install p7zip-full p7zip-rar

With SNAP: All modern Ubuntu operating systems come with a universal package manager called SNAP out of the box. Thus, we don’t need to install it. The advantage of using it is that you can install the same snap package on other Linux systems such as CentOS, Fedora, Manjaro, etc., without adding a repository. So just run below command with sudo to install the 7ZIP GUI,

sudo snap install p7zip-desktop

Wait a few seconds depending on our internet connection speed this free linux file compression tool will be on your system.

4: Run p7Zip GUI

Once the installation is completed, go to Applications and search for this application. As its icon appears, click to open it.



5: Use 7Zip on Ubuntu to compress files

To use the p7Zip through the Graphical user interface is very easy, after opening it on Ubuntu. You will get a file explorer inside this tool. Navigate to the file or folder that you want to compress and then select & click on the “Add” button. For example, in the below screenshot we have a folder called “pics“, so we have selected to compress.

6: Add to archive

The moment you select and add a file to archive it, the 7Zip settings will open. From here we can opt for different settings to compress the files as needed.

Archive format: Select the different formats available such as 7z, bzip2, gzip, tar, swim, xz and zip.

Compression level: Depending on the desired level of compression for the archive, the level can be chosen. By default, this will be Normal.

Compression method: It offers LZMA2, LZMA, PPMd and BZip2. These are encoding methods if you know what you are doing then change it otherwise leave it as default.

Multiple CPU threads: As the application supports hyperthreading, to process large files you can increase or decrease the allocated threads.

encryption: As I said above, the p7Zip offers encryption, so under “Encryption” one can create a password for his compressed files. So only they could open it.

Finally, click on the OKAY button to start the compression process.

Setup to use p7Zip on Ubuntu 22.04

Once done, the compressed file will appear on the software’s file explorer as well as where the original uncompressed file is located.

output file compressed in 7ZIp format

7. Quick process to compress

Apart from the p7ZIP GUI, it also integrates into the Ubuntu context menu. This means that you can directly archive files and folders without opening the software itself. To do this, simply right-click on the file and select the “Compress..” option. This will open a small quick window from which you can select the type of archive format you want to use. Then just press the “Create” button. That’s it.

compress from file manager context menu

8. Decompression

If you already have an archive file, right-click and select the unzip option or in the file explorer of the p7ZIP GUI, select that file and click “Extract” option given in the menu.

9. p7Zip command line to compress files

Another quick method is for those who are familiar with the command line and prefer to use only this one. For this, the structure of the command to create archive files in the terminal using 7Zip will be:

7z a folder-name.7z folder-name

Therefore, for example, if we say the folder name is “Pictures” then the command will be like this

7z one pics.7z pics

To use any other archive format, use this extension, for example, to get the archive in zipped format, the command will look like this:

7z a pics

Here is the output:

Use the command line to compress files using p7zip

Hope you now have an idea to use p7ZIP on Ubuntu 20.04 or earlier systems to easily create archive files and folders via GUI and CLI.

Source link

Steven L. Nielsen