Red Hat and Debian GNU/Linux Package Managers
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9
The Debian Package Manager
Debian GNU/Linux provides several package management tools, primarily intended to facilitate the building, installation, and management of binary packages. Debian package names generally end in .deb. The Debian package management tools include:
- dpkg
-
Until recently, the most important of the Debian packaging tools and still the primary package management program. Used to install or uninstall packages or as a frontend to dpkg-deb.
- dpkg-deb
-
Lower-level packaging tool. Used to create and manage the Debian package archives. Accepts and executes commands from dpkg or can be called directly.
- dselect
-
An interactive frontend to dpkg.
- apt-get
-
The currently available piece of the Advanced Package Tool (APT), which is still being developed and is intended to be a modern, user-friendly package management tool. Can be run from the command line or selected as a method from dselect. One of the features of apt-get is that you can use it to get and install packages across the Internet by specifying an ftp:// or http:// URL. Another feature is that you can use it to upgrade all packages currently installed on your system in a single operation.
Files
Some important files used by the Debian package management tools are:
- control
- Comes with each package; documents dependencies; contains the name and version of the package, a description, maintainer, installed size, and so on.
- conffiles
- Comes with each package and contains a list of the configuration files associated with the package.
- preinst, postinst, prerm, postrm
- Scripts that can be included in a package to be run before installation, after installation, before removal, or after removal of the package.
- /var/lib/dpkg/available
- Contains information about packages available on the system.
- /var/lib/dpkg/status
- Contains information about the status of packages available on the system.
- /etc/apt/sources.list
- A list for APT of package sources, used to locate packages. The sources are listed one per line, in order of preference.
- /etc/apt/apt.conf
- The main APT configuration file.