Like Apt-get, Aptitude is the most powerful package management tool in Debian and its derivative systems.
Unlike Apt-get, aptitude is better at dealing with dependency issues.
For example, when aptitude deletes a package, it also deletes the packages it depends on.
This way, the system will not be left with useless packets, the whole system is cleaner. The following is a summary of some of the common aptitude commands, for reference only.
Command |
Role |
Aptitude Update |
Update the list of available packages |
Aptitude Upgrade |
Upgrade the available packages |
Aptitude Dist-upgrade |
Upgrade your system to a new release |
Aptitude Install Pkgname |
Install package |
Aptitude Remove Pkgname |
Delete Package |
Aptitude Purge Pkgname |
To delete a package and its configuration files |
Aptitude search String |
Search Packages |
Aptitude Show Pkgname |
Display Package Details |
Aptitude Clean |
To delete a downloaded package file |
Aptitude AutoClean |
Delete Expired package files only |
Linux Aptitude Commands