Like apt-Get, aptitude is a powerful package management tool in Debian and its derivative systems.
And apt-Get
The difference is that aptitude is better in dealing with dependencies.
For example, aptitude
When a package is deleted, the dependent package is also deleted.
In this way, useless packages will not be left in the system, and the whole system will be cleaner. Below are some common Aptitude
Command, for 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 |