Ubuntu – How to install 7zip to extract rar files

7zipsoftware installation

How do I install 7zip through Terminal to extract rar files?

Best Answer

I don't know why would you like specifically 7-zip's binary to extract RAR, but here we go:

To unrar files with... unrar:

sudo apt-get install unrar-free
unrar e some.rar

To extract rar files with 7-zip:

sudo apt-get install p7zip-full
7z x some.rar

e and x mean extract obviously.