In this tutorial, you will learn how to install aptitude on Ubuntu 22.04.
apt is the default package manager on Ubuntu, which means you can use apt to manage packages on your Ubuntu machine. However, apt is not the only package manager that you can use to manage packages on your system.
aptitude is another package manager that you can install on Ubuntu and use it to manage packages, just like you can with apt.
The difference between aptitude and apt is that, apt is a cli package manager, meaning you can use apt only in the terminal because it doesn't have a GUI. Aptitude in the other hand, can be used in the terminal, and it has also a GUI that you can use.
Step 1 - Update
Before installing aptitude, you need to make sure that your machine is updated.
You can use apt to update your Ubuntu machine, by simply running the command below.
sudo apt update
Step 2 - Install aptitude
aptitude that we are going to install in this tutorial, is available on Ubuntu repositories, which means
aptitude can be easily installed directly from the terminal, without adding or downloading any other package first.
aptitude, you can do so by issuing the following.
sudo apt install aptitude
Step 3 - Check aptitude installation
aptitude is now installed on your system.
Before starting to use aptitude, check that you are able to run aptitude. For example, you can check aptitude version, this way you can see if aptitude is able to run.
Step 4 - Use aptitude
You should be able to use aptitude now to manage packages on your Ubuntu machine.
aptitude can be used in the terminal, or with GUI.
To use aptitude in the terminal, you can do so by running the command below.
sudo aptitude command
replace command with the command you want to execute. Let's say that you want to use aptitude to update your system, to do so, simply replace command with
sudo aptitude update
To be able to use aptitude with GUI, then simply launch aptitude with
And you should be able to use aptitude in GUI mode.
In this tutorial, you learned how to install aptitude on Ubuntu 22.04. We also explained what the differences are between the default package manager apt, and aptitude.
We used Ubuntu 22.04 for this tutorial. However, aptitude can be installed on any debian based distro, by downloading the official package of aptitude