Linux Command Reference: aptitude (Debian, Ubuntu)
aptitude is the menu-driven package manager for Debian-based Linux distributions (including Ubuntu and other derivatives).
Use the aptitude interface to install new packages, upgrade installed packages, and remove packages.
Note: The command-line driven apt-get may be used in place of aptitude where a menu-driven interface is not required.
Using aptitude
Enter aptitude from the console to enter the menu-driven package management interface.
Navigation
- Up or j - Scroll up
- Down or k - Scroll down
- Enter - Functions depends upon view:
- Expand or collapse a group of packages
- View information about a package
Package Selection
- + - Install or upgrade a package
- - - Remove a package
- = - Hold a package at its current version (prevent package upgrade)
- _ - Remove a package and its configuration files
- M - Mark a package as being automatically installed
- m - Mark a package as being manually installed
- u - Update the list of available packages
- U - Mark all upgradeable packages to be upgraded
Commands
- g - Perform all pending installations, removals, and upgrades
- / - Perform a search
- v - Show available versions of the selected package
- d - Show dependencies of the selected package
- r - Show packages which depend upon the selected package
- ? - Display help
- q - Quit or return to prior view
Install Packages
- Press u from the aptitude interface to update the list of packages available for installation
- Navigate the menu and press + to select the packages you wish to install
- Once you have selected all the packages you wish to install, press g to begin downloading and installing the package files
Upgrade Packages
- Press u from the aptitude interface to update the list of packages available for installation
- Press U to upgrade all packages which may be upgraded
- Press g to begin downloading and installing upgraded package files
Remove Packages
- Navigate the aptitude menu and press - to select the packages you wish to remove
- Press g to begin removing the packages
Related Commands