Step 1:Open terminal and run following command sudo apt-get install p7zip-full
Step 2:To extract rar archive in Ubuntu we need to install one more package of p7zip. p7zip-rar package can uncompress rar files in Ubuntu.
Step 3:To install p7zip-rar run following command in terminal
sudo apt-get install p7zip-rar
Now we can extract rar files. To extract rar or other supported format [listed above]. Step 4: Right click on archive file and click on extract here
Step 5:To compress select the folder and do right click. Click on compress
Step 6:Select the format and click on compress
We have successfully installed 7zip in Ubuntu. Use it to compress and uncompress files as it supports all most archive formats. To stall 7Zip-Rar Package using Ubuntu Software Center: Steps for installation of Rar file:
\
Steps to install 7Zip using Ubuntu Software center: