home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Unix Power ToolsUnix Power ToolsSearch this book

40.5. Using Debian's dselect

The dselect tool provides an easy-to-use, character-based graphical frontend for accessing dpkg (the traditional Debian installation package utility). To launch dselect, issue the command:

dselect

Figure 40-1 shows the screen that appears. The screen presents a simple menu with six items:

Access
Lets you choose the method used to access package files.

Update
Lets you update the list of available packages.

Select
Lets you choose packages for installation or removal.

Install
Initiates installation of selected packages.

Config
Initiates configuration of installed packages.

Remove
Initiates removal of packages selection for removal.

Quit
Exits dselect.

The menu items are generally used in the order in which they are presented.

Figure 40-1

Figure 40-1. The dselect screen

40.5.1. Choosing the Access Method

To choose the access method, use the arrow keys to highlight the Access menu item and press Enter. The screen shown in Figure 40-2 appears.

Figure 40-2

Figure 40-2. Choosing the access method

The most flexible access method -- and the method that's generally recommended -- is apt. Other available options include:

cdrom
Lets you install packages from a CD-ROM. This access method has been deprecated; you should use multi_cd instead.

multi_cd
Lets you install packages from a multivolume set of CD-ROMs.

nfs
Lets you install packages residing on an NFS server. This access method has been deprecated; you should use multi_nfs instead.

multi_nfs
Lets you install packages residing on an NFS server that has access to a multivolume set of packages.

harddisk
Lets you install packages residing on a hard disk partition that is not currently mounted. This access method has been deprecated; you should use apt or multi_mount instead.

mounted
Lets you install packages residing on a currently mounted filesystem. This access method has been deprecated; you should use apt or multi_mount instead.

multi_mount
Lets you install packages from a multivolume set, one volume of which is currently mounted.

floppy
Lets you install packages from a set of floppy diskettes.

ftp
Lets you install packages residing on an FTP server.

To choose an access method, use the arrow keys to highlight the appropriate menu item and press Enter.

If you selected the apt access method, you'll be asked if you want to change the sources.list file. If you've previously configured the file, you should respond No. If you've not configured the file, you can respond Yes, which initiates a dialog that builds a simple configuration. Here's a sample dialog that shows the responses you should give to install packages :

I see you already have a source list.
-------------------------------------------------------
source list displayed here: contents vary
-------------------------------------------------------
Do you wish to change it?[y/N] y
         Set up a list of distribution source locations

 Please give the base URL of the debian distribution.
 The access schemes I know about are: http ftp file

 For example:
              file:/mnt/debian,
              ftp://ftp.debian.org/debian,
              http://ftp.de.debian.org/debian,

 URL [http://http.us.debian.org/debian]: file:/cdrom

 Please give the distribution tag to get or a path to the
 package file ending in a /. The distribution
 tags are typically something like: stable unstable frozen non-US

 Distribution [stable]: stable

 Please give the components to get
 The components are typically something like: main contrib non-free

 Components [main contrib non-free]: main contrib

 Would you like to add another source?[y/N] N

The sample dialog assumes that your CD-ROM has been mounted as /cdrom. If your CD-ROM is mounted differently, you'll need to revise the dialog.

After dselect records your choice of access method, the main menu screen re- appears.

40.5.3. Choosing Packages for Installation or Removal

Once you've updated the information on available packages, you're ready to select packages for installation or removal. To do so, use the arrow keys to highlight the Select menu item and press Enter. The screen shown in Figure 40-3 appears.

Figure 40-3

Figure 40-3. The introduction screen

This screen provides an overview of the package selection screens. When you've read its contents, press Space to go to the package selection screen, which is shown in Figure 40-4.

This screen provides an overview of the package selection screens. When you've read its contents, press Space to go to the package selection screen, whih is shown in Figure 40-4.

Figure 40-4

Figure 40-4. The package selection screen

To use the package selection screen, use the arrow keys to highlight a package in the upper part of the screen. The lower part of the screen will display information about the highlighted package. To select the package for installation, press +; to select an installed package for removal, press -.

You can search the package database by typing a slash (/) followed by the string for which you wish to search. To find successive instances of the same string, type a backslash (\). For example, to find the first package that contains the string gnome in its name or description, type /gnome and press Enter.

If you select for installation a package that requires one or more other packages that are not installed, a dependency conflict results. Similarly, a dependency conflict results if you mark for removal a package required by an installed package or if you mark for installation a package that conflicts with an installed package. When dselect detects a dependency conflict, it presents the screen shown in Figure 40-5.

Figure 40-5

Figure 40-5. The dependency help screen

The same screen appears if you select for installation a package that specifies recommended or suggested packages to be installed with it. A recommended package is one that most users install with the recommending package. A suggested package is one that is related to the suggesting package; suggested packages often extend or complement the functionality of the suggesting package.

When you press Space, you're presented with the conflict resolution screen, shown in Figure 40-6. This screen lets you quickly select for installation or removal the packages involved in a dependency conflict. The screen also presents default choices for recommended and suggested packages.

Figure 40-6

Figure 40-6. The dependency resolution screen

Using the arrow keys to highlight an entry lets you view a list of dependencies related to the entry. By pressing + or -, you can select packages for installation or removal, just as on the selection screen. When you're done working out dependencies, you can press Space to return to the selection screen.



Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.