Translation(s): Dutch - English - Español - Français - Italiano -한국어 - Русский - 简体中文

(!) ?Discussion


An Ncurses and command-line front-end for package management. For basic usage, see AptCLI. For package management generally, see PackageManagement.

Aptitude has a number of useful features, including:

Interactive Use

To run interactively, enter the following from a terminal emulator:

aptitude

After running it, use:

When reviewing dependency resolutions (shown after pressing e), press:

When reviewing pending actions, press:

See Accessing package information to understand the letters in the package synopsis line (e.g., i means "will be installed", p means "not installed", etc.)

The most common way to use aptitude is:

  1. run aptitude

  2. press u to update the lists of available packages

  3. press U to mark all upgradable packages to be upgraded

  4. optionally search/select some packages to install
  5. press g to see the pending actions and modify them if needed

  6. press g again to start the download

{i} When you need to resolve conflicts, but you discover that you made a mistake; use Actions > Cancel pending actions to start again.

Advanced search patterns

Look for packages installed from anything other than stable:

aptitude search '?narrow(?installed, !?archive(stable))'

Look for packages installed from testing (assuming you have sources lists with stable and testing repositories):

aptitude search '?narrow(?installed, ?archive(testing) !?archive(stable))'

List contrib, non-free, or non-free-firmware packages installed:

aptitude search '~i ?section(non-free)'
aptitude search '~i ?section(contrib)'
aptitude search '~i ?section(non-free-firmware)'

For more information about searching, see the aptitude search term reference

See Also

and ... apt.conf, preferences, sources.list, Aptitude::Parse-Description-Bullets=true, AptitudeTodo

Other content

This page used to be much longer - general information about managing packages on the command line has been moved to AptCLI, while abstract guidance about package managers has been moved to DebianPackageManagement.


CategoryPackageManagement | CategorySoftware