dpkg.8 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  1. .TH DPKG 8 "February 2000" "Debian Project" "dpkg suite"
  2. .SH NAME
  3. dpkg \- medium-level package manager for Debian
  4. ..
  5. .SH SYNOPSIS
  6. .B dpkg
  7. [\fIoptions\fP] \fIaction\fP
  8. ..
  9. .SH WARNING
  10. This manual is intended for users wishing to understand \fBdpkg\fP's
  11. command line options and package states in more detail than that
  12. provided by \fBdpkg --help\fP.
  13. .PP
  14. It should \fInot\fP be used by package maintainers wishing to
  15. understand how \fBdpkg\fP will install their packages. The
  16. descriptions of what \fBdpkg\fP does when installing and removing
  17. packages are particularly inadequate.
  18. .PP
  19. For information about this, please refer to sections regarding the
  20. Debian packaging system in the Debian FAQ or the Debian Reference.
  21. ..
  22. .SH DESCRIPTION
  23. \fBdpkg\fP is a medium-level tool to install, build, remove and manage
  24. Debian packages. \fBdpkg\fP is
  25. controlled entirely via command line parameters, which consist of exactly
  26. one action and zero or more options. The action-parameter tells dpkg
  27. what to do and options control the behavior of the action in some way.
  28. .PP
  29. \fBdpkg\fP can be also be used as a front-end to \fBdpkg-deb\fP.
  30. The following
  31. are \fBdpkg-deb\fP actions, and if they are encountered, \fBdpkg\fP
  32. just runs \fBdpkg-deb\fP with the parameters given to it:
  33. .nf
  34. \fB-b\fP, \fB--build\fP,
  35. \fB-c\fP, \fB--contents\fP,
  36. \fB-I\fP, \fB--info\fP,
  37. \fB-f\fP, \fB--field\fP,
  38. \fB-e\fP, \fB--control\fP,
  39. \fB-x\fP, \fB--extract\fP,
  40. \fB-X\fP, \fB--vextract\fP, and
  41. \fB--fsys-tarfile\fP.
  42. .fi
  43. Please refer to \fBdpkg-deb\fP(1) for information about these actions.
  44. .PP
  45. Note: the primary and more user-friendly front-end for \fBdpkg\fP is
  46. \fBdselect\fP(8). There are other front-ends such as those based on
  47. \fBapt\fP(8).
  48. ..
  49. .SH INFORMATION ABOUT PACKAGES
  50. \fBdpkg\fP maintains some usable information about available
  51. packages. The information is divided in three classes: \fBstates\fP,
  52. \fBselection states\fP and \fBflags\fP. These values are intended to
  53. be changed mainly with \fBdselect\fP.
  54. .SS PACKAGE STATES
  55. .TP
  56. .B installed
  57. The package is unpacked and configured OK.
  58. .TP
  59. .B half-installed
  60. The installation of the package has been started, but not completed for
  61. some reason.
  62. .TP
  63. .B not-installed
  64. The package is not installed on your system.
  65. .TP
  66. .B unpacked
  67. The package is unpacked, but not configured.
  68. .TP
  69. .B half-configured
  70. The package is unpacked and configuration has been started, but not yet
  71. completed for some reason.
  72. .TP
  73. .B config-files
  74. Only the configuration files of the package exist on the system.
  75. .SS PACKAGE SELECTION STATES
  76. .TP
  77. .B install
  78. The package is selected for installation.
  79. .TP
  80. .B deinstall
  81. The package is selected for deinstallation (i.e. we want to remove all
  82. files, except configuration files).
  83. .TP
  84. .B purge
  85. The package is selected to be purged (i.e. we want to remove everything,
  86. even configuration files).
  87. .SS PACKAGE FLAGS
  88. .TP
  89. .B hold
  90. A package marked to be on \fBhold\fP is not handled by \fBdpkg\fP,
  91. unless forced to do that with option \fB--force-hold\fP.
  92. .TP
  93. .B reinst-required
  94. A package marked \fBreinst-required\fP is broken and requires
  95. reinstallation. These packages cannot be removed, unless forced with
  96. option \fB--force-reinstreq\fP.
  97. ..
  98. .SH ACTIONS
  99. .TP
  100. \fBdpkg -i\fP | \fB--install\fP \fIpackage_file\fP...
  101. Install the package. If \fB--recursive\fP or \fB-R\fP option is
  102. specified, \fIpackage_file\fP must refer to a directory instead.
  103. .PP
  104. Installation consists of the following steps:
  105. .br
  106. \fB1.\fP Extract the control files of the new package.
  107. .br
  108. \fB2.\fP If another version of the same package was installed before
  109. the new installation, execute \fIprerm\fP script of the old package.
  110. .br
  111. \fB3.\fP Run \fIpreinst\fP script, if provided by the package.
  112. .br
  113. \fB4.\fP Unpack the new files, and at the same time back up the old
  114. files, so that if something goes wrong, they can be restored.
  115. .br
  116. \fB5.\fP If another version of the same package was installed before
  117. the new installation, execute the \fIpostrm\fP script of the old
  118. package. Note that this script is executed after the \fIpreinst\fP
  119. script of the new package, because new files are written at the same
  120. time old files are removed.
  121. .br
  122. \fB6.\fP Configure the package. See \fB--configure\fP for detailed
  123. information about how this is done.
  124. .TP
  125. \fBdpkg --unpack \fP\fIpackage_file\fP ...
  126. Unpack the package, but don't configure it. If \fB--recursive\fP or
  127. \fB-R\fP option is specified, \fIpackage_file\fP must refer to a
  128. directory instead.
  129. .TP
  130. \fBdpkg --configure \fP\fIpackage\fP ... | \fB-a\fP | \fB--pending\fP
  131. Reconfigure an unpacked package. If \fB-a\fP or \fB--pending\fP is
  132. given instead of \fIpackage\fP, all unpacked but unconfigured
  133. packages are configured.
  134. .PP
  135. Configuring consists of the following steps:
  136. .br
  137. \fB1.\fP Unpack the configuration files, and at the same time back up
  138. the old configuration files, so that they can be restored if
  139. something goes wrong.
  140. .br
  141. \fB2.\fP Run \fIpostinst\fP script, if provided by the package.
  142. .TP
  143. \fBdpkg -r\fP | \fB--remove\fP | \fB-P\fP | \fB--purge \fP\fIpackage\fP ... | \fB-a\fP | \fB--pending\fP
  144. Remove an installed package. \fB-r\fP or \fB--remove\fP remove
  145. everything except configuration files. This may avoid having to
  146. reconfigure the package if it is reinstalled later. (Configuration
  147. files are the files listed in the \fIdebian/conffiles\fP control
  148. file). \fB-P\fP or \fB--purge\fP removes everything, including configuration
  149. files. If \fB-a\fP or \fB--pending\fP is given instead of a package
  150. name, then all packages unpacked, but marked to be removed or purged
  151. in file \fI/var/lib/dpkg/status\fP, are removed or purged,
  152. respectively.
  153. .PP
  154. Removing of a package consists of the following steps:
  155. .br
  156. \fB1.\fP Run \fIprerm\fP script
  157. .br
  158. \fB2.\fP Remove the installed files
  159. .br
  160. \fB3.\fP Run \fIpostrm\fP script
  161. .br
  162. .TP
  163. .BI "dpkg -p|--print-avail " package
  164. Display details about \fIpackage\fP, as found in
  165. \fI/var/lib/dpkg/available\fP.
  166. .TP
  167. \fBdpkg --update-avail\fP | \fB--merge-avail\fP \fIPackages-file\fP
  168. Update \fBdpkg\fP's and \fBdselect\fP's idea of which packages are
  169. available. With action \fB--merge-avail\fP, old information is
  170. combined with information from \fIPackages-file\fP. With action
  171. \fB--update-avail\fP, old information is replaced with the information
  172. in the \fIPackages-file\fP. The \fIPackages-file\fP distributed with
  173. Debian is simply named \fIPackages\fP. \fBdpkg\fP keeps its
  174. record of available packages in \fI/var/lib/dpkg/available\fP.
  175. .TP
  176. \fBdpkg -A\fP | \fB--record-avail\fP \fIpackage_file\fP ...
  177. Update \fBdpkg\fP and \fBdselect\fP's idea of which packages are
  178. available with information from the package \fIpackage_file\fP. If
  179. \fB--recursive\fP or \fB-R\fP option is specified, \fIpackage_file\fP
  180. must refer to a directory instead.
  181. .TP
  182. .B dpkg --forget-old-unavail
  183. Forget about uninstalled unavailable packages.
  184. .TP
  185. .B dpkg --clear-avail
  186. Erase the existing information about what packages are available.
  187. .TP
  188. \fBdpkg -l\fP | \fB--list\fP \fIpackage-name-pattern\fP ...
  189. List packages matching given pattern. If no \fIpackage-name-pattern\fP
  190. is given, list all packages in \fI/var/lib/dpkg/available\fP. Normal
  191. shell wildchars are allowed in \fIpackage-name-pattern\fP. (You will
  192. probably have to quote \fIpackage-name-pattern\fP to prevent the shell
  193. from performing filename expansion. For example, \fBdpkg -l 'libc5*'\fP will list all the package names starting with "libc5".)
  194. .TP
  195. \fBdpkg -s\fP | \fB--status\fP \fIpackage-name\fP ...
  196. Report status of specified package. This just displays the entry in
  197. the installed package status database.
  198. .TP
  199. \fBdpkg -C\fP | \fB--audit\fP
  200. Searches for packages that have been installed only partially on your
  201. system. \fBdpkg\fP will suggest what to do with them to get them
  202. working.
  203. .TP
  204. \fBdpkg --get-selections\fP [\fIpattern\fP...]
  205. Get list of package selections, and write it to stdout.
  206. .TP
  207. .B dpkg --set-selections
  208. Set package selections using file read from stdin.
  209. .TP
  210. .B dpkg --yet-to-unpack
  211. Searches for packages selected for installation, but which for some
  212. reason still haven't been installed.
  213. .TP
  214. \fBdpkg -L\fP | \fB--listfiles\fP \fIpackage\fP ...
  215. List files installed to your system from \fBpackage\fP.
  216. However, note that files created by package-specific
  217. installation-scripts are not listed.
  218. .TP
  219. \fBdpkg -S\fP | \fB--search\fP \fIfilename-search-pattern\fP ...
  220. Search for a filename from installed packages. All standard shell
  221. wildchars can be used in the pattern.
  222. .TP
  223. .B dpkg --print-architecture
  224. Print target architecture (for example, "i386"). This option uses
  225. \fBgcc\fP.
  226. .TP
  227. .B dpkg --print-gnu-build-architecture
  228. Print GNU version of target architecture (for example, "i486").
  229. .TP
  230. .B dpkg --print-installation-architecture
  231. Print host architecture for installation.
  232. .TP
  233. .B dpkg --compare-versions \fIver1 op ver2\fP
  234. Compare version numbers, where \fIop\fP is a binary operator. \fBdpkg\fP
  235. returns success (zero result) if the specified condition is satisfied,
  236. and failure (nonzero result) otherwise. There are
  237. two groups of operators, which differ in how they treat a missing
  238. \fIver1\fP or \fIver2\fP. These treat no version as earlier than any
  239. version: \fBlt le eq ne ge gt\fP. These treat no version as later
  240. than any version: \fBlt-nl le-nl ge-nl gt-nl\fP. These are provided
  241. only for compatibility with control file syntax: \fB< << <= = >= >>
  242. >\fP.
  243. .TP
  244. .B dpkg --command-fd <n>
  245. Accept a series of commands on input file descriptor \fB<n>\fP. Note:
  246. additional options set on the command line, and thru this file descriptor,
  247. are not reset for subsequent commands executed during the same run.
  248. .TP
  249. .B dpkg --help
  250. Display the usage instructions.
  251. .TP
  252. .B dpkg --force-help
  253. Give help about the \fB--force-\fP\fIthing\fP options.
  254. .TP
  255. .BR "dpkg -Dh " | " --debug=help"
  256. Give help about debugging options.
  257. .TP
  258. \fBdpkg --licence\fP | \fBdpkg --license\fP
  259. Display \fBdpkg\fP copyright and licence information.
  260. .TP
  261. \fBdpkg --version\fP
  262. Display \fBdpkg\fP version information.
  263. .TP
  264. \fBdpkg-deb-actions\fP
  265. See \fBdpkg-deb\fP(1) for more information about the following actions.
  266. .PP
  267. .nf
  268. \fBdpkg -b\fP | \fB--build\fP \fIdirectory\fP [\fIfilename\fP]
  269. Build a deb package.
  270. \fBdpkg -c\fP | \fB--contents\fP \fIfilename\fP
  271. List contents of a deb package.
  272. \fBdpkg -e\fP | \fB--control\fP \fIfilename\fP [\fIdirectory\fP]
  273. Extract control-information from a package.
  274. \fBdpkg -x\fP | \fB--extract\fP \fIfilename directory\fP
  275. Extract the files contained by package.
  276. \fBdpkg -f\fP | \fB--field\fP \fIfilename\fP [\fIcontrol-field\fP] ...
  277. Display control field(s) of a package.
  278. \fBdpkg --fsys-tarfile\fP \fIfilename\fP
  279. Display the filesystem tar-file contained by a
  280. Debian package.
  281. \fBdpkg -I\fP | \fB--info\fP \fIfilename\fP [\fIcontrol-file\fP]
  282. Show information about a package.
  283. \fBdpkg -X\fP | \fB--vextract\fP \fIfilename\fP \fIdirectory\fP
  284. Extract and display the filenames contained by a
  285. package.
  286. .fi
  287. ..
  288. .SH OPTIONS
  289. All options can be specified both on the commandline and in the \fBdpkg\fP
  290. configuration file \fI/etc/dpkg/dpkg.cfg\fP. Each line in the configuration
  291. file is either an option (exactly the same as the commandline option but
  292. without leading dashes) or a comment (if it starts with a \fB#\fR).
  293. .br
  294. .TP
  295. \fB--abort-after=\fP\fInumber\fP
  296. Change after how many errors dpkg will abort. The default is 50.
  297. .TP
  298. .BR -B | --auto-deconfigure
  299. When a package is removed, there is a possibility that another
  300. installed package depended on the removed package. Specifying this
  301. option will cause automatic deconfiguration of the package which
  302. depended on the removed package.
  303. .TP
  304. \fB-D\fIoctal\fP | \fB--debug=\fP\fIoctal\fP
  305. Set debugging on. \fIoctal\fP is formed by bitwise-orring desired
  306. values together from the list below (note that these values may change
  307. in future releases). \fB-Dh\fP or \fB--debug=help\fP display these
  308. debugging values.
  309. number description
  310. 1 Generally helpful progress information
  311. 2 Invocation and status of maintainer scripts
  312. 10 Output for each file processed
  313. 100 Lots of output for each file processed
  314. 20 Output for each configuration file
  315. 200 Lots of output for each configuration file
  316. 40 Dependencies and conflicts
  317. 400 Lots of dependencies/conflicts output
  318. 1000 Lots of drivel about e.g. the dpkg/info dir
  319. 2000 Insane amounts of drivel
  320. .TP
  321. \fB--force-\fP\fIthings\fP | \fB--no-force-\fP\fIthings\fP | \fB--refuse-\fP\fIthings\fP
  322. Force or refuse (\fBno-force\fP and \fBrefuse\fP mean the same thing)
  323. to do some things. \fIthings\fP is a comma separated list of things
  324. specified below. \fB--force-help\fP displays a message describing them.
  325. Things marked with (*) are forced by default.
  326. .PP
  327. \fIWarning: These options are mostly intended to be used by experts
  328. only. Using them without fully understanding their effects may break
  329. your whole system.\fP
  330. .br
  331. \fBall\fP:
  332. Turns on(or off) all force options.
  333. .br
  334. \fBauto-select\fP(*):
  335. Select packages to install them, and deselect packages to remove them.
  336. .br
  337. \fBdowngrade\fP(*):
  338. Install a package, even if newer version of it is already installed.
  339. .br
  340. \fBconfigure-any\fP:
  341. Configure also any unpacked but unconfigured packages on which the current
  342. package depends.
  343. .br
  344. \fBhold\fP:
  345. Process packages even when marked "hold".
  346. .br
  347. \fBremove-reinstreq\fP:
  348. Remove a package, even if it's broken and marked to require
  349. reinstallation. This may, for example, cause parts of the package to
  350. remain on the system, which will then be forgotten by \fBdpkg\fP.
  351. .br
  352. \fBremove-essential\fP:
  353. Remove, even if the package is considered essential. Essential
  354. packages contain mostly very basic Unix commands. Removing them might
  355. cause the whole system to stop working, so use with caution.
  356. .br
  357. \fBdepends\fP:
  358. Turn all dependency problems into warnings.
  359. .br
  360. \fBdepends-version\fP:
  361. Don't care about versions when checking dependencies.
  362. .br
  363. \fBconflicts\fP:
  364. Install, even if it conflicts with another package. This is dangerous,
  365. for it will usually cause overwriting of some files.
  366. .br
  367. \fBconfmiss\fP:
  368. Always install a missing configuration file. This is dangerous,
  369. since it means not preserving a change (removing) made to the
  370. file.
  371. .br
  372. \fBconfnew\fP:
  373. If a conffile has been modified always install the new version without
  374. prompting, unless the \fB--force-confdef\fP is also specified, in
  375. which case the default action is preferred.
  376. .br
  377. \fBconfold\fP:
  378. If a conffile has been modified always keep the old version without
  379. prompting, unless the \fB--force-confdef\fP is also specified, in
  380. which case the default action is preferred.
  381. .br
  382. \fBconfdef\fP:
  383. If a conffile has been modified always choose the default action. If
  384. there is no default action it will stop to ask the user unless
  385. \fB--force-confnew\fP or \fB--force-confold\fP is also been given, in
  386. which case it will use that to decide the final action.
  387. .br
  388. \fBoverwrite\fP:
  389. Overwrite one package's file with another's file.
  390. .br
  391. \fBoverwrite-dir\fP:
  392. Overwrite one package's directory with another's file.
  393. .br
  394. \fBoverwrite-diverted\fP:
  395. Overwrite a diverted file with an undiverted version.
  396. .br
  397. \fBarchitecture\fP:
  398. Process even packages with the wrong architecture.
  399. .br
  400. \fBbad-path\fP:
  401. \fBPATH\fP is missing important programs, so problems are likely.
  402. .br
  403. \fBnot-root\fP:
  404. Try to (de)install things even when not root.
  405. .br
  406. .TP
  407. \fB--ignore-depends\fP=\fIpackage\fP,...
  408. Ignore dependency-checking for specified packages (actually, checking is
  409. performed, but only warnings about conflicts are given, nothing else).
  410. .TP
  411. \fB--new\fP | \fB--old\fP
  412. Select new or old binary package format. This is a \fBdpkg-deb\fP(1)
  413. option.
  414. .TP
  415. .B --nocheck
  416. Don't read or check contents of control file while building a package.
  417. This is a \fBdpkg-deb\fP(1) option.
  418. .TP
  419. .B --no-act
  420. Do everything which is supposed to be done, but don't write any
  421. changes. This is used to see what would happen with the specified
  422. action, without actually modifying anything.
  423. .PP
  424. Be sure to give \fB--no-act\fP before the action-parameter, or you might
  425. end up with undesirable results. (e.g. \fBdpkg --purge foo
  426. --no-act\fP will first purge package foo and then try to purge package
  427. --no-act, even though you probably expected it to actually do nothing!)
  428. .TP
  429. \fB-R\fP | \fB--recursive\fP
  430. Recursively handle all regular files matching pattern \fB*.deb\fP
  431. found at specified directories and all of its subdirectories. This can
  432. be used with \fB-i\fP, \fB-A\fP, \fB--install\fP, \fB--unpack\fP and
  433. \fB--avail\fP actions.
  434. .TP
  435. \fB-G\fP
  436. Don't install a package if a newer version of the same package is already
  437. installed. This is an alias of \fB--refuse-downgrade.\fP
  438. .TP
  439. \fB--root=\fP\fIdir\fP | \fB--admindir=\fP\fIdir\fP | \fB--instdir=\fP\fIdir\fP
  440. Change default directories. \fBadmindir\fP defaults to
  441. \fI/var/lib/dpkg\fP and contains many files that give information
  442. about status of installed or uninstalled packages, etc. \fBinstdir\fP
  443. defaults to \fI/\fP and refers to the directory where packages are to
  444. be installed. \fBinstdir\fP is also the directory passed to
  445. \fBchroot\fP(2) before running \fIpackage\fP's installation scripts, which
  446. means that the scripts see \fBinstdir\fP as a root directory.
  447. Changing \fBroot\fP changes \fBinstdir\fP to \fIdir\fP and
  448. \fBadmindir\fP to \fIdir\fP\fB/var/lib/dpkg\fP.
  449. .TP
  450. \fB-O\fP | \fB--selected-only\fP
  451. Only process the packages that are selected for installation. The
  452. actual marking is done with \fBdselect\fP or by \fBdpkg\fP, when it
  453. handles packages. For example, when a package is removed, it will
  454. be marked selected for installation.
  455. .TP
  456. .BR -E " | " --skip-same-version
  457. Don't install the package if the same version of the package is already
  458. installed.
  459. .TP
  460. \fB--status-fd \fP\fI<n>\fP
  461. Send package status info to file descriptor \fI<n>\fP. This can be given
  462. multiple times. Status updates are of the form `status: <pkg>: <pkg qstate>'.
  463. ..
  464. .SH FILES
  465. .TP
  466. .I /etc/dpkg/dpkg.cfg
  467. Configuration file with default options.
  468. .P
  469. The other files listed below are in their default directories, see option
  470. \fB--admindir\fP to see how to change locations of these files.
  471. .TP
  472. .I /var/lib/dpkg/available
  473. List of available packages.
  474. .TP
  475. .I /var/lib/dpkg/status
  476. Statuses of available packages. This file contains information about
  477. whether a package is marked for removing or not, whether it is
  478. installed or not, etc. See section \fBINFORMATION ABOUT PACKAGES\fP
  479. for more info.
  480. .P
  481. The following files are components of a binary package. See \fBdeb\fP(5)
  482. for more information about them:
  483. .TP
  484. .I control
  485. .TP
  486. .I conffiles
  487. .TP
  488. .I preinst
  489. .TP
  490. .I postinst
  491. .TP
  492. .I prerm
  493. .TP
  494. .I postrm
  495. ..
  496. .SH ENVIRONMENT VARIABLES
  497. .TP
  498. .B DPKG_NO_TSTP
  499. Define this to something if you prefer \fBdpkg\fP starting a new
  500. shell rather than suspending itself, while doing a shell escape.
  501. .TP
  502. .B SHELL
  503. The program \fBdpkg\fP will execute while starting a new shell.
  504. .TP
  505. .B COLUMNS
  506. Sets the number of columns \fBdpkg\fP should use when displaying formatted
  507. text. Currently only used by -l.
  508. .TP
  509. .B DPKG_OLD_CONFFILE
  510. Set by \fBdpkg\fP to the filename of the old configuration file
  511. when you start a shell to examine a changed configuration.
  512. file.
  513. .TP
  514. .B DPKG_NEW_CONFFILE
  515. Set by \fBdpkg\fP to the filename of the newversion of a configuration file
  516. when you start a shell to examine a changed configuration.
  517. file.
  518. ..
  519. .SH EXAMPLES
  520. To list packages containing the string `vi' in their name:
  521. .br
  522. \fB dpkg -l '*vi*'\fP
  523. .PP
  524. To see the entries in \fI/var/lib/dpkg/available\fP on several packages:
  525. .br
  526. \fB dpkg -p base-files login xfree86-common | pager\fP
  527. .PP
  528. To remove an installed package named "elvis":
  529. .br
  530. \fB dpkg -r elvis\fP
  531. .PP
  532. To install a package, you first need to find it in an archive or
  533. CDROM. The "available" file shows that the vim package is in section
  534. "editors":
  535. .br
  536. \fB cd /cdrom/hamm/hamm/binary/editors\fP
  537. \fB dpkg -i vim_4.5-3.deb\fP
  538. .br
  539. (Note: \fBapt-get\fP(8) is commonly used for this.)
  540. .PP
  541. To make a local copy of the package selection states:
  542. .br
  543. \fB dpkg --get-selections >myselections\fP
  544. .PP
  545. You might transfer this file to another computer, and install it there
  546. with:
  547. .br
  548. \fB dpkg --set-selections <myselections\fP
  549. .br
  550. Note that this will not actually install or remove anything, but just
  551. set the selection state on the requested packages. You will need some
  552. other application to actually download and install the requested
  553. packages.
  554. .PP
  555. Ordinarily, you will find that \fBdselect\fP(8) provides a more
  556. convenient way to modify the package selection states.
  557. ..
  558. .SH SEE ALSO
  559. .BR dpkg-deb (1),
  560. .BR deb (5),
  561. .BR deb-control (5),
  562. .BR dselect (8),
  563. .BR apt (8).
  564. ..
  565. .SH BUGS/RESTRICTIONS
  566. dpkg doesn't do any intelligent package ordering on installation.
  567. .br
  568. There is no automatic logging ability in dpkg.
  569. .br
  570. Depending package relations may sometimes get out of sync on upgrades
  571. (e.g. exact dependencies of a library -dev package on the library package).
  572. .PP
  573. The --no-act option usually gives less information than might be helpful.
  574. .br
  575. There is no --status information for virtual packages.
  576. ..
  577. .SH AUTHORS
  578. .nf
  579. \fBdpkg\fP was originally written by Ian Jackson, and later updated by
  580. many other people, full list of which you may find in the
  581. \fB/usr/share/doc/dpkg/THANKS\fP file.
  582. .fi