How to Install 7zip from Terminal in Ubuntu

The 7-zip is an open-source program that compresses and uncompresses, created for Windows. It supports a variety of archive formats including its original format 7z. 7zip is also commonly used to extract RAR, DEB, RPM and ISO files. In addition to secure archiving, 7zip also supports AES-256 file encryption as well as self-extracting and multivolume archiving.

What is the 7zip?

7zip ubuntu

What is a 7zip? 7zip is the most common compress and uncompress program which can compress and uncompress in the following formats 7z, ZIP, GZIP, BZIP2, XZ and TAR. It also supports uncompressing for formats APM, ARJ, CAB, CHM, CPIO, DEB, DMG, FA, HFS, ISO, MSI, MSLZ, NSIS, NTFS, RPM, SquashFS, UDF, VHD, WIM, XAR and 7Z.

How to Install 7zip (or p7zip) on Ubuntu

To install 7zip program in Ubuntu follow few steps below:

The first, let open Terminal app and run following command below:

sudo apt-get install p7zip-full


sudo apt-get install p7zip


sudo apt-get install p7zip-rar

install 7zip on ubuntu

Difference between p7zip-full, p7zip abd p7zip-rar

  • p7zip includes 7zr (a very little 7zip archive tool) that are able to handle its original 7z type only.
  • p7zip-full includes 7z that are able to support 7z, LZMA2, XZ, ZIP, CAB, GZIP, BZIP2, ARJ, TAR, CPIO, RPM, ISO and DEB.
  • p7zip-rar includes a plugin for uncompress RAR files.

It is suggested to choose the p7zip-full package, so this is the full 7zip package that supports a lot of archive formats. Moreover, if you wish to extract RAR files, you also have to set up a p7zip-rar package. The cause for getting a different plugin package is as RAR is an exclusive format.

See more video tutorial below:

How to extract rar, zip, 7z files

To extract any the compress files, just right-click on the file and then click on Extract Here from the menu drop down.

install 7zip on ubuntu

How to compress a file or folder

Right-click on the files or folder you want, click on Compress option.

install 7zip on ubuntu

Then, select the .7z, .zip, .rar which you want and click Create button.

install 7zip on ubuntu

What is Ubuntu?

Ubuntu is a free and open source operating system based on Debian. It is designed primarily for laptops and desktops. Ubuntu is also used on servers and embedded devices.

Is 7-Zip Linux-friendly?

7-Zip for Linux is the greatest compression and decompression tool. If you’re someone who works with compressed files like as Zip and RAR formats on a regular basis, the 7Zip should be on your list of installed applications.

Can you open a RAR with 7Zip?

Yes, you can open a RAR with 7Zip by using the “extract” option. p7zip is a file archiver for Linux that works similarly to 7-zip, but it does not include a user interface. p7zip should be able to open RAR files as well.

4/5 - (4 votes)



Solomen is the founder of, and he is happiest when working with technology and able to help others. In his free time, he often listens to Baroque music, swims or runs. Feel free to contact him on social media!

Notify of

Inline Feedbacks
View all comments
MrHow - Tutorials Related To Windows, Mac, iOS & Android