====== Advanced Packaging Tool (APT) ====== [[http://ru.wikipedia.org/wiki/Advanced_Packaging_Tool|APT]] ===== Apt, Aptitude and Dpkg Reference ===== http://linuxclues.blogspot.com/2007/07/apt-aptitude-dpkg-reference.html [[http://www.debian.org/doc/manuals/reference/ch-package.en.html|The Debian package management tools ]] [[http://www.debian.org/doc/manuals/apt-howto/index.en.html|APT HOWTO ]] ---- Apt, Aptitude and Dpkg are Debian package managing tools. Let's see a small reference about them: ^ apt ^^ |**apt-get install ** | Installs foo package | |**apt-get remove ** | Removes foo package | |**apt-get remove --purge ** | Removes foo package and its configuration files | |**apt-get update** | Updates package database | |**apt-get -f install** | Installs and removes packages in order to fix dependency problems | |**apt-get clean** | Deletes all .deb packages from local repository | |**apt-get upgrade** | Upgrades all packages to its newer versions | |**apt-get dist-upgrade** | Upgrades packages but also deals with dependency problems caused by new packages | |**apt-get source ** | Downloads foo package source files | |**apt-get -t unstable ** | Installs foo package searching for foo package and its dependencies at unstable version | |**apt-get /unstable** | Installs foo package from unstable version, but searchs for dependencies without overriding priorities /etc/apt/preferences file | |**apt-get build-dep ** | Installs all necessary packages to satisfy the build dependencies for foo source package | | || |**apt-cache show ** | Gives a long info description about foo package | |**apt-cache search ** | Searchs for packages that match "foo" pattern | | || |**apt-file update** | Resynchronize the package contents from their sources (/etc/apt/sources.list) | |**apt-file search ** | Lists all packages containing files that match foo pattern. Searchs also in not installed packages | ^ aptitude ^^ |**aptitude install ** | Installs foo package | |**aptitude remove ** | Removes foo package | |**aptitude remove --purge ** | Removes foo package and its configuration files | |**aptitude search ** | Searchs for packages that match "foo" pattern | |**aptitude update** | Updates package database | |**aptitude upgrade** | Upgrades packages to its newer versions | |**aptitude safe-upgrade** | Same as aptitude upgrade | |**aptitude full-upgrade** | Upgrades packages to its newer versions, taking care about dependencies. Sames as dist-upgrade. | |**aptitude hold ** | Marks foo package so it will not be removed or upgraded when executing safe-upgrade or full-upgrade | |**aptitude unhold ** | Turn off the hold on foo package | |**aptitude show ** | Gives a long info description about foo package | |**aptitude clean** | Removes all previously downloaded .deb files from the package cache directory | ^ dpkg ^^ |**dpkg -i ** | Installs foo package | |**dpkg -i --force-depends ** | Converts all dependency errors into warnings and installs foo package | |**dpkg -r ** | Removes foo package | |**dpkg --purge ** | Removes foo package and its configuration files too | |**dpkg -l ** | Lists packages containing "foo" pattern | |**dpkg -L ** | Lists files pertaining to foo package | |**dpkg-reconfigure -plow ** | Reconfigures previously installed "foo" package, asking all configuration questions | |**dpkg --configure -a** | Configures all packages that have been unpacked but not yet configured | |**dpkg --search ** | Lists packages containing files matching foo pattern. Only searchs on installed packages | | || |**dpkg-query -S ** | Searchs for a filename from installed packages listed in the local dpkg database |