1. Searching for packages apt-cache
sudo apt-cache search package1
2. Getting more Information about a package apt-cache
sudo apt-cache show package1 package2 …
3. Installing a package apt-get install
sudo apt-get install package1 package2 …
sudo apt-get install package1 –reinstall
4. Removing packages apt-get remove
sudo apt-get remove package1 package2
complete remove:
sudo apt-get remove package1 package2 –purge
5. Update your package database apt-get update
sudo apt-get update
6. Upgrading your system apt-get [dist-]upgrade
sudo apt-get upgrade
The smart upgrade with:
sudo apt-get dist-upgrade
7. Resolving conflicts and Broken packages apt-get
sudo apt-get -f install
8. Checking for dependencies and reverse dependencies apt-cache
apt-cache depends package1 package2
apt-cache rdepends package1 package2