
596
|
Chapter 5: Package Management
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
The possible package selection states are:
deinstall
The package has been selected for deinstallation (i.e., for removal of every-
thing but the configuration files).
install
The package has been selected for installation.
purge
The package has been selected to be purged (i.e., for removal of everything
including the configuration files).
Package Flags
Two possible package flags can be set for a package:
hold
The package should not be handled by dpkg unless forced with the --force-
hold option. Holding a package keeps it at the current version, preventing it
from being updated. You might hold a package, for example, if the latest
version is broken and you want to stay with the version you have until a
newer one is released.
reinst-required
The package is broken and needs to be reinstalled. Such a package cannot be
removed unless forced with the --force-reinstreq option.
Scripts
In addition to the commands described in the next section, a number of shell and
Perl scripts are included with the package manager for use in managing and
building packages:
apt-file
Search for packages, specifying an action and a pattern to search for. (Perl
script)
apt-rdepends
Recursively list dependencies. (Perl script)
apt-setup
An interactive script for adding download sources to the ...