How to Install or Uninstall unrar Ubuntu 22.04

Updated: October 7, 2022

Unrar can extract files from .rar archives. If you want to create .rar archives, install package rar. I will show you how to install unrar on Ubuntu 22.04 in this tutorial.

Software Requirement

  • Operating system: Ubuntu 22.04 is needed for unrar to work
  • Privileges: Check that you can run sudo commands.

Prerequisites to install unrar on Ubuntu 22.04

Install unrar Ubuntu 22.04

unrar is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install unrar using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get unrar on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install unrar Ubuntu by executing this command in the terminal.

sudo apt -y install unrar

Install unrar using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already done so, run this command to install it.

sudo apt-get -y install aptitude

Then, you can now install unrar, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install unrar Ubuntu by executing this command in the terminal.

sudo aptitude -y install unrar

Uninstall unrar on Ubuntu 22.04

Have you ever thought about how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone can easily uninstall any program, not just a package.

This command can be used to uninstall unrar from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove unrar

If you want to uninstall unrar and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge unrar

Ending

In this tutorial, I showed you ways to install unrar on Ubuntu 22.04 and ways to uninstall unrar too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.