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 copy and rename files in LinuxHow to copy and rename files in Linux
    there are more ways to copy and rename files on linux than just cp and mv. try some commands and other ways suggested below.
  • How to synchronize files and folders on LinuxHow to synchronize files and folders on Linux
    linux administrators must keep folders synced on a regular basis. there are two simple use scenarios for synchronizing these files and folders.
  • How to find large files on LinuxHow to find large files on Linux
    what can you do if the memory on your linuxx machine is almost full? you can free up space by deleting or moving some files, and you should probably start with the largest files.
  • How to view hidden files and folders on LinuxHow to view hidden files and folders on Linux
    the linux operating system includes hundreds of files and folders that are hidden by default. such files are called hidden files or dot files because they always start with a dot (.).
  • How to transfer files to / from Linux servers using SFTPHow to transfer files to / from Linux servers using SFTP
    if the openssh daemon is running on that computer, users can connect to it via secure / ssh ftp (sftp) protocol.
  • How to Delete Read-Only Files on LinuxHow to Delete Read-Only Files on Linux
    there are several ways to help you delete files read-only on linux. if it's a file you own, you can change the file permissions or use the sudo command to delete the original file. however, if you cannot delete files with write permissions (or see a 'read only file system' error message), you need to change the drive with the appropriate permissions. this article will show you how to delete read-only files on any linux distribution, including ubuntu and linux mint.
  • How to use Foremost to recover deleted files in LinuxHow to use Foremost to recover deleted files in Linux
    foremost is designed to diagnose your hard drive in order to recover any files you have deleted. this article provides a tutorial on how to use the foremost tool.
  • Useful commands in Unix / LinuxUseful commands in Unix / Linux
    this chapter lists the commands, including syntax and brief descriptions. for more details about these commands, you use.
  • How to modify and manage Hosts files on LinuxHow to modify and manage Hosts files on Linux
    if you need to block web pages or create personalized web shortcuts on linux, solve these tasks by adding or adjusting a few lines in the hosts file.
  • How to recover deleted files on LinuxHow to recover deleted files on Linux
    data loss is something that all pc users have to face at some point in time. whether it's a hard drive failure or accidental deletion, we've all been in situations where we wish we could get our deleted data back.