O'Reilly logo

Mastering Ubuntu Server by Jay LaCroix

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making use of aptitude

The aptitude command is a very useful, text-based utility for managing packages on your server. Some administrators use it as an alternative to apt, and it even has additional features that you won't find anywhere else. To get started, you'll need to install aptitude, if it isn't already:

# apt-get install aptitude

The most basic usage of aptitude allows you to perform functions you would normally be able to perform with apt. In the following table, I outline several example aptitude commands, as well as their apt equivalent:

aptitude command

apt equivalent

# aptitude install <packagename>

# apt-get install <packagename>

# aptitude remove <packagename>

# apt-get remove <packagename>

# aptitude search <search ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required