Home  »  ArticlesGuidesHow ToTechnologyTools   »   How To Install aptitude on Ubuntu 22.04

How To Install aptitude on Ubuntu 22.04

In this guide we will show you how to install aptitude on Ubuntu 22.04. The same steps in this guide also apply to other Debian based Linux systems.

What is aptitude?

aptitude is a terminal based package manager. It is a front-end to numerous Apt libraries that are used by apt, the default package manager on Debian systems.

In this tutorial we will be installing on aptitude Ubuntu 22.04 using two different package managers namely apt-get and apt.

Install aptitude Using apt-get

First we update the apt package database using this command:

$ sudo apt-get update

Following that we can now install aptitude using the command below:

$ sudo apt-get -y install aptitude

That’s it.

Install aptitude Using apt

We can do that same as above by substituting apt-get for apt. In this example we have combined the two commands into one line:

$ sudo apt update && sudo apt -y install aptitude

For more details on how to combine commands into one line see this post.

How To Uninstall aptitude From Ubuntu 22.04

Where there is an install you need the ability to reverse you actions and here we have a bonus section showing how to uninstall aptitude from Ubuntu 22.04.

This can be done by running the following command:

$ sudo apt-get remove aptitude

Remove aptitude and its Dependencies

The command above removes aptitude but does not touch the dependencies. To remove the dependencies as well you need to run this command:

$ sudo apt-get -y autoremove aptitude

Remove aptitude Configurations and Data

None of the commands above remove the configurations and data. That can be done by running:

$ sudo apt-get -y purge aptitude

Remove aptitude Configuration, Data, and Dependencies

You can combine the commands above to remove aptitude configurations, data and all of its dependencies with this:

$ sudo apt-get -y autoremove --purge aptitude


You have seen how to install aptitude on Ubuntu 22.04 in this tutorial with practical examples that your can use on your own Debian-based Linux systems.

Official aptitude website
aptitude page on packages.ubuntu.com

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.

Available under:
Articles, Guides, How To, Technology, Tools