How to Install or Uninstall apt-utils on Ubuntu 22.04

Updated: October 14, 2022

This package contains some less used commandline utilities related to package management with APT. In this guide, I will show you ways to install apt-utils Ubuntu 22.04.

Requirements to install

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

Prerequisites to install apt-utils on Ubuntu 22.04

Install apt-utils Ubuntu 22.04

apt-utils 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 apt-utils using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install apt-utils on your Ubuntu 22.04.

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt update

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

sudo apt-get -y install apt-utils

Install apt-utils using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt install aptitude

After installing aptitude, you can now install apt-utils by following these steps:

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

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install apt-utils Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install apt-utils

Uninstall apt-utils on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just apt-utils.

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

sudo apt remove --auto-remove apt-utils

You can also execute this command if you want to uninstall apt-utils and remove its data and dependencies:

sudo apt autoremove --purge apt-utils

Ending

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