How do I install 7zip through Terminal to extract rar files?
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
x mean extract obviously.
You may use p7zip. And you can install p7Zip using command :
sudo apt-get install p7zip.
To extract RAR archives, you'll need to install package "p7zip-rar", too.
Install it using :
sudo apt-get install p7zip-rar
Or you can get it done in single command :
sudo apt-get install p7zip p7zip-rar
Read p7zip manual for more information:
Use the following command to Install 7Zip:
$ sudo apt-get install p7zip-full
Extract files using 7zip:
$ 7z e example.zip
Compress files using 7zip:
$ 7z a compress.zip
For more information, visit the reference
protected by Community♦ Nov 20 '17 at 11:40
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?