Categories: Ubuntu

How to Extract RAR Files in Ubuntu 22.04

The RAR (Roshal Archive Compressed file) is a compressed form of the WinRAR archive and can be used to compress the files, to compress their size so they can be sent easily through email. The utility of the RAR file by default comes in Microsoft Windows, but in Ubuntu, to extract the files from the RAR files, we have to install some third-party applications.

In this write-up, a method has been discovered to extract the files on Ubuntu 22.04 using the command-line interface.

How to Extract RAR Files in Ubuntu 22.04?

The RAR files are the compressed files as discussed above and contain the “rar” extension with their names. To extract them in Ubuntu, a package of unrar will be installed using the command:

$ sudo apt install unrar -y

When the installation is complete, it’s time to learn the usage of the unrar package to extract the RAR files. For this, we have a RAR sample file for a better understanding of the user; navigate to the folder of “rar files” using the command:

$ cd ‘rar files’

List down the files of “rar files” directory by executing the command:

$ ls

A “sample.rar” is available that can be extracted using the unrar package. To view the contents inside the rar file using the unrar utility, run the command:

$ unrar l sample.rar

To extract all these files in the same directory using the unrar utility, run the command:

$ unrar e sample.rar

In the above output, it can be seen that the files of sample.rar have been extracted using the unrar package. We used the “e” command of the unrar utility, which extracts the files without their archived path. Similarly, there are some other commands of unrar utility that can be found out by running the command:

$ unrar

All options of the unrar utility will be displayed on the screen.

Conclusion

Installing the unrar utility on Ubuntu and by running the command “unrar e filename.rar”, RAR files can be extracted in Ubuntu 22.04. In this write-up, the installation method of unrar and its usage has been explained with the help of an example.

Ubuntu Server Admin

Recent Posts

AI harnesses for telco autonomous networks

Across the global landscape, telecommunications operators have already deployed machine learning for predictive maintenance, customer…

5 hours ago

🛠️ How to Install and Configure ListMonk on Ubuntu VPS

Here is a step-by-step guide to install and configure ListMonk (a high-performance, self-hosted newsletter and…

18 hours ago

Arduino® VENTUNO™ Q is available for pre-order with Ubuntu pre-installed

London, UK – August 25, 2026 – Following our initial collaboration announcement in March 2026,…

2 days ago

Deploy RustDesk On Ubuntu VPS for Self-Hosted AnyDesk Alternative

This article demonstrates how to deploy RustDesk on Ubuntu VPS for self-hosted AnyDesk alternative, enabling…

5 days ago

🚀 Deploy ERPNext on Ubuntu VPS

This article provides a guide demonstrating how to deploy ERPNext on Ubuntu VPS. This guide…

1 week ago

Advantech AOM-2721 is now Ubuntu Certified

Canonical announces that the Advantech AOM-2721 is officially joining the list of Ubuntu Certified Hardware.…

2 weeks ago