Like apt-Get, aptitude is a powerful package management tool in Debian and its derivative systems. Unlike apt-Get, aptitude is better in dealing with dependency issues. For example, aptitude deletes the packages it depends on when deleting a package. In this way, useless packages will not be left in the system, and the whole system will be cleaner. The following are some common aptitude commands that I have summarized for your reference only.
Command |
Function |
Aptitude update |
Update the list of available packages |
Aptitude upgrade |
Upgrade available packages |
Aptitude dist-Upgrade |
Upgrade the system to a new release |
Aptitude install pkgname |
Installation Package |
Aptitude remove pkgname |
Delete package |
Aptitude purge pkgname |
Delete packages and their configuration files |
APTITUDE search string |
Search package |
Aptitude show pkgname |
Show package details |
Aptitude clean |
Delete downloaded package files |
Aptitude autoclean |
Only Delete expired package files |
Of course, you can also use aptitude in text interface mode.