Basic APT commands


Okay, now for a bit of CLI goodness. Here is a quick list of basic apt commands.  Debian and most derivatives (Ubuntu) use these for package maintenance.
#search
apt-cache search packagename

#package info
apt-cache show packagename

#clean
sudo apt-get clean
sudo apt-get autoclean #old packages

#check
apt-get check

#get source code
apt-get source packagename

#get dep
apt-get build-dep packagename

#update/install/remove/upgrade
sudo apt-get update
sudo apt-get install packagename
sudo apt-get remove packagename
sudo apt-get upgrade
sudo apt-get dist-upgrade

, , ,

Leave a Reply