Last Updated : 11 Jul, 2025
The aptitude command in Linux provides a user-friendly interface to interact with the machine's package manager. It functions similarly to a control panel, like in Windows, allowing you to install, upgrade, and remove packages. The command can be used in either a visual interface or directly via the command line, similar to the apt-get command.
aptitude command in Linux package system opens up a highly built-in interface to interact with the package manager of the machine. It is the control panel of programs and packages in Windows. You can install, upgrade and remove your packages using this well-built interface. Also, the actions can be performed using the command-line(similar to apt-get command) or the visual interface.
Installation aptitude 1. For Non-Root Users: 2. For Root Users: Syntaxaptitude [options] <action> ...
After running the command, the terminal will open up the interactive interface.
Important Usage of aptitude command: Command-line ActionsIf none is specified then aptitude command will enter into the interactive mode and following actions can be performed using the command-line interface.
aptitude install package_name
aptitude remove package_name
aptitude purge package_name
aptitude hold package_name
aptitude full-upgrade
aptitude show packageExample:
aptitude autoclean
Example:
Options
Description
-D, --show-deps
It is used for the commands which are used to install or remove the packages.
-f
Used to fix the dependencies of the broken packages.
-d, --download-only
Used to download the packages to the package cache if required. But this option will not install or remove anything.
-h, --help
It will display a help message and exit.
Conclusion
The aptitude command is a versatile tool for managing packages in Linux. With both interactive and command-line modes, it allows for a wide range of package management tasks, from installation to updates, and even dependency fixing. If you prefer a visual interface or prefer the command line, aptitude offers extensive functionality for users of all levels.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4