Ubuntu 12.04 Tips and Tricks

In this article we will install 7zip in Ubuntu. 7zip is the most popular compress and uncompress utility.

7zip can compress in following format:-

7z, ZIP, GZIP, BZIP2, XZ and TAR

7zip support uncompress for following format

APM, ARJ, CAB, CHM, CPIO, CramFS, DEB, DMG, FAT, HFS, ISO, LZH, LZMA, LZMA2, MBR, MSI, MSLZ, NSIS, NTFS, RPM, SquashFS, UDF, VHD, WIM, XAR and Z.

To install 7zip in Ubuntu follow these steps

Open terminal and run following command

sudo apt-get install p7zip-full

ubuntu install p7zip

p7zip is the Unix command-line port of 7-Zip. p7zip-full provides utilities to pack and unpack 7z archives within a shell or using a GUI.

p7zip available in two packages.

  • p7zip-full
  • p7zip

Difference between p7zip-full and p7zip are following.

p7zip-full" contains "7z" and "7za" archives while "p7zip" contains "p7r" archive. So p7zip provides 7zr (liter version of 7za/7z) and documentation whereas p7zip-full provides 7z (with 7z.so), 7za, 7zCon.sfx (to make auto extractible archive), and documentation.

If you want to create/extract only 7z archive (without password) take p7zip (7zr) else p7zip-full (with p7zip-rar)

How to extract rar files in Ubuntu

To extract rar archive in Ubuntu we need to install one more package of p7zip.

p7zip-rar package can uncompress rar files in Ubuntu. To install p7zip-rar run following command in terminal

sudo apt-get install p7zip-rar

ubuntu install p7zip rar

Now we can extract rar files. To extract rar or other supported format [listed above].

Right click on archive file and click on extract here

ubuntu install extract here

How to compress files / folder with 7zip in Ubuntu

To compress select the folder and do right click. Click on compress

ubuntu install compress option

Select the format and click on compress

ubuntu install supported format

We have successfully installed 7zip in Ubuntu. Use it to compress and uncompress files as it supports all most archive formats. Love it as its open source project.