dselect.1 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. .TH dselect 1 "2009-08-20" "Debian Project" "Debian"
  2. .SH NAME
  3. dselect \- Debian package management frontend
  4. .
  5. .SH SYNOPSIS
  6. .B dselect
  7. .RB [ \-\-admindir
  8. .IR <directory> ]
  9. .RB [ \-\-help ]
  10. .RB [ \-\-version ]
  11. .RB [ \-\-licence | \-\-license ]
  12. .RB [ \-\-expert ]
  13. .RB [ \-\-debug | \-D\fI<file>\fP ]
  14. .RI [ <action> ]
  15. .RB [ \-\-colour | \-\-color
  16. .IR screenpart: [ foreground ],[ background ][ :attr [ +attr+.. ]]]
  17. .
  18. .SH DESCRIPTION
  19. .B dselect
  20. is one of the primary user interfaces for managing packages on a Debian
  21. system. At the \fBdselect\fP main menu, the system administrator can:
  22. - Update the list of available package versions,
  23. - View the status of installed and available packages,
  24. - Alter package selections and manage dependencies,
  25. - Install new packages or upgrade to newer versions.
  26. .PP
  27. .B dselect
  28. operates as a front-end to \fBdpkg\fP(1), the low-level debian package
  29. handling tool. It features a full-screen package selections manager
  30. with package depends and conflicts resolver. When run with administrator
  31. privileges, packages can be installed, upgraded and removed. Various
  32. access methods can be configured to retrieve available package version
  33. information and installable packages from package repositories.
  34. Depending on the used access method, these repositories can be public
  35. archive servers on the internet, local archive servers or cdroms.
  36. The recommended access method is \fIapt\fP, which is provided by the
  37. package \fBapt\fP.
  38. .PP
  39. Normally \fBdselect\fP is invoked without parameters. An interactive
  40. menu is presented, offering the user a list of actions. If an action
  41. is given as argument, then that action is started immediately. Several
  42. commandline parameters are still available to modify the running behaviour
  43. of \fBdselect\fP or show additional information about the program.
  44. .
  45. .SH OPTIONS
  46. All options can be specified both on the commandline and in the \fBdselect\fP
  47. configuration file \fI/etc/dpkg/dselect.cfg\fP or the files on the
  48. configuration directory \fI/etc/dpkg/dpkg.cfg.d/\fP. Each line in the
  49. configuration file is either an option (exactly the same as the
  50. commandline option but without leading dashes) or a comment (if it starts
  51. with a \fB#\fR).
  52. .br
  53. .TP
  54. .BI \-\-admindir " <directory>"
  55. Changes the directory where the dpkg `\fIstatus\fP', `\fIavailable\fP' and
  56. similar files are located. This defaults to \fI/var/lib/dpkg\fP
  57. and normally there shouldn't be any need to change it.
  58. .TP
  59. .BI \-\-debug " <file> \fR|\fP " \-D <file>
  60. Turn on debugging. Debugging information is sent to \fI<file>\fP.
  61. .TP
  62. .B \-\-expert
  63. Turns on expert mode, i.e. doesn't display possibly annoying help
  64. messages.
  65. .TP
  66. .BR \-\-colour | \-\-color " \fIscreenpart:\fP[\fIforeground\fP],[\fIbackground\fP][\fI:attr\fP[\fI+attr+..\fP]]"
  67. Configures screen colors. This works only if your display supports colors.
  68. This option may be used multiple times (and is best used in
  69. \fIdselect.cfg\fP). Each use changes the color (and optionally, other
  70. attributes) of one part of the screen.
  71. The parts of the screen (from top to bottom) are:
  72. .RS
  73. .TP
  74. .B title
  75. The screen title.
  76. .TP
  77. .B listhead
  78. The header line above the list of packages.
  79. .TP
  80. .B list
  81. The scrolling list of packages (and also some help text).
  82. .TP
  83. .B listsel
  84. The selected item in the list.
  85. .TP
  86. .B pkgstate
  87. In the list of packages, the text indicating the current state of each
  88. package.
  89. .TP
  90. .B pkgstatesel
  91. In the list of packages, the text indicating the current state of the
  92. currently selected package.
  93. .TP
  94. .B infohead
  95. The header line that displays the state of the currently selected package.
  96. .TP
  97. .B infodesc
  98. The package's short description.
  99. .TP
  100. .B info
  101. Used to display package info such as the package's description.
  102. .TP
  103. .B infofoot
  104. The last line of the screen when selecting packages.
  105. .TP
  106. .B query
  107. Used to display query lines
  108. .TP
  109. .B helpscreen
  110. Color of help screens.
  111. .RE
  112. .P
  113. After the part of the screen comes a colon and the color specification. You
  114. can specify either the foreground color, the background color, or both,
  115. overriding the compiled-in colors. Use standard curses color names.
  116. .P
  117. Optionally, after the color specification is another colon, and an
  118. attribute specification. This is a list of one or more attributes,
  119. separated by plus ("+") characters. Available attributes include (not all
  120. of these will work on all terminals): normal, standout, underline, reverse,
  121. blink, bright, dim, bold
  122. .TP
  123. .B \-\-help
  124. Print a brief help text and exit successfully.
  125. .TP
  126. .BR \-\-licence | \-\-license
  127. Displays the \fBdselect\fP copyright and license information and exits
  128. successfully.
  129. .TP
  130. .B \-\-version
  131. Print version information and exit successfully.
  132. .
  133. .SH USAGE
  134. When
  135. .B dselect
  136. is started interactively, it prompts the user with a menu of available
  137. actions:
  138. .SS access
  139. Choose and configure an access method to access package repositories.
  140. .sp
  141. By default, \fBdselect\fP provides several methods such
  142. as \fIfloppy\fP, \fIharddisk\fP or \fIcdrom\fP, but other packages
  143. may provide additional methods, eg. the \fIapt\fP access method provided
  144. by the \fBapt\fP package or \fImulti_cd\fP by the \fBdpkg\-multicd\fP
  145. package.
  146. .sp
  147. The use of the \fIapt\fP access method is strongly recommended.
  148. .sp
  149. .SS update
  150. Refresh the available packages database.
  151. .sp
  152. Retrieves a list of available package versions from the package
  153. repository, configured for the current access method, and update
  154. the dpkg database. The package lists are commonly provided by the
  155. repository as files named \fIPackages\fP or \fIPackages.gz\fP.
  156. These files can be generated by repository maintainers, using the
  157. program \fBdpkg\-scanpackages\fP(1).
  158. .sp
  159. Details of the update action depend on the access method's implementation.
  160. Normally the process is straightforward and requires no user interaction.
  161. .sp
  162. .SS select
  163. View or manage package selections and dependencies.
  164. .sp
  165. This is the main function of \fBdselect\fP. In the select screen, the
  166. user can review a list of all available and installed packages. When run
  167. with administrator privileges, it is also possible to interactively
  168. change packages selection state. \fBdselect\fP tracks the implications
  169. of these changes to other depending or conflicting packages.
  170. .sp
  171. When a conflict or failed depends is detected, a dependency resolution
  172. subscreen is prompted to the user. In this screen, a list of conflicting
  173. or depending packages is shown, and for each package listed, the reason
  174. for its listing is shown. The user may apply the suggestions proposed
  175. by \fBdselect\fP, override them, or back out all the changes, including
  176. the ones that created the unresolved depends or conflicts.
  177. .sp
  178. The use of the interactive package selections management screen is
  179. explained in more detail below.
  180. .sp
  181. .SS install
  182. Installs selected packages.
  183. .sp
  184. The configured access method will fetch installable or upgradable packages
  185. from the relevant repositories and install these using \fBdpkg\fP.
  186. Depending on the implementation of the access method, all packages can
  187. be prefetched before installation, or fetched when needed.
  188. Some access methods may also remove packages that were marked for removal.
  189. .sp
  190. If an error occurred during install, it is usually advisable to run
  191. install again. In most cases, the problems will disappear or be solved.
  192. If problems persist or the installation performed was incorrect, please
  193. investigate into the causes and circumstances, and file a bug in the
  194. Debian bug tracking system. Instructions on how to do this can be found
  195. at http://bugs.debian.org/ or by reading the documentation
  196. for \fBbug\fP(1) or \fBreportbug\fP(1), if these are installed.
  197. .sp
  198. Details of the install action depend on the access method's implementation.
  199. The user's attention and input may be required during installation,
  200. configuration or removal of packages. This depends on the maintainer
  201. scripts in the package. Some packages make use of the \fBdebconf\fP(1)
  202. library, allowing for more flexible or even automated installation
  203. setups.
  204. .sp
  205. .SS config
  206. Configures any previously installed, but not fully configured packages.
  207. .sp
  208. .SS remove
  209. Removes or purges installed packages, that are marked for removal.
  210. .sp
  211. .SS quit
  212. Quit \fBdselect\fP
  213. .sp
  214. Exits the program with zero (successful) errorcode.
  215. .sp
  216. .
  217. .SH Package selections management
  218. .sp
  219. .SS Introduction
  220. .sp
  221. .B dselect
  222. directly exposes
  223. the administrator to some of the complexities involved with managing
  224. large sets of packages with many interdependencies. For a user who is
  225. unfamiliar with the concepts and the ways of the debian package management
  226. system, it can be quite overwhelming. Although \fBdselect\fP is aimed
  227. at easing package management and administration, it is only instrumental
  228. in doing so and can not be assumed to be a sufficient substitute for
  229. administrator skill and understanding. The user is required to
  230. be familiar with the concepts underlying the Debian packaging system.
  231. In case of doubt, consult the \fBdpkg\fP(1) manpage and the Debian
  232. Policy manual, contained in the
  233. .B debian\-policy
  234. package.
  235. .sp
  236. Unless \fBdselect\fP is run in expert
  237. or immediate mode, a help screen is first displayed when choosing this
  238. action from the menu. The user is \fIstrongly\fP advised to study all of
  239. the information presented in the online help screens, when one pops up.
  240. The online help screens can at any time be invoked with the \fB'?'\fP key.
  241. .sp
  242. .SS Screen layout
  243. .sp
  244. The select screen is by default split in a top and a bottom half.
  245. The top half shows a list of packages. A cursor bar can select an
  246. individual package, or a group of packages, if applicable, by selecting
  247. the group header. The bottom half of the screen shows some details
  248. about the package currently selected in the top half of the screen.
  249. The type of detail that is displayed can be varied.
  250. .sp
  251. Pressing the \fB'I'\fP key toggles a full-screen display of the packages
  252. list, an enlarged view of the package details, or the equally split screen.
  253. .sp
  254. .SS Package details view
  255. .sp
  256. The package details view by default shows the extended package description
  257. for the package that is currently selected in the packages status list.
  258. The type of detail can be toggled by pressing the \fB'i'\fP key. This
  259. alternates between:
  260. - the extended description
  261. - the control information for the installed version
  262. - the control information for the available version
  263. .sp
  264. In a dependency resolution screen, there is also the possibility of
  265. viewing the specific unresolved depends or conflicts related to the
  266. package and causing it to be listed.
  267. .sp
  268. .SS Packages status list
  269. .sp
  270. The main select screen displays a list of all packages known to the debian
  271. package management system. This includes packages installed on the system
  272. and packages known from the available packages database.
  273. .sp
  274. For every package, the list shows the package's status, priority,
  275. section, installed and available versions, the package name and its
  276. short description, all in one line. By pressing the \fB'V'\fP key,
  277. the display of the installed and available version can be toggled between
  278. on an off. By pressing the \fB'v'\fP key,
  279. the package status display is toggled between verbose and shorthand.
  280. Shorthand display is the default.
  281. .sp
  282. The shorthand status indication consists
  283. of four parts: an error flag, which should normally be clear, the
  284. current status, the last selection state and the current selection state.
  285. The first two relate to the actual state of the package, the second pair
  286. are about the selections set by the user.
  287. .sp
  288. These are the meanings of the shorthand package status indicator codes:
  289. Error flag:
  290. \fIempty\fP no error
  291. \fBR\fP serious error, needs reinstallation;
  292. Installed state:
  293. \fIempty\fP not installed;
  294. \fB*\fP fully installed and configured;
  295. \fB\-\fP not installed but some config files may remain;
  296. \fBU\fP unpacked but not yet configured;
  297. \fBC\fP half-configured (an error happened);
  298. \fBI\fP half-installed (an error happened).
  299. Current and requested selections:
  300. \fB*\fP marked for installation or upgrade;
  301. \fB\-\fP marked for removal, configuration files remain;
  302. \fB=\fP on hold: package will not be processed at all;
  303. \fB_\fP marked for purge, also remove configuration;
  304. \fBn\fP package is new and has yet to be marked.
  305. .sp
  306. .SS Cursor and screen movement
  307. .sp
  308. The package selection list and the dependency conflict
  309. resolution screens can be navigated using motion
  310. commands mapped to the following keys:
  311. .br
  312. \fBp, Up, k\fP move cursor bar up
  313. \fBn, Down, j\fP move cursor bar down
  314. \fBP, Pgup, Backspace\fP scroll list 1 page up
  315. \fBN, Pgdn, Space\fP scroll list 1 page down
  316. \fB^p\fP scroll list 1 line up
  317. \fB^n\fP scroll list 1 line down
  318. \fBt, Home\fP jump to top of list
  319. \fBe, End\fP jump to end of list
  320. \fBu\fP scroll info 1 page up
  321. \fBd\fP scroll info 1 page down
  322. \fB^u\fP scroll info 1 line up
  323. \fB^d\fP scroll info 1 line down
  324. \fBB, Left-arrow\fP pan display 1/3 screen left
  325. \fBF, Right-arrow\fP pan display 1/3 screen right
  326. \fB^b\fP pan display 1 character left
  327. \fB^f\fP pan display 1 character right
  328. .sp
  329. .SS Searching and sorting
  330. .sp
  331. The list of packages can be searched by package name. This
  332. is done by pressing \fB'/'\fP, and typing a simple search
  333. string. The string is interpreted as a
  334. .BR regex (7)
  335. regular expression.
  336. If you add \fB'/d'\fP to the search expression, dselect will also search
  337. in descriptions. If you add \fB'/i'\fP the search will be case insensitive.
  338. You may combine these two suffixes like this: \fB'/id'\fP.
  339. Repeated searching is accomplished by repeatedly pressing
  340. the \fB'n'\fP or \fB'\\'\fP keys, until the wanted package is found.
  341. If the search reaches the bottom of the list, it wraps to the top
  342. and continues searching from there.
  343. .sp
  344. The list sort order can be varied by pressing
  345. the \fB'o'\fP and \fB'O'\fP keys repeatedly.
  346. The following nine sort orderings can be selected:
  347. alphabet available status
  348. priority+section available+priority status+priority
  349. section+priority available+section status+section
  350. .br
  351. Where not listed above explicitly, alphabetic order is used as
  352. the final subordering sort key.
  353. .sp
  354. .SS Altering selections
  355. .sp
  356. The requested selection state of individual packages may be
  357. altered with the following commands:
  358. \fB+, Insert\fP install or upgrade
  359. \fB=, H\fP hold in present state and version
  360. \fB:, G\fP unhold: upgrade or leave uninstalled
  361. \fB\-, Delete\fP remove, but leave configuration
  362. \fB_\fP remove & purge configuration
  363. .sp
  364. When the change request results in one or more unsatisfied depends
  365. or conflicts, \fBdselect\fP prompts the user with a dependency resolution
  366. screen. This will be further explained below.
  367. .sp
  368. It is also possible to apply these commands to groups of package
  369. selections, by pointing the cursor bar onto a group header. The
  370. exact grouping of packages is dependent on the current list ordering
  371. settings.
  372. .sp
  373. Proper care should be taken when altering large groups of selections,
  374. because this can instantaneously create large numbers of unresolved
  375. depends or conflicts, all of which will be listed in one dependency
  376. resolution screen, making them very hard to handle. In practice,
  377. only hold and unhold operations are useful when applied to groups.
  378. .sp
  379. .SS Resolving depends and conflicts
  380. .sp
  381. When the change request results in one or more unsatisfied depends
  382. or conflicts, \fBdselect\fP prompts the user with a dependency resolution
  383. screen. First however, an informative help screen is displayed.
  384. .sp
  385. The top half of this screen lists all the packages that will have
  386. unresolved depends or conflicts, as a result of the requested change,
  387. and all the packages whose installation can resolve any of these
  388. depends or whose removal can resolve any of the conflicts.
  389. The bottom half defaults to show the depends or conflicts that
  390. cause the currently selected package to be listed.
  391. .sp
  392. When the sublist of packages is displayed initially, \fBdselect\fP
  393. may have already set the requested selection status of some of the
  394. listed packages, in order to resolve the depends or conflicts that
  395. caused the dependency resolution screen to be displayed. Usually,
  396. it is best to follow up the suggestions made by \fBdselect\fP.
  397. .sp
  398. The listed packages' selection state may be reverted to the original
  399. settings, as they were before the unresolved depends or conflicts
  400. were created, by pressing the \fB'R'\fP key. By pressing the \fB'D'\fP
  401. key, the automatic suggestions are reset, but the change that caused
  402. the dependency resolution screen to be prompted is kept as requested.
  403. Finally, by pressing \fB'U'\fP, the selections are again set to the
  404. automatic suggestion values.
  405. .sp
  406. .SS Establishing the requested selections
  407. .sp
  408. By pressing \fBenter\fP, the currently displayed set of selections
  409. is accepted. If \fBdselect\fP detects no unresolved depends as a result
  410. of the requested selections, the new selections will be set.
  411. However, if there are any unresolved depends, \fBdselect\fP will again
  412. prompt the user with a dependency resolution screen.
  413. .sp
  414. To alter a set of selections that creates unresolved depends or
  415. conflicts and forcing \fBdselect\fP to accept it, press the \fB'Q'\fP
  416. key. This sets the selections as specified by the user,
  417. unconditionally. Generally, don't do this unless you've read
  418. the fine print.
  419. .sp
  420. The opposite effect, to back out any selections change requests and
  421. go back to the previous list of selections, is attained by pressing
  422. the \fB'X'\fP or \fBescape\fP keys. By repeatedly pressing these
  423. keys, any possibly detrimental changes to the requested package
  424. selections can be backed out completely to the last established
  425. settings.
  426. .sp
  427. If you mistakenly establish some settings and wish to revert all the
  428. selections to what is currently installed on the system, press the
  429. \fB'C'\fP key.
  430. This is somewhat similar to using the unhold command on all packages,
  431. but provides a more obvious panic button in cases where the user
  432. pressed \fBenter\fP by accident.
  433. .sp
  434. .
  435. .SH BUGS
  436. The
  437. .B dselect
  438. package selection interface is confusing to some new users.
  439. Reportedly, it even makes seasoned kernel developers cry.
  440. .sp
  441. The documentation is lacking.
  442. .sp
  443. There is no help option in the main menu.
  444. .sp
  445. The visible list of available packages cannot be reduced.
  446. .sp
  447. The built in access methods can no longer stand up to current quality
  448. standards. Use the access method provided by apt, it is not only not
  449. broken, it is also much more flexible than the built in access methods.
  450. .
  451. .SH SEE ALSO
  452. .BR dpkg (1),
  453. .BR apt\-get (8),
  454. .BR sources.list (5),
  455. .BR deb (5).
  456. .
  457. .SH AUTHORS
  458. .B dselect
  459. was written by Ian Jackson (ijackson@gnu.ai.mit.edu). Full list of
  460. contributors may be found in `dselect \-\-license'.
  461. .br
  462. This manual page was written by Juho Vuori <javuori@cc.helsinki.fi>,
  463. Josip Rodin and Joost kooij.