Debian Linux apt-get package management cheat sheet
Source: nixCraft
Both Debian and Ubuntu Linux provides a number of package management tools. This article summaries package management command along with it usage and examples for you.
apt-get
: APT is acronym for Advanced Package Tool. It supports installing packages over internet using ftp or http protocols. You can also upgrade all packages in a single operations, which makes it even more attractive.dpkg
: Debian packaging tool which can be use to install, query, uninstall packages.
Gui tools: You can also try GUI based or high level interface to the Debian GNU/Linux package system. Following list summaries them:
aptitude
: It is a text-based interface to the Debian GNU/Linux package system.synaptic
: GUI front end for APT
Red hat Linux package names generally end in .rpm, similarly Debian package names end in .deb, for example:
apache_1.3.31-6_i386.deb
Where,
apache
: Package name1.3.31-6
: Version numberi386
: Hardware Platform on which this package will run (i386 == intel x86 based system).deb
: Extension that suggest it is a Debian package
Remember, whenever I refer .deb file it signifies complete file name, and whenever I refer package name it must be first part of .deb file. For example, when I refer to a package sudo it means sudo only and not the .deb file i.e. sudo_1.6.7p5-2_i386.deb. You can find out debian package name with the following command:
apt-cache search {package-name} apt-cache search apache
Finally, most of the actions listed in this post are written with the assumption that they will be executed by the root user running the bash or any other modern shell. Lire la suite…