dselect.1 19 KB

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