PhoroLinux

Apt-get & Aptitude Quick Reference

November 22nd, 2007 · Posted by Toor · No Comments

Here’s a quick reference list of Apt-get commands and Aptitude commands. This quick reference is quite useful for new Debian and Ubuntu users. For more information, go here and here.

Apt-get and Aptitude quick reference

Apt-get commands Aptitude commands
apt-get install package aptitude install package install package
apt-get install package -- reinstall reinstall package
apt-get -f install force install
apt-get remove package aptitude remove package remove package
apt-get remove package -- purge aptitude purge package remove package, include configuration files
apt-get autoremove auto remove unused packages
apt-get update aptitude update update the list of available packages
apt-get upgrade aptitude upgrade upgrade packages
apt-get dist-upgrade aptitude dist-upgrade upgrade to a new release
apt-get build-dep package install build dependency
apt-get source package download source
apt-get clean && apt-get autoclean aptitude clean && aptitude autoclean remove unused package files
apt-cache search package aptitude search package search packages
apt-cache show package get more information

If you like this post, please consider buying me a beer.

Tags: CLI

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment