This is the main package management program. dpkg
can be invoked
with many options. Some common uses are:
This program is a menu-driven interface to the Debian package management system. It is particularly useful for first-time installations and large-scale upgrades.
dselect
can:
dselect
begins by presenting the user with a menu of 7 items, each
of which is a specific action. The user can select one of the actions by using
the arrow keys to move the highlighter bar, then pressing the
<enter> key to select the highlighted action.
What the user sees next depends on the action he selected. If he selects any
option but Access or Select, then
dselect
will simply proceed to execute the specified action: e.g.,
if the user selected the action Remove, then dselect would proceed
to remove all of the files selected for removal when the user last chose the
Select action.
Both the Access menu item and the Select menu item lead to additional menus. In both cases, the menus are presented as split screens; the top screen gives a scrollable list of choices, while the bottom screen gives a brief explanation ("info") for each choice.
Extensive on-line help is available, use the '?' key to get to a help screen at any time.
The order in which the actions are presented in the first dselect
menu represents the order in which a user would normally choose
dselect
to install packages. However, a user can pick any of the
main menu choices as often as needed (including not at all, depending on what
one wants to do).
dselect
exits, so if it does not change, then this option need not
be invoked again.
dselect
reads the file "Packages.gz" which should be
included in the top level of the directory where the Debian packages to be
installed are stored. (But if it is not there, dselect
will offer
to make it for you.)
The top part of the screen is a relatively narrow window into the list of Debian's 15400 packages; the bottom part of the screen contains description of the package or group of packages which are highlighted above.
One can specify which packages should be operated on by highlighting a package name or the label for a group of packages. After that, you can select packages:
Note that it's not possible to remove "All Packages". If you try that, your system will instead be reduced to the initial installed base packages.
dselect
not
to upgrade a package even if the version currently installed on your system is
not as recent as the version that is available in the Debian repository you are
using (this was specified when you set the Access Method, and
acquired when you used Update).
Just like you can put a package on hold, you can reverse such setting by
pressing `:'. That tells dselect
that the package(s) may be
upgraded if a newer version is available. This is the default setting.
You can select a different order in which the packages are presented, by using the `o' key to cycle between various options for sorting the packages. The default order is to present packages by Priority; within each priority, packages are presented in order of the directory (a.k.a. section) of the archive in which they are stored. Given this sort order, some packages in section A (say) may be presented first, followed by some packages in section B, followed by more packages (of lower priority) in section A.
You can also expand meanings of the labels at the top of the screen, by using the `v' (verbose) key. This action pushes much of the text that formerly fit onto the display off to the right. To see it, press the right arrow; to scroll back to the left, press the left arrow.
If you select a package for installation or removal, e.g.,
foo.deb
, and that package depends on (or recommends) another
package, e.g., blurf.deb
, then dselect
will place the
you in a sub-screen of the main selection screen. There you can choose among
the related packages, accepting the suggested actions (to install or not), or
rejecting them. To do the latter, press Shift-D; to return to the former,
press Shift-U. In any case, you can save your selections and return to the
main selection screen by pressing Shift-Q.
dselect
.
This program manipulates Debian archive(.deb) files. Some common uses are:
Note that any packages that were merely unpacked using dpkg-deb --extract will be incorrectly installed, you should use dpkg --install instead.
More information is given in the manual page dpkg-deb(1)
.
apt-get
provides a simple way to install packages from the command
line. Unlike dpkg
, apt-get
does not understand .deb
files, it works with the packages proper name and can only install .deb
archives from a source specified in /etc/apt/sources.list
.
For more information, install apt
package and read
apt-get(8)
, sources.list(5)
and install the
apt-doc
package and read
/usr/share/doc/apt-doc/guide.html/index.html
.
This program splits large package into smaller files (e.g., for writing onto a
set of floppy disks), and can also be used to merge a set of split files back
into a single file. It can only be used on a Debian system (i.e. a system
containing the dpkg
package), since it calls the program
dpkg-deb to parse the debian package file into its component
records.
For example, to split a big .deb file into N parts,
The kernel (file system) in Debian GNU/Linux systems supports replacing files even while they're being used.
We also provide a program called start-stop-daemon
which is used
to start daemons at boot time or to stop daemons when the kernel runlevel is
changed (e.g., from multi-user to single-user or to halt). The same program is
used by installation scripts when a new package containing a daemon is
installed, to stop running daemons, and restart them as necessary.
To learn the status of all the packages installed on a Debian system, execute the command
dpkg --list
This prints out a one-line summary for each package, giving a 2-letter status symbol (explained in the header), the package name, the version which is installed, and a brief description.
To learn the status of packages whose names match the string any pattern beginning with "foo" by executing the command:
dpkg --list 'foo*'
To get a more verbose report for a particular package, execute the command:
dpkg --status packagename
To identify the package that produced the file named foo execute either:
This searches for filename in installed packages. (This is (currently) equivalent to searching all of the files having the file extension of .list in the directory /var/lib/dpkg/info/, and adjusting the output to print the names of all the packages containing it, and diversions.)
This searches for files which contain the substring foo in their full path names. The files Contents-ARCH.gz (where ARCH represents the wanted architecture) reside in the major package directories (main, non-free, contrib) at a Debian FTP site (i.e. under /debian/dists/sarge). A Contents file refers only to the packages in the subdirectory tree where it resides. Therefore, a user might have to search more than one Contents files to find the package containing the file foo.
This method has the advantage over dpkg --search in that it will find files in packages that are not currently installed on your system.
The Debian GNU/Linux FAQ
version 3.1.2, 9 June 2005