Skip to content
Alexander Holbreich
Go back

Debian aptitude recipes

Aptitude is a native packet manager for Debian Linux which is based on apt. I prefer to use it if available because of easiness. Below some tips on how to use it in graphic mode.

Shortlist

  • Update packet database before do anything else by pressing u
  • Action on selected packages: + for add or update - for remove = for hold version.
  • Use Ctr+T to open menu with all available commands
  • Aptitude uses different screens. For example during the update new screen appears but the main screen is not closed but only overlapped, you can navigate through them with F6 and F7 . And you can close any screen by pressing q . Aptitude is closed if you close the last screen.
  • / for search n for next element. Alternatively press l for reducing the package tree for only search results. Un-Limit is again by deleting filter or by navigation through menu-> Search-> Un-Limit Display…
  • [Shift+U] select all packets for upgrade.
  • by conflicts you can examine them by pressing e and then switch between proposals by pressing , and . However sometimes it’s there are just um any.  Therefore to guide aptitude you can select a particular package then switch in the info-panel by pressing Tab and explicitly reject one of the proposals by pressing r. For example, you maybe want to reject any proposal of removal of that particular package.

States

Current state column

SymbolDescription
iThe package is installed and all its dependencies are satisfied.
cThe package was removed, but its configuration files are still present.
pThe package and all its configuration files were removed, or the package was never installed.
vThe package is virtual.
BThe package has broken dependencies.
uThe package has been unpacked but not configured.
Chalf-configured: the package’s configuration was interrupted.
Hhalf-installed: the package’s installation was interrupted.

Action flags (what will be done)

SymbolDescription
iThe package will be installed.
uThe package will be upgraded.
dThe package will be deleted: it will be removed, but its configuration files will remain on the system.
pThe package will be purged: it and its configuration files will be removed.
hthe package will be held back: it will be kept at its current version, even if a newer version becomes available, until the hold is cancelled.
FAn upgrade of the package has been forbidden.
rThe package will be reinstalled.
BThe package is “broken”: some of its dependencies will not be satisfied. aptitude will not allow you to install, remove, or upgrade anything while you have broken packages

Extra

SymbolDescription
Aautomatically installed package as dependency
UPackage from Untrusted source

Archived comments (4)

These comments were migrated from Disqus and are no longer accepting replies.

  • Cristian Briscan

    The underscore (_) allows you to mark a package for purging.

  • AlexH

    Hi Cristian, was it introduced recently?

  • Cristian Briscan

    I think I am using this shortcut for more than 4 years, so I would say it's not recent.

  • AlexH

    Ok. I stopped using aptitude also years ago, since apt-get was recomendet again and then the new "apt". Recently i also discontinued my home server on debian base. On laptop i try to go with fedora and like it for modernity. Still some debian on the cloud, but probably will be gone in favor of some sort of "Container Linux"