Ways to Uninstall and Install unar on Ubuntu 22.04

Updated: October 7, 2022

The Unarchiver is an archive unpacker program with support for the popular zip, RAR, 7z, tar, gzip, bzip2, LZMA, XZ, CAB, MSI, NSIS, EXE, ISO, BIN, and split file formats, as well as the old Stuffit, Stuffit X, DiskDouble, Compact Pro, Packit, cpio, compress (.Z), ARJ, ARC, PAK, ACE, ZOO, LZH, ADF, DMS, LZX, PowerPacker, LBR, Squeeze, Crunch, and other old formats. In this guide, I will show you how to install unar on Ubuntu 22.04.

Requirements

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Check that you can run sudo commands.

Prerequisites to install unar on Ubuntu 22.04

Install unar Ubuntu 22.04

unar is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install unar 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 unar on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. You can now install unar Ubuntu by executing this command in the terminal.

sudo apt install unar

Install unar using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt -y install aptitude

Then, you can now install unar, 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. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt update

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

sudo aptitude -y install unar

Uninstall unar 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.

If you installed unar using APT or Aptitude, you could uninstall unar on Ubuntu by executing this command

sudo apt remove --auto-remove unar

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

sudo apt autoremove --purge unar

Ending

In this tutorial, I showed you ways to install unar on Ubuntu 22.04 and some ways to uninstall unar too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.