dpkg.1 24 KB

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