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?
In this tutorial we will be installing on
aptitude Ubuntu 22.04 using two different package managers namely
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
Install aptitude Using apt
We can do that same as above by substituting
apt. In this example we have combined the two commands into one line:
$ sudo apt update && sudo apt -y install aptitude
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.