What's the easiest way to unrar a file on Ubuntu 12.04 [duplicate]

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


Solution 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