dselect (1) - Linux Manuals
dselect: Debian package management frontend
NAME
dselect - Debian package management frontendSYNOPSIS
dselect [option...] [action]DESCRIPTION
dselect is one of the primary user interfaces for managing packages on a Debian system. At the dselect main menu, the system administrator can:dselect operates as a front-end to dpkg(1), the low-level debian package handling tool. It features a full-screen package selections manager with package depends and conflicts resolver. When run with administrator privileges, packages can be installed, upgraded and removed. Various access methods can be configured to retrieve available package version information and installable packages from package repositories. Depending on the used access method, these repositories can be public archive servers on the internet, local archive servers or cdroms. The recommended access method is apt, which is provided by the package apt.
Normally dselect is invoked without parameters. An interactive menu is presented, offering the user a list of actions. If an action is given as argument, then that action is started immediately. Several command line parameters are still available to modify the running behaviour of dselect or show additional information about the program.
OPTIONS
All options can be specified both on the command line and in the dselect configuration file /etc/dpkg/dselect.cfg or the files on the configuration directory /etc/dpkg/dselect.cfg.d/. Each line in the configuration file is either an option (exactly the same as the command line option but without leading hyphens) or a comment (if it starts with a #).- --admindir directory
- Changes the directory where the dpkg `status', `available' and similar files are located. This defaults to /var/lib/dpkg and normally there shouldn't be any need to change it.
- --debug file | -Dfile
- Turn on debugging. Debugging information is sent to file.
- --expert
- Turns on expert mode, i.e. doesn't display possibly annoying help messages.
- --colour|--color screenpart:[foreground],[background][:attr[+attr+...]]
-
Configures screen colors. This works only if your display supports colors.
This option may be used multiple times (and is best used in
dselect.cfg). Each use changes the color (and optionally, other
attributes) of one part of the screen.
The parts of the screen (from top to bottom) are:
-
- title
- The screen title.
- listhead
- The header line above the list of packages.
- list
- The scrolling list of packages (and also some help text).
- listsel
- The selected item in the list.
- pkgstate
- In the list of packages, the text indicating the current state of each package.
- pkgstatesel
- In the list of packages, the text indicating the current state of the currently selected package.
- infohead
- The header line that displays the state of the currently selected package.
- infodesc
- The package's short description.
- info
- Used to display package info such as the package's description.
- infofoot
- The last line of the screen when selecting packages.
- query
- Used to display query lines
- helpscreen
- Color of help screens.
-
- After the part of the screen comes a colon and the color specification. You can specify either the foreground color, the background color, or both, overriding the compiled-in colors. Use standard curses color names.
- Optionally, after the color specification is another colon, and an attribute specification. This is a list of one or more attributes, separated by plus ("+") characters. Available attributes include (not all of these will work on all terminals): normal, standout, underline, reverse, blink, bright, dim, bold
- --help
- Print a brief help text and exit successfully.
- --version
- Print version information and exit successfully.
ACTIONS
When dselect is started it can perform the following actions, either directly if it was specified on the command line or by prompting the user with a menu of available actions if running interactively:access
Choose and configure an access method to access package repositories.By default, dselect provides several methods such as cdrom, multi_cd, nfs, multi_nfs, harddisk, mounted, multi_mount, floppy or ftp, but other packages may provide additional methods, eg. the apt access method provided by the apt package.
The use of the apt access method is strongly recommended.
update
Refresh the available packages database.Retrieves a list of available package versions from the package repository, configured for the current access method, and update the dpkg database. The package lists are commonly provided by the repository as files named Packages or Packages.gz. These files can be generated by repository maintainers, using the program dpkg-scanpackages(1).
Details of the update action depend on the access method's implementation. Normally the process is straightforward and requires no user interaction.
select
View or manage package selections and dependencies.This is the main function of dselect. In the select screen, the user can review a list of all available and installed packages. When run with administrator privileges, it is also possible to interactively change packages selection state. dselect tracks the implications of these changes to other depending or conflicting packages.
When a conflict or failed depends is detected, a dependency resolution subscreen is prompted to the user. In this screen, a list of conflicting or depending packages is shown, and for each package listed, the reason for its listing is shown. The user may apply the suggestions proposed by dselect, override them, or back out all the changes, including the ones that created the unresolved depends or conflicts.
The use of the interactive package selections management screen is explained in more detail below.
install
Installs selected packages.The configured access method will fetch installable or upgradable packages from the relevant repositories and install these using dpkg. Depending on the implementation of the access method, all packages can be prefetched before installation, or fetched when needed. Some access methods may also remove packages that were marked for removal.
If an error occurred during install, it is usually advisable to run install again. In most cases, the problems will disappear or be solved. If problems persist or the installation performed was incorrect, please investigate into the causes and circumstances, and file a bug in the Debian bug tracking system. Instructions on how to do this can be found at https://bugs.debian.org/ or by reading the documentation for bug(1) or reportbug(1), if these are installed.
Details of the install action depend on the access method's implementation. The user's attention and input may be required during installation, configuration or removal of packages. This depends on the maintainer scripts in the package. Some packages make use of the debconf(1) library, allowing for more flexible or even automated installation setups.
config
Configures any previously installed, but not fully configured packages.remove
Removes or purges installed packages, that are marked for removal.quit
Quit dselectExits the program with zero (successful) errorcode.
PACKAGE SELECTIONS MANAGEMENT
Introduction
dselect directly exposes the administrator to some of the complexities involved with managing large sets of packages with many interdependencies. For a user who is unfamiliar with the concepts and the ways of the debian package management system, it can be quite overwhelming. Although dselect is aimed at easing package management and administration, it is only instrumental in doing so and can not be assumed to be a sufficient substitute for administrator skill and understanding. The user is required to be familiar with the concepts underlying the Debian packaging system. In case of doubt, consult the dpkg(1) manpage and the Debian Policy manual, contained in the debian-policy package.
Unless dselect is run in expert or immediate mode, a help screen is first displayed when choosing this action from the menu. The user is strongly advised to study all of the information presented in the online help screens, when one pops up. The online help screens can at any time be invoked with the '?' key.
Screen layout
The select screen is by default split in a top and a bottom half. The top half shows a list of packages. A cursor bar can select an individual package, or a group of packages, if applicable, by selecting the group header. The bottom half of the screen shows some details about the package currently selected in the top half of the screen. The type of detail that is displayed can be varied.
Pressing the 'I' key toggles a full-screen display of the packages list, an enlarged view of the package details, or the equally split screen.
Package details view
The package details view by default shows the extended package description
for the package that is currently selected in the packages status list.
The type of detail can be toggled by pressing the 'i' key. This
alternates between:
In a dependency resolution screen, there is also the possibility of
viewing the specific unresolved depends or conflicts related to the
package and causing it to be listed.
The main select screen displays a list of all packages known to the debian
package management system. This includes packages installed on the system
and packages known from the available packages database.
For every package, the list shows the package's status, priority, section,
installed and available architecture, installed and available versions,
the package name and its short description, all in one line.
By pressing the 'A' key, the display of the installed and available
architecture can be toggled between on an off.
By pressing the 'V' key, the display of the installed and available
version can be toggled between on an off.
By pressing the 'v' key, the package status display is toggled between
verbose and shorthand.
Shorthand display is the default.
The shorthand status indication consists
of four parts: an error flag, which should normally be clear, the
current status, the last selection state and the current selection state.
The first two relate to the actual state of the package, the second pair
are about the selections set by the user.
These are the meanings of the shorthand package status indicator codes:
The package selection list and the dependency conflict
resolution screens can be navigated using motion
commands mapped to the following keys:
Packages status list
Cursor and screen movement