Debian aptitude recipes

Aptitude is 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.

Short list

  • 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 F& and F7 . And you can close any screen by pressing q . Aptitude is quits if you close 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 examinate 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 ca select particular package then switch in the info-panel by pressing Tab and explicitly reject one of the proposal by pressing r. For example you maybe want to reject any proposal of removal of that particular package.


Current state column

i - the package is installed and all its dependencies are satisfied.
c - the package was removed, but its configuration files are still present.
p - the package and all its configuration files were removed, or the package was never installed.
v - the package is virtual.
B - the package has broken dependencies.
u - the package has been unpacked but not configured.
C - half-configured: the package's configuration was interrupted.
H - half-installed: the package's installation was interrupted.

Action flags (what will be done)

i - the package will be installed.
u - the package will be upgraded.
d - the package will be deleted: it will be removed, but its configuration files will remain on the system.
p - the package will be purged: it and its configuration files will be removed.
h - the 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.
F - An upgrade of the package has been forbidden.
r - the package will be reinstalled.
B - the 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


A - automatically installed package as dependency
U - Package from Untrusted source