How to Unrar Files in Linux

Method 1 of 2:

Installing the Unrar Application

  1. How to Unrar Files in Linux Picture 1
    Make sure that your computer is connected to the Internet.
  2. How to Unrar Files in Linux Picture 2
    Open up the Linux shell if you are currently in the Linux GUI.
    1. The shell can be opened by using the following key combination: Control + ALT + F1.
    2. You can also open a Terminal that acts as a shell from your System Tools folder.
    3. All commands listed below can be entered at the command line in the Linux shell or Terminal.
  3. How to Unrar Files in Linux Picture 3
    Use the right command to download unrar into your Linux installation. The following commands require root privileges, so you should be logging in using su (or sudo). Type in your login and password to log as root.
    1. Users of Debian Linux should type in the following command: 'apt-get install unrar' or 'apt-get install unrar-free'.
    2. If you are using Fedora Core Linux, type in the following command: 'yum install unrar'.
    3. Arch Linux users should install from extra repository using "pacman -S unrar".
    4. Users of OpenBSD type in this command: 'pkg_add –v –r unrar'.
    5. Suse10 users can enter 'yast2 –i unrar'.
    6. Suse11 users can enter 'zipper install unrar'.
  4. How to Unrar Files in Linux Picture 4
    Download the binary package directly from rarlab if the above commands don't work.
    1. Type 'cd /tmp'.
    2. Type 'wget http://www.rarlab.com/rar/rarlinux-3.9.1.tar.gz '.
    3. Unrar the file with the following command: 'tar -zxvf rarlinux-3.9.1.tar.gz'.
  5. How to Unrar Files in Linux Picture 5
    Locate the rar and unrar commands in the rar directory.
    1. Enter 'cd rar'.
    2. Type './unrar'.
  6. How to Unrar Files in Linux Picture 6
    Copy the rar and unrar to the /usr/local/bin directory with the following command: 'cp rar unrar /usr/local/bin'. The unrar command is now available for use in your Linux installation.
Method 2 of 2:

Using the Unrar Application

  1. How to Unrar Files in Linux Picture 7
    Extract files with the full path with the command 'unrar x file.rar'. This is probably what you want.
  2. How to Unrar Files in Linux Picture 8
    Dump all files(excluding folders) into the current directory with the command 'unrar e file.rar'.
  3. How to Unrar Files in Linux Picture 9
    List the files inside a rar archive with the command 'unrar l file.rar'.
  4. How to Unrar Files in Linux Picture 10
    Test the integrity of an archive with the command 'unrar t file.rar'.
5 ★ | 1 Vote

May be interested

  • How to Install Java on LinuxPhoto of How to Install Java on Linux
    this wikihow teaches you how to install the latest version of the java runtime environment (jre) on a computer running linux. open the [https://www.java.com/en/download/linux_manual.jsp java for linux download page]. you'll see several...
  • How to Use Wine on LinuxPhoto of How to Use Wine on Linux
    this wikihow teaches you how to install and run wine on a linux computer. wine is a program that allows you to run windows applications on a non-windows computer. open the terminal. select the terminal application from your computer's menu...
  • How to Install Tor on LinuxPhoto of How to Install Tor on Linux
    this wikihow teaches you how to download and install the tor browser on your linux computer. open the tor website. go to https://www.torproject.org/projects/torbrowser.html in your web browser. this is where you'll download the tor setup...
  • How to Install XAMPP on LinuxPhoto of How to Install XAMPP on Linux
    this wikihow teaches you how to install and run xampp on a linux computer. open the xampp download page. go to https://www.apachefriends.org/index.html in your computer's web browser. this is the official download site for xampp.
  • How to Ping in LinuxPhoto of How to Ping in Linux
    this wikihow teaches you how to test a connection between your linux computer and another computer by using the 'ping' command. you can also use a more advanced version of the 'ping' command that's called 'traceroute' to see the different...
  • How to Create an ISO File in LinuxPhoto of How to Create an ISO File in Linux
    this wikihow teaches you how to turn a group of files into an iso file on a linux computer. you'll use the linux command line to do this. gather your iso files in the home directory. place any files that you want to turn into an iso file...