RAR is the most popular tool for creating and extracting compressed archive (.rar) files, but unfortunately, the Rar tool doesn't pre-installed under Linux systems, we need to install it using third-party tools to open, extract, uncompress or unrar archive files.
In this context, we shall look into how to install Rar/Unrar on CentOS 8.
1. Perform System Update
First, let's start by ensuring your system is up-to-date:
$ sudo dnf install epel-release
$ sudo dnf update
2. Install Rar / Unrar on the system
Now we run the following command to install Rar/Unrar:
$ wget https://www.rarlab.com/rar/rarlinux-x64-6.0.2.tar.gz
$ tar -zxvf rarlinux-x64-6.0.b2.tar.gz
$ cd rar
$ sudo cp -v rar unrar /usr/local/bin/
There's no need to compile or anything. The binary on the tar file works out of the box. On the above example, we copy it /usr/local/bin so it is found by default after login on our system.
Below are some useful and helpful Rar/Unrar archive commands:
This article covers how to install Rar/Unrar on CentOS 8 system. In fact, RAR files are archived by Winrar compression software and can be split into large files.