The basics of apt-get
apt-get’s commands are very easy and intuitive. These commands will be very useful in managing software in Debian and Ubuntu (based) systems.
Its commands follow this structure:
# apt-get [options] command # apt-get [options] install package [package ...]
The command line may be a variation of the following basic types:
apt-get update
- Updates apt-get’s local database with server’s pkglist’s files.
- apt-get check
- verifies system’s integrity using apt
- apt-get install some-package
- installs some new package, automatically resolving and downloading dependent packages
- apt-get upgrade
- checks for outdated packages in the system and automatically upgrades them
- apt-get dist-upgrade
- same as apt-get upgrade, but installs all base packages and tries to upgrade everything, installing new packages if needed
- apt-get remove some-package
- removes the some-package package and all other packages that depends on it
- apt-get clean
- removes the downloaded packages from the cache directory (/var/cache/apt/archives/), freeing some disk space at your system.
Related Posts
Tags: apt-get
September 1st, 2008 at 8:37 pm
For me, the apt-get command is more typing work compared to wajig (http://www.togaware.com/linux/survivor/Wajig_Overview.html). Once I started using it, it never turned back to apt-get.