Ubuntu – How to get ‘rar’ package

aptrarrepositorysoftware installation

I recently installed another Ubuntu after a long time and I'm trying to install rar package on it as I use that for compression from within Terminal.

rar isn't found when I do

apt-get install rar

I have even tried doing

apt-get update

but even after then Ubuntu cannot find rar. So how do I get it?

Best Answer

You need to enable multiverse repositories to install rar. There's also a separate package called unrar

To enable multiverse, run

sudo software-properties-gtk

there you'll need to make sure it is selected.

Then run

sudo apt-get update
sudo apt-get install rar