Updating package database:
aptitude update
Showing available updates:
aptitute upgrade --simulate
Updating a particular package:
aptitude install package1 package2
Installing packages:
apt-get install package1 package2
Source compile:
apt-get build-dep package1
apt-get source package1
Reinstalling a particular package:
apt-get install --reinstall package1 package1
Searching the package database:
apt-cache search searchword
apt-cache search --full --names-only searchword
Removing packages:
apt-get remove package1 package2
Removing packages along with all configuration files:
apt-get remove --purge package1 package2
Only downloading packages:
apt-get install --download-only package1 package2
Cleaning up downloaded packages:
apt-get clean
Remove outdated packages:
apt-get autoclean