dselect.1 19 KB

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