I just realized I can't unrar .rar files on my Ubuntu machine!


1 Answer 1

  1. First you need to install unrar:

    sudo apt-get install unrar
  2. If you want to unpack all files within the .rar files in the same directory:

    unrar e -r /home/work/software/myfile.rar
  3. if you want to unpack the files in full path:

    unrar x -r /home/work/software/myfile.rar
  • 25
    It seems like in 16.04 at least, the standard file roller program will do rars too once you've got unrar installed.
    – mlissner
    Commented Dec 21, 2017 at 0:15
  • 5
    This applies to Ubuntu 18.* too. The standard archive manager was able to open rar files once I installed unrar. Commented Dec 26, 2018 at 7:26
  • 3
    sudo apt-get install unrar-free worked when I got "Package 'unrar' has no installation candidate" on Ubuntu 16.04 when I did sudo apt-get install unrar.
    – Gnubie
    Commented Jul 19, 2019 at 10:12
  • Even in 14.04 after installing unrar normal file viewer will open .rar files Commented Sep 28, 2019 at 8:53
  • 1
    Only the craziest of us would do e, oh god, why is this flag ever exists???
    – ieXcept
    Commented Sep 7, 2020 at 12:05

Not the answer you're looking for? Browse other questions tagged .