Table of Contents
![unrar Terminal Application - Extracting RAR Files](https://www.inmotionhosting.com/support/wp-content/uploads/2021/09/canva-unrar-terminal-application-1024x538.jpg)
unrar is a command line application for extracting compressed Roshal Archive (.rar) files on *nix-based operating systems. 7-Zip, PeaZip, and GNOME Archive Manager are good graphical applications for managing compressed files on desktop systems. But depending on your workflow, you may need a solution available on your Linux VPS. Note that the terminal application is oftentimes already included with popular Linux desktop distributions.
You’ll need Secure Shell (SSH) access with root privileges to install the unrar and rar applications.
Installing and Using the unrar and rar Unix Terminal Application
You can check if unrar is installed running the unrar
terminal command. If it isn’t installed already, log into SSH and follow the installation instructions for your operating system (OS).
Install unrar Linux app on CentOS:
- Navigate to your temporary directory in SSH:
- Visit the official WinRAR website – https://www.rarlab.com/download.htm.
- Right-click the latest RAR version for Linux x64 and select “Copy Link.”
- Type “wget” and paste the copied download link in your terminal to download RAR archiver. For example, to download RAR 6.02:
- Extract the RAR download:
- Copy the extracted /rar and /unrar application directories into your /bin directory:
Install unrar on CentOS (with cPanel or FTP):
- Visit https://www.rarlab.com/download.htm.
- Download the latest RAR version for Linux x64 to your local machine.
- Upload the tar archive to your Linux VPS using FileZilla or cPanel File Manager.
- Extract the compressed archive.
- Log into SSH or WebHost Manager (WHM) Terminal as root.
- Navigate (
cd
) to the directory with the extracted rar archive. - Copy the extracted /rar and /unrar application directories into your /bin directory:
- After testing that the
rar
andunrar
commands work, you should remove the tar file.
Install unrar on Debian / Ubuntu (one of the following):
![Installing unrar in Ubuntu Server](https://www.inmotionhosting.com/support/wp-content/uploads/2021/09/unrar-ubuntu-1024x421.png)
Install unrar on Arch / Manjaro:
Install unrar on FreeBSD:
You can download the unrar macOS application from https://www.rarlab.com/download.htm.
How to unrar a file to the current directory:
Create a rar archive:
Password protect a rar archive:
Then type a strong password twice.
![Password Protect the rar archive](https://www.inmotionhosting.com/support/wp-content/uploads/2021/09/unrar-password-protection.png)
List archived files:
Integrity check a rar file:
Learn more about the unrar and rar applications:
Now you have an additional terminal application when unable to use tar or zip.
No matter if you're a developer, system administrator, or simply a fan of SSH and command line, InMotion's Cloud Hosting plans provide a fast, scalable environment that is budget-friendly.