dpkg.1 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056
  1. .\" dpkg manual page - dpkg(1)
  2. .\"
  3. .\" Copyright © 1996 Juho Vuori <javuori@cc.helsinki.fi>
  4. .\" Copyright © 1999 Jim Van Zandt <jrv@vanzandt.mv.com>
  5. .\" Copyright © 1999-2003 Wichert Akkerman <wakkerma@debian.org>
  6. .\" Copyright © 2000-2003 Adam Heath <doogie@debian.org>
  7. .\" Copyright © 2002 Josip Rodin
  8. .\" Copyright © 2004-2005 Scott James Remnant <keybuk@debian.org>
  9. .\" Copyright © 2006-2015 Guillem Jover <guillem@debian.org>
  10. .\" Copyright © 2007-2008 Ian Jackson <ijackson@chiark.greenend.org.uk>
  11. .\" Copyright © 2008-2011 Raphaël Hertzog <hertzog@debian.org>
  12. .\"
  13. .\" This is free software; you can redistribute it and/or modify
  14. .\" it under the terms of the GNU General Public License as published by
  15. .\" the Free Software Foundation; either version 2 of the License, or
  16. .\" (at your option) any later version.
  17. .\"
  18. .\" This is distributed in the hope that it will be useful,
  19. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. .\" GNU General Public License for more details.
  22. .\"
  23. .\" You should have received a copy of the GNU General Public License
  24. .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
  25. .
  26. .TH dpkg 1 "2014-08-16" "Debian Project" "dpkg suite"
  27. .SH NAME
  28. dpkg \- package manager for Debian
  29. .
  30. .SH SYNOPSIS
  31. .B dpkg
  32. .RI [ option "...] " action
  33. .
  34. .SH WARNING
  35. This manual is intended for users wishing to understand \fBdpkg\fP's
  36. command line options and package states in more detail than that
  37. provided by \fBdpkg \-\-help\fP.
  38. It should \fInot\fP be used by package maintainers wishing to
  39. understand how \fBdpkg\fP will install their packages. The
  40. descriptions of what \fBdpkg\fP does when installing and removing
  41. packages are particularly inadequate.
  42. .
  43. .SH DESCRIPTION
  44. \fBdpkg\fP is a tool to install, build, remove and manage
  45. Debian packages. The primary and more user-friendly
  46. front-end for \fBdpkg\fP is \fBaptitude\fP(1). \fBdpkg\fP itself is
  47. controlled entirely via command line parameters, which consist of exactly
  48. one action and zero or more options. The action-parameter tells \fBdpkg\fP
  49. what to do and options control the behavior of the action in some way.
  50. \fBdpkg\fP can also be used as a front-end to \fBdpkg\-deb\fP(1) and
  51. \fBdpkg\-query\fP(1). The list of supported actions can be found later on
  52. in the \fBACTIONS\fP section. If any such action is encountered \fBdpkg\fP
  53. just runs \fBdpkg\-deb\fP or \fBdpkg\-query\fP with the parameters given
  54. to it, but no specific options are currently passed to them, to use
  55. any such option the back-ends need to be called directly.
  56. .
  57. .SH INFORMATION ABOUT PACKAGES
  58. \fBdpkg\fP maintains some usable information about available
  59. packages. The information is divided in three classes: \fBstates\fP,
  60. \fBselection states\fP and \fBflags\fP. These values are intended to
  61. be changed mainly with \fBdselect\fP.
  62. .SS Package states
  63. .TP
  64. .B not\-installed
  65. The package is not installed on your system.
  66. .TP
  67. .B config\-files
  68. Only the configuration files of the package exist on the system.
  69. .TP
  70. .B half\-installed
  71. The installation of the package has been started, but not completed for
  72. some reason.
  73. .TP
  74. .B unpacked
  75. The package is unpacked, but not configured.
  76. .TP
  77. .B half\-configured
  78. The package is unpacked and configuration has been started, but not yet
  79. completed for some reason.
  80. .TP
  81. .B triggers\-awaited
  82. The package awaits trigger processing by another package.
  83. .TP
  84. .B triggers\-pending
  85. The package has been triggered.
  86. .TP
  87. .B installed
  88. The package is correctly unpacked and configured.
  89. .SS Package selection states
  90. .TP
  91. .B install
  92. The package is selected for installation.
  93. .TP
  94. .B hold
  95. A package marked to be on \fBhold\fP is not handled by \fBdpkg\fP,
  96. unless forced to do that with option \fB\-\-force\-hold\fP.
  97. .TP
  98. .B deinstall
  99. The package is selected for deinstallation (i.e. we want to remove all
  100. files, except configuration files).
  101. .TP
  102. .B purge
  103. The package is selected to be purged (i.e. we want to remove everything
  104. from system directories, even configuration files).
  105. .SS Package flags
  106. .TP
  107. .B ok
  108. A package marked \fBok\fP is in a known state, but might need further
  109. processing.
  110. .TP
  111. .B reinstreq
  112. A package marked \fBreinstreq\fP is broken and requires
  113. reinstallation. These packages cannot be removed, unless forced with
  114. option \fB\-\-force\-remove\-reinstreq\fP.
  115. .
  116. .SH ACTIONS
  117. .TP
  118. \fB\-i\fP, \fB\-\-install\fP \fIpackage-file\fP...
  119. Install the package. If \fB\-\-recursive\fP or \fB\-R\fP option is
  120. specified, \fIpackage-file\fP must refer to a directory instead.
  121. Installation consists of the following steps:
  122. .br
  123. \fB1.\fP Extract the control files of the new package.
  124. .br
  125. \fB2.\fP If another version of the same package was installed before
  126. the new installation, execute \fIprerm\fP script of the old package.
  127. .br
  128. \fB3.\fP Run \fIpreinst\fP script, if provided by the package.
  129. .br
  130. \fB4.\fP Unpack the new files, and at the same time back up the old
  131. files, so that if something goes wrong, they can be restored.
  132. .br
  133. \fB5.\fP If another version of the same package was installed before
  134. the new installation, execute the \fIpostrm\fP script of the old
  135. package. Note that this script is executed after the \fIpreinst\fP
  136. script of the new package, because new files are written at the same
  137. time old files are removed.
  138. .br
  139. \fB6.\fP Configure the package. See \fB\-\-configure\fP for detailed
  140. information about how this is done.
  141. .TP
  142. \fB\-\-unpack \fP\fIpackage-file\fP...
  143. Unpack the package, but don't configure it. If \fB\-\-recursive\fP or
  144. \fB\-R\fP option is specified, \fIpackage-file\fP must refer to a
  145. directory instead.
  146. .TP
  147. \fB\-\-configure \fP\fIpackage\fP...|\fB\-a\fP|\fB\-\-pending\fP
  148. Configure a package which has been unpacked but not yet configured.
  149. If \fB\-a\fP or \fB\-\-pending\fP is given instead of \fIpackage\fP,
  150. all unpacked but unconfigured packages are configured.
  151. To reconfigure a package which has already been configured, try the
  152. .BR dpkg\-reconfigure (8)
  153. command instead.
  154. Configuring consists of the following steps:
  155. .br
  156. \fB1.\fP Unpack the conffiles, and at the same time back up
  157. the old conffiles, so that they can be restored if
  158. something goes wrong.
  159. .br
  160. \fB2.\fP Run \fIpostinst\fP script, if provided by the package.
  161. .TP
  162. \fB\-\-triggers\-only\fP \fIpackage\fP...|\fB\-a\fP|\fB\-\-pending\fP
  163. Processes only triggers (since dpkg 1.14.17).
  164. All pending triggers will be processed.
  165. If package
  166. names are supplied only those packages' triggers will be processed, exactly
  167. once each where necessary. Use of this option may leave packages in the
  168. improper \fBtriggers\-awaited\fP and \fBtriggers\-pending\fP states. This
  169. can be fixed later by running: \fBdpkg \-\-configure \-\-pending\fP.
  170. .TP
  171. \fB\-r\fP, \fB\-\-remove\fP \fIpackage\fP...|\fB\-a\fP|\fB\-\-pending\fP
  172. Remove an installed package. This removes everything except conffiles,
  173. which may avoid having to reconfigure the package if it is reinstalled
  174. later (conffiles are configuration files that are listed in the
  175. \fIDEBIAN/conffiles\fP control file).
  176. If \fB\-a\fP or \fB\-\-pending\fP is given instead of a package name,
  177. then all packages unpacked, but marked to be removed in file
  178. \fI/var/lib/dpkg/status\fP, are removed.
  179. Removing of a package consists of the following steps:
  180. .br
  181. \fB1.\fP Run \fIprerm\fP script
  182. .br
  183. \fB2.\fP Remove the installed files
  184. .br
  185. \fB3.\fP Run \fIpostrm\fP script
  186. .br
  187. .TP
  188. \fB\-P\fP, \fB\-\-purge\fP \fIpackage\fP...|\fB\-a\fP|\fB\-\-pending\fP
  189. Purge an installed or already removed package. This removes everything,
  190. including conffiles.
  191. If \fB\-a\fP or \fB\-\-pending\fP is given instead of a package name,
  192. then all packages unpacked or removed, but marked to be purged in file
  193. \fI/var/lib/dpkg/status\fP, are purged.
  194. Note: some configuration files might be unknown to \fBdpkg\fP because they
  195. are created and handled separately through the configuration scripts. In
  196. that case, \fBdpkg\fP won't remove them by itself, but the package's
  197. \fIpostrm\fP script (which is called by \fBdpkg\fP), has to take care of
  198. their removal during purge. Of course, this only applies to files in
  199. system directories, not configuration files written to individual users'
  200. home directories.
  201. Purging of a package consists of the following steps:
  202. .br
  203. \fB1.\fP Remove the package, if not already removed. See \fB\-\-remove\fP
  204. for detailed information about how this is done.
  205. .br
  206. \fB2.\fP Run \fIpostrm\fP script.
  207. .br
  208. .TP
  209. .BR \-V ", " \-\-verify " [\fIpackage-name\fP...]
  210. Verifies the integrity of \fIpackage-name\fP or all packages if omitted,
  211. by comparing information from the files installed by a package with the
  212. files metadata information stored in the \fBdpkg\fP database
  213. (since dpkg 1.17.2).
  214. The origin
  215. of the files metadata information in the database is the binary packages
  216. themselves. That metadata gets collected at package unpack time during
  217. the installation process.
  218. Currently the only functional check performed is an md5sum verification
  219. of the file contents against the stored value in the files database.
  220. It will only get checked
  221. if the database contains the file md5sum. To check for any missing
  222. metadata in the database, the \fB\-\-audit\fP command can be used.
  223. The output format is selectable with the \fB\-\-verify\-format\fP
  224. option, which by default uses the \fBrpm\fP format, but that might
  225. change in the future, and as such, programs parsing this command
  226. output should be explicit about the format they expect.
  227. .TP
  228. .BR \-C ", " \-\-audit " [\fIpackage-name\fP...]
  229. Performs database sanity and consistency checks for \fIpackage-name\fP
  230. or all packages if omitted (per package checks since dpkg 1.17.10).
  231. For example, searches for packages that have been installed only partially
  232. on your system or that have missing, wrong or obsolete control data or
  233. files. \fBdpkg\fP will suggest what to do with them to get them fixed.
  234. .TP
  235. .BR \-\-update\-avail " [\fIPackages-file\fP]"
  236. .TQ
  237. .BR \-\-merge\-avail " [\fIPackages-file\fP]"
  238. Update \fBdpkg\fP's and \fBdselect\fP's idea of which packages are
  239. available. With action \fB\-\-merge\-avail\fP, old information is
  240. combined with information from \fIPackages-file\fP. With action
  241. \fB\-\-update\-avail\fP, old information is replaced with the information
  242. in the \fIPackages-file\fP. The \fIPackages-file\fP distributed with
  243. Debian is simply named \(Fo\fIPackages\fP\(Fc. If the \fIPackages-file\fP
  244. argument is missing or named \(Fo\fB\-\fP\(Fc then it will be read from
  245. standard input (since dpkg 1.17.7). \fBdpkg\fP keeps its record of
  246. available packages in \fI/var/lib/dpkg/available\fP.
  247. A simpler one-shot command to retrieve and update the \fIavailable\fR
  248. file is \fBdselect update\fR. Note that this file is mostly useless
  249. if you don't use \fBdselect\fR but an APT-based frontend: APT has its
  250. own system to keep track of available packages.
  251. .TP
  252. \fB\-A\fP, \fB\-\-record\-avail\fP \fIpackage-file\fP...
  253. Update \fBdpkg\fP and \fBdselect\fP's idea of which packages are
  254. available with information from the package \fIpackage-file\fP. If
  255. \fB\-\-recursive\fP or \fB\-R\fP option is specified, \fIpackage-file\fP
  256. must refer to a directory instead.
  257. .TP
  258. .B \-\-forget\-old\-unavail
  259. Now \fBobsolete\fP and a no-op as \fBdpkg\fP will automatically forget
  260. uninstalled unavailable packages (since dpkg 1.15.4), but only those that
  261. do not contain user information such as package selections.
  262. .TP
  263. .B \-\-clear\-avail
  264. Erase the existing information about what packages are available.
  265. .TP
  266. \fB\-\-get\-selections\fP [\fIpackage-name-pattern\fP...]
  267. Get list of package selections, and write it to stdout. Without a pattern,
  268. non-installed packages (i.e. those which have been previously purged) will
  269. not be shown.
  270. .TP
  271. .B \-\-set\-selections
  272. Set package selections using file read from stdin. This file should be
  273. in the format \(lq\fIpackage\fP \fIstate\fP\(rq, where state is one of
  274. \fBinstall\fP, \fBhold\fP, \fBdeinstall\fP or \fBpurge\fP. Blank lines
  275. and comment lines beginning with \(oq\fB#\fP\(cq are also permitted.
  276. The \fIavailable\fP file needs to be up-to-date for this command to be
  277. useful, otherwise unknown packages will be ignored with a warning. See
  278. the \fB\-\-update\-avail\fP and \fB\-\-merge\-avail\fP commands for more
  279. information.
  280. .TP
  281. .B \-\-clear\-selections
  282. Set the requested state of every non-essential package to deinstall
  283. (since dpkg 1.13.18).
  284. This is intended to be used immediately before \fB\-\-set\-selections\fP,
  285. to deinstall any packages not in list given to \fB\-\-set\-selections\fP.
  286. .TP
  287. .B \-\-yet\-to\-unpack
  288. Searches for packages selected for installation, but which for some
  289. reason still haven't been installed.
  290. .TP
  291. .B \-\-predep\-package
  292. Print a single package which is the target of one or more relevant
  293. pre-dependencies and has itself no unsatisfied pre-dependencies.
  294. .IP
  295. If such a package is present, output it as a Packages file entry,
  296. which can be massaged as appropriate.
  297. .IP
  298. Returns 0 when a package is printed, 1 when no suitable package is
  299. available and 2 on error.
  300. .TP
  301. .B \-\-add\-architecture \fIarchitecture\fP
  302. Add \fIarchitecture\fP to the list of architectures for which packages can
  303. be installed without using \fB\-\-force\-architecture\fP (since dpkg 1.16.2).
  304. The architecture
  305. \fBdpkg\fP is built for (i.e. the output of \fB\-\-print\-architecture\fP)
  306. is always part of that list.
  307. .TP
  308. .B \-\-remove\-architecture \fIarchitecture\fP
  309. Remove \fIarchitecture\fP from the list of architectures for which packages
  310. can be installed without using \fB\-\-force\-architecture\fP
  311. (since dpkg 1.16.2). If the
  312. architecture is currently in use in the database then the operation will
  313. be refused, except if \fB\-\-force\-architecture\fP is specified. The
  314. architecture \fBdpkg\fP is built for (i.e. the output of
  315. \fB\-\-print\-architecture\fP) can never be removed from that list.
  316. .TP
  317. .B \-\-print\-architecture
  318. Print architecture of packages \fBdpkg\fP installs (for example, \(lqi386\(rq).
  319. .TP
  320. .B \-\-print\-foreign\-architectures
  321. Print a newline-separated list of the extra architectures \fBdpkg\fP is
  322. configured to allow packages to be installed for (since dpkg 1.16.2).
  323. .TP
  324. .BI \-\-assert\- feature
  325. Asserts that \fBdpkg\fP supports the requested feature.
  326. Returns 0 if the feature is fully supported, 1 if the feature is known but
  327. \fBdpkg\fP cannot provide support for it yet, and 2 if the feature is unknown.
  328. The current list of assertable features is:
  329. .RS
  330. .TP
  331. .B support\-predepends
  332. Supports the \fBPre\-Depends\fP field (since dpkg 1.1.0).
  333. .TP
  334. .B working\-epoch
  335. Supports epochs in version strings (since dpkg 1.4.0.7).
  336. .TP
  337. .B long\-filenames
  338. Supports long filenames in \fBdeb\fP(5) archives (since dpkg 1.4.1.17).
  339. .TP
  340. .B multi\-conrep
  341. Supports multiple \fBConflicts\fP and \fBReplaces\fP (since dpkg 1.4.1.19).
  342. .TP
  343. .B multi\-arch
  344. Supports multi-arch fields and semantics (since dpkg 1.16.2).
  345. .TP
  346. .B versioned\-provides
  347. Supports versioned \fBProvides\fP (since dpkg 1.17.11).
  348. .RE
  349. .TP
  350. .B \-\-compare\-versions \fIver1 op ver2\fP
  351. Compare version numbers, where \fIop\fP is a binary operator. \fBdpkg\fP
  352. returns true (\fB0\fP) if the specified condition is satisfied,
  353. and false (\fB1\fP) otherwise. There are
  354. two groups of operators, which differ in how they treat an empty
  355. \fIver1\fP or \fIver2\fP. These treat an empty version as earlier than any
  356. version: \fBlt le eq ne ge gt\fP. These treat an empty version as later
  357. than any version: \fBlt\-nl le\-nl ge\-nl gt\-nl\fP. These are provided
  358. only for compatibility with control file syntax: \fB< << <= = >= >>
  359. >\fP. The \fB<\fP and \fB>\fP operators are obsolete and should \fBnot\fP
  360. be used, due to confusing semantics. To illustrate: \fB0.1 < 0.1\fP
  361. evaluates to true.
  362. .\" .TP
  363. .\" .B \-\-command\-fd \fIn\fP
  364. .\" Accept a series of commands on input file descriptor \fIn\fP. Note:
  365. .\" additional options set on the command line, and through this file descriptor,
  366. .\" are not reset for subsequent commands executed during the same run.
  367. .TP
  368. .BR \-? ", " \-\-help
  369. Display a brief help message.
  370. .TP
  371. .B \-\-force\-help
  372. Give help about the \fB\-\-force\-\fP\fIthing\fP options.
  373. .TP
  374. .BR \-Dh ", " \-\-debug=help
  375. Give help about debugging options.
  376. .TP
  377. \fB\-\-version\fP
  378. Display \fBdpkg\fP version information.
  379. .TP
  380. \fBdpkg\-deb actions\fP
  381. See \fBdpkg\-deb\fP(1) for more information about the following actions.
  382. .nf
  383. \fB\-b\fP, \fB\-\-build\fP \fIdirectory\fP [\fIarchive\fP|\fIdirectory\fP]
  384. Build a deb package.
  385. \fB\-c\fP, \fB\-\-contents\fP \fIarchive\fP
  386. List contents of a deb package.
  387. \fB\-e\fP, \fB\-\-control\fP \fIarchive\fP [\fIdirectory\fP]
  388. Extract control-information from a package.
  389. \fB\-x\fP, \fB\-\-extract\fP \fIarchive directory\fP
  390. Extract the files contained by package.
  391. \fB\-X\fP, \fB\-\-vextract\fP \fIarchive directory\fP
  392. Extract and display the filenames contained by a
  393. package.
  394. \fB\-f\fP, \fB\-\-field\fP \fIarchive\fP [\fIcontrol-field\fP...]
  395. Display control field(s) of a package.
  396. .BR \-\-ctrl\-tarfile " \fIarchive\fP"
  397. Output the control tar-file contained in a Debian package.
  398. \fB\-\-fsys\-tarfile\fP \fIarchive\fP
  399. Output the filesystem tar-file contained by a Debian package.
  400. \fB\-I\fP, \fB\-\-info\fP \fIarchive\fP [\fIcontrol-file\fP...]
  401. Show information about a package.
  402. .fi
  403. .TP
  404. \fBdpkg\-query actions\fP
  405. See \fBdpkg\-query\fP(1) for more information about the following actions.
  406. .nf
  407. \fB\-l\fP, \fB\-\-list\fP \fIpackage-name-pattern\fP...
  408. List packages matching given pattern.
  409. \fB\-s\fP, \fB\-\-status\fP \fIpackage-name\fP...
  410. Report status of specified package.
  411. \fB\-L\fP, \fB\-\-listfiles\fP \fIpackage-name\fP...
  412. List files installed to your system from \fIpackage-name\fP.
  413. \fB\-S\fP, \fB\-\-search\fP \fIfilename-search-pattern\fP...
  414. Search for a filename from installed packages.
  415. \fB\-p\fP, \fB\-\-print\-avail\fP \fIpackage-name\fP...
  416. Display details about \fIpackage-name\fP, as found in
  417. \fI/var/lib/dpkg/available\fP. Users of APT-based frontends
  418. should use \fBapt\-cache show\fP \fIpackage-name\fP instead.
  419. .fi
  420. .
  421. .SH OPTIONS
  422. All options can be specified both on the command line and in the \fBdpkg\fP
  423. configuration file \fI/etc/dpkg/dpkg.cfg\fP or fragment files (with names
  424. matching this shell pattern \(aq[0-9a-zA-Z_-]*\(aq) on the configuration
  425. directory \fI/etc/dpkg/dpkg.cfg.d/\fP. Each line in the configuration
  426. file is either an option (exactly the same as the command line option but
  427. without leading hyphens) or a comment (if it starts with a \(oq\fB#\fP\(cq).
  428. .br
  429. .TP
  430. \fB\-\-abort\-after=\fP\fInumber\fP
  431. Change after how many errors \fBdpkg\fP will abort. The default is 50.
  432. .TP
  433. .BR \-B ", " \-\-auto\-deconfigure
  434. When a package is removed, there is a possibility that another
  435. installed package depended on the removed package. Specifying this
  436. option will cause automatic deconfiguration of the package which
  437. depended on the removed package.
  438. .TP
  439. \fB\-D\fIoctal\fP, \fB\-\-debug=\fP\fIoctal\fP
  440. Switch debugging on. \fIoctal\fP is formed by bitwise-orring desired
  441. values together from the list below (note that these values may change
  442. in future releases). \fB\-Dh\fP or \fB\-\-debug=help\fP display these
  443. debugging values.
  444. Number Description
  445. 1 Generally helpful progress information
  446. 2 Invocation and status of maintainer scripts
  447. 10 Output for each file processed
  448. 100 Lots of output for each file processed
  449. 20 Output for each configuration file
  450. 200 Lots of output for each configuration file
  451. 40 Dependencies and conflicts
  452. 400 Lots of dependencies/conflicts output
  453. 10000 Trigger activation and processing
  454. 20000 Lots of output regarding triggers
  455. 40000 Silly amounts of output regarding triggers
  456. 1000 Lots of drivel about e.g. the dpkg/info dir
  457. 2000 Insane amounts of drivel
  458. .TP
  459. .B \-\-force\-\fIthings\fP
  460. .TQ
  461. .BR \-\-no\-force\-\fIthings\fP ", " \-\-refuse\-\fIthings\fP
  462. Force or refuse (\fBno\-force\fP and \fBrefuse\fP mean the same thing)
  463. to do some things. \fIthings\fP is a comma separated list of things
  464. specified below. \fB\-\-force\-help\fP displays a message describing them.
  465. Things marked with (*) are forced by default.
  466. \fIWarning: These options are mostly intended to be used by experts
  467. only. Using them without fully understanding their effects may break
  468. your whole system.\fP
  469. \fBall\fP:
  470. Turns on (or off) all force options.
  471. \fBdowngrade\fP(*):
  472. Install a package, even if newer version of it is already installed.
  473. \fIWarning: At present \fP\fBdpkg\fP\fI does not do any dependency
  474. checking on downgrades and therefore will not warn you
  475. if the downgrade breaks the dependency of some other
  476. package. This can have serious side effects, downgrading
  477. essential system components can even make your whole
  478. system unusable. Use with care.\fP
  479. \fBconfigure\-any\fP:
  480. Configure also any unpacked but unconfigured packages on which the current
  481. package depends.
  482. \fBhold\fP:
  483. Process packages even when marked \(lqhold\(rq.
  484. \fBremove\-reinstreq\fP:
  485. Remove a package, even if it's broken and marked to require
  486. reinstallation. This may, for example, cause parts of the package to
  487. remain on the system, which will then be forgotten by \fBdpkg\fP.
  488. \fBremove\-essential\fP:
  489. Remove, even if the package is considered essential. Essential
  490. packages contain mostly very basic Unix commands. Removing them might
  491. cause the whole system to stop working, so use with caution.
  492. \fBdepends\fP:
  493. Turn all dependency problems into warnings.
  494. \fBdepends\-version\fP:
  495. Don't care about versions when checking dependencies.
  496. \fBbreaks\fP:
  497. Install, even if this would break another package (since dpkg 1.14.6).
  498. \fBconflicts\fP:
  499. Install, even if it conflicts with another package. This is dangerous,
  500. for it will usually cause overwriting of some files.
  501. \fBconfmiss\fP:
  502. If a conffile is missing and the version in the package did change, always
  503. install the missing conffile without prompting. This is dangerous, since
  504. it means not preserving a change (removing) made to the file.
  505. \fBconfnew\fP:
  506. If a conffile has been modified and the version in the package did change,
  507. always install the new version without prompting, unless the
  508. \fB\-\-force\-confdef\fP is also specified, in which case the default
  509. action is preferred.
  510. \fBconfold\fP:
  511. If a conffile has been modified and the version in the package did change,
  512. always keep the old version without prompting, unless the
  513. \fB\-\-force\-confdef\fP is also specified, in which case the default
  514. action is preferred.
  515. \fBconfdef\fP:
  516. If a conffile has been modified and the version in the package did change,
  517. always choose the default action without prompting. If there is no default
  518. action it will stop to ask the user unless \fB\-\-force\-confnew\fP or
  519. \fB\-\-force\-confold\fP is also been given, in which case it will use
  520. that to decide the final action.
  521. \fBconfask\fP:
  522. If a conffile has been modified always offer to replace it with the
  523. version in the package, even if the version in the package did not
  524. change (since dpkg 1.15.8).
  525. If any of \fB\-\-force\-confmiss\fP, \fB\-\-force\-confnew\fP,
  526. \fB\-\-force\-confold\fP, or \fB\-\-force\-confdef\fP is also given,
  527. it will be used to decide the final action.
  528. \fBoverwrite\fP:
  529. Overwrite one package's file with another's file.
  530. \fBoverwrite\-dir\fP:
  531. Overwrite one package's directory with another's file.
  532. \fBoverwrite\-diverted\fP:
  533. Overwrite a diverted file with an undiverted version.
  534. \fBunsafe\-io\fP:
  535. Do not perform safe I/O operations when unpacking (since dpkg 1.15.8.6).
  536. Currently this
  537. implies not performing file system syncs before file renames, which is
  538. known to cause substantial performance degradation on some file systems,
  539. unfortunately the ones that require the safe I/O on the first place due
  540. to their unreliable behaviour causing zero-length files on abrupt
  541. system crashes.
  542. \fINote\fP: For ext4, the main offender, consider using instead the
  543. mount option \fBnodelalloc\fP, which will fix both the performance
  544. degradation and the data safety issues, the latter by making the file
  545. system not produce zero-length files on abrupt system crashes with
  546. any software not doing syncs before atomic renames.
  547. \fIWarning: Using this option might improve performance at the cost of
  548. losing data, use with care.\fP
  549. \fBscript-chrootless\fP:
  550. Run maintainer scrips without \fBchroot\fP(2)ing into \fBinstdir\fP even
  551. if the package does not support this mode of operation (since dpkg 1.18.5).
  552. \fIWarning: This can destroy your host system, use with extreme care.\fP
  553. \fBarchitecture\fP:
  554. Process even packages with wrong or no architecture.
  555. \fBbad\-version\fP:
  556. Process even packages with wrong versions (since dpkg 1.16.1).
  557. \fBbad\-path\fP:
  558. \fBPATH\fP is missing important programs, so problems are likely.
  559. \fBnot\-root\fP:
  560. Try to (de)install things even when not root.
  561. \fBbad\-verify\fP:
  562. Install a package even if it fails authenticity check.
  563. .TP
  564. \fB\-\-ignore\-depends\fP=\fIpackage\fP,...
  565. Ignore dependency-checking for specified packages (actually, checking is
  566. performed, but only warnings about conflicts are given, nothing else).
  567. .TP
  568. \fB\-\-no\-act\fP, \fB\-\-dry\-run\fP, \fB\-\-simulate\fP
  569. Do everything which is supposed to be done, but don't write any
  570. changes. This is used to see what would happen with the specified
  571. action, without actually modifying anything.
  572. Be sure to give \fB\-\-no\-act\fP before the action-parameter, or you might
  573. end up with undesirable results. (e.g. \fBdpkg \-\-purge foo
  574. \-\-no\-act\fP will first purge package foo and then try to purge package
  575. \-\-no\-act, even though you probably expected it to actually do nothing)
  576. .TP
  577. \fB\-R\fP, \fB\-\-recursive\fP
  578. Recursively handle all regular files matching pattern \fB*.deb\fP
  579. found at specified directories and all of its subdirectories. This can
  580. be used with \fB\-i\fP, \fB\-A\fP, \fB\-\-install\fP, \fB\-\-unpack\fP and
  581. \fB\-\-record\-avail\fP actions.
  582. .TP
  583. \fB\-G\fP
  584. Don't install a package if a newer version of the same package is already
  585. installed. This is an alias of \fB\-\-refuse\-downgrade\fP.
  586. .TP
  587. .BI \-\-admindir= dir
  588. Change default administrative directory, which contains many files that
  589. give information about status of installed or uninstalled packages, etc.
  590. (Defaults to \(Fo\fI/var/lib/dpkg\fP\(Fc)
  591. .TP
  592. .BI \-\-instdir= dir
  593. Change default installation directory which refers to the directory where
  594. packages are to be installed. \fBinstdir\fP is also the directory passed
  595. to \fBchroot\fP(2) before running package's installation scripts, which
  596. means that the scripts see \fBinstdir\fP as a root directory.
  597. (Defaults to \(Fo\fI/\fP\(Fc)
  598. .TP
  599. .BI \-\-root= dir
  600. Changing \fBroot\fP changes \fBinstdir\fP to \(Fo\fIdir\fP\(Fc and
  601. \fBadmindir\fP to \(Fo\fIdir\fP\fB/var/lib/dpkg\fP\(Fc.
  602. .TP
  603. \fB\-O\fP, \fB\-\-selected\-only\fP
  604. Only process the packages that are selected for installation. The
  605. actual marking is done with \fBdselect\fP or by \fBdpkg\fP, when it
  606. handles packages. For example, when a package is removed, it will
  607. be marked selected for deinstallation.
  608. .TP
  609. .BR \-E ", " \-\-skip\-same\-version
  610. Don't install the package if the same version of the package is already
  611. installed.
  612. .TP
  613. .BI \-\-pre\-invoke= command
  614. .TQ
  615. .BI \-\-post\-invoke= command
  616. Set an invoke hook \fIcommand\fP to be run via \*(lqsh \-c\*(rq before or
  617. after the \fBdpkg\fP run for the \fIunpack\fP, \fIconfigure\fP, \fIinstall\fP,
  618. \fItriggers\-only\fP, \fIremove\fP, \fIpurge\fP, \fIadd\-architecture\fP and
  619. \fIremove\-architecture\fP \fBdpkg\fP actions (since dpkg 1.15.4;
  620. \fIadd\-architecture\fP and \fIremove\-architecture\fP actions
  621. since dpkg 1.17.19). This
  622. option can be specified multiple times. The order the options are specified
  623. is preserved, with the ones from the configuration files taking precedence.
  624. The environment variable \fBDPKG_HOOK_ACTION\fP is set for the hooks to the
  625. current \fBdpkg\fP action. Note: front-ends might call \fBdpkg\fP several
  626. times per invocation, which might run the hooks more times than expected.
  627. .TP
  628. .BI \-\-path\-exclude= glob-pattern
  629. .TQ
  630. .BI \-\-path\-include= glob-pattern
  631. Set \fIglob-pattern\fP as a path filter, either by excluding or re-including
  632. previously excluded paths matching the specified patterns during install
  633. (since dpkg 1.15.8).
  634. \fIWarning: take into account that depending on the excluded paths you
  635. might completely break your system, use with caution.\fP
  636. The glob patterns use the same wildcards used in the shell, were
  637. \(oq*\(cq matches any sequence of characters, including the empty string
  638. and also \(oq/\(cq.
  639. For example, \(Fo\fI/usr/*/READ*\fP\(Fc matches
  640. \(Fo\fI/usr/share/doc/package/README\fP\(Fc.
  641. As usual, \(oq?\(cq matches any single character (again, including \(oq/\(cq).
  642. And \(oq[\(cq
  643. starts a character class, which can contain a list of characters, ranges
  644. and complementations. See \fBglob\fP(7) for detailed information about
  645. globbing. Note: the current implementation might re-include more directories
  646. and symlinks than needed, to be on the safe side and avoid possible unpack
  647. failures; future work might fix this.
  648. This can be used to remove all paths except some particular ones; a typical
  649. case is:
  650. .nf
  651. .B \-\-path\-exclude=/usr/share/doc/*
  652. .B \-\-path\-include=/usr/share/doc/*/copyright
  653. .fi
  654. to remove all documentation files except the copyright files.
  655. These two options can be specified multiple times, and interleaved with
  656. each other. Both are processed in the given order, with the last rule that
  657. matches a file name making the decision.
  658. The filters are applied when unpacking the binary packages, and as such
  659. only have knowledge of the type of object currently being filtered
  660. (e.g. a normal file or a directory) and have not visibility of what
  661. objects will come next.
  662. Because these filters have side effects (in contrast to \fBfind\fP(1)
  663. filters), excluding an exact pathname that happens to be a directory object
  664. like \fI/usr/share/doc\fP will not have the desired result, and only that
  665. pathname will be excluded (which could be automatically reincluded if the
  666. code sees the need).
  667. Any subsequent files contained within that directory will fail to unpack.
  668. Hint: make sure the globs are not expanded by your shell.
  669. .TP
  670. .BI \-\-verify\-format " format-name"
  671. Sets the output format for the \fB\-\-verify\fP command (since dpkg 1.17.2).
  672. The only currently supported output format is \fBrpm\fP, which consists
  673. of a line for every path that failed any check.
  674. The lines start with 9 characters to report each specific check result,
  675. a \(oq\fB?\fP\(cq implies the check could not be done (lack of support,
  676. file permissions, etc), \(oq\fB.\fP\(cq implies the check passed, and
  677. an alphanumeric character implies a specific check failed; the md5sum
  678. verification failure (the file contents have changed) is denoted with
  679. a \(oq\fB5\fP\(cq on the third character.
  680. The line is followed by a space and an attribute character (currently
  681. \(oq\fBc\fP\(cq for conffiles), another space and the pathname.
  682. .TP
  683. \fB\-\-status\-fd \fR\fIn\fR
  684. Send machine-readable package status and progress information to file
  685. descriptor \fIn\fP. This option can be specified multiple times. The
  686. information is generally one record per line, in one of the following
  687. forms:
  688. .RS
  689. .TP
  690. .BI "status: " package ": " status
  691. Package status changed; \fIstatus\fR is as in the status file.
  692. .TP
  693. .BI "status: " package " : error : " extended-error-message
  694. An error occurred. Any possible newlines in \fIextended-error-message\fR
  695. will be converted to spaces before output.
  696. .TP
  697. .BI "status: " file " : conffile\-prompt : '" real-old "' '" real-new "' " useredited " " distedited
  698. User is being asked a conffile question.
  699. .TP
  700. .BI "processing: " stage ": " package
  701. Sent just before a processing stage starts. \fIstage\fR is one of
  702. .BR upgrade ", " install " (both sent before unpacking),"
  703. .BR configure ", " trigproc ", " disappear ", " remove ", " purge .
  704. .RE
  705. .TP
  706. \fB\-\-status\-logger\fR=\fIcommand\fR
  707. Send machine-readable package status and progress information to the
  708. shell \fIcommand\fR's standard input, to be run via \*(lqsh \-c\*(rq
  709. (since dpkg 1.16.0).
  710. This option can be specified multiple times.
  711. The output format used is the same as in \fB\-\-status\-fd\fP.
  712. .RE
  713. .TP
  714. \fB\-\-log=\fP\fIfilename\fP
  715. Log status change updates and actions to \fIfilename\fP, instead of
  716. the default \fI/var/log/dpkg.log\fP. If this option is given multiple
  717. times, the last filename is used. Log messages are of the form
  718. \(oqYYYY-MM-DD HH:MM:SS startup \fItype\fP \fIcommand\fP\(cq for each dpkg
  719. invocation where \fItype\fP is \fBarchives\fP (with a \fIcommand\fP of
  720. \fBunpack\fP or \fBinstall\fP) or \fBpackages\fP (with a \fIcommand\fP of
  721. \fBconfigure\fP, \fBtriggers\-only\fP, \fBremove\fP or \fBpurge\fP);
  722. \(oqYYYY-MM-DD HH:MM:SS status \fIstate\fP \fIpkg\fP \fIinstalled-version\fP\(cq
  723. for status change updates;
  724. \(oqYYYY-MM-DD HH:MM:SS \fIaction\fP \fIpkg\fP \fIinstalled-version\fP
  725. \fIavailable-version\fP\(cq for actions where \fIaction\fP is one of
  726. \fBinstall\fP, \fBupgrade\fP, \fBconfigure\fP, \fBtrigproc\fP,
  727. \fBdisappear\fP, \fBremove\fP or \fBpurge\fP; and
  728. \(oqYYYY-MM-DD HH:MM:SS conffile \fIfilename\fP \fIdecision\fP\(cq for conffile
  729. changes where \fIdecision\fP is either \fBinstall\fP or \fBkeep\fP.
  730. .TP
  731. \fB\-\-no\-debsig\fP
  732. Do not try to verify package signatures.
  733. .TP
  734. \fB\-\-no\-triggers\fP
  735. Do not run any triggers in this run (since dpkg 1.14.17), but activations
  736. will still be recorded.
  737. If used with \fB\-\-configure\fP \fIpackage\fP or
  738. \fB\-\-triggers\-only\fP \fIpackage\fP then the named package postinst
  739. will still be run even if only a triggers run is needed. Use of this option
  740. may leave packages in the improper \fBtriggers\-awaited\fP and
  741. \fBtriggers\-pending\fP states. This can be fixed later by running:
  742. \fBdpkg \-\-configure \-\-pending\fP.
  743. .TP
  744. \fB\-\-triggers\fP
  745. Cancels a previous \fB\-\-no\-triggers\fP (since dpkg 1.14.17).
  746. .
  747. .SH EXIT STATUS
  748. .TP
  749. .B 0
  750. The requested action was successfully performed.
  751. Or a check or assertion command returned true.
  752. .TP
  753. .B 1
  754. A check or assertion command returned false.
  755. .TP
  756. .B 2
  757. Fatal or unrecoverable error due to invalid command-line usage, or
  758. interactions with the system, such as accesses to the database,
  759. memory allocations, etc.
  760. .
  761. .SH ENVIRONMENT
  762. .SS External environment
  763. .TP
  764. .B PATH
  765. This variable is expected to be defined in the environment and point to
  766. the system paths where several required programs are to be found. If it's
  767. not set or the programs are not found, \fBdpkg\fP will abort.
  768. .TP
  769. .B HOME
  770. If set, \fBdpkg\fP will use it as the directory from which to read the user
  771. specific configuration file.
  772. .TP
  773. .B TMPDIR
  774. If set, \fBdpkg\fP will use it as the directory in which to create
  775. temporary files and directories.
  776. .TP
  777. .B PAGER
  778. The program \fBdpkg\fP will execute when displaying the conffiles.
  779. .TP
  780. .B SHELL
  781. The program \fBdpkg\fP will execute when starting a new interactive shell.
  782. .TP
  783. .B COLUMNS
  784. Sets the number of columns \fBdpkg\fP should use when displaying formatted
  785. text.
  786. Currently only used by \fB\-\-list\fP.
  787. .TP
  788. .B DPKG_COLORS
  789. Sets the color mode (since dpkg 1.18.5).
  790. The currently accepted values are: \fBauto\fP, \fBalways\fP and
  791. \fBnever\fP (default).
  792. .SS Internal environment
  793. .TP
  794. .B DPKG_ROOT
  795. Defined by \fBdpkg\fP on the maintainer script environment to indicate
  796. which installation to act on (since dpkg 1.18.5).
  797. The value is intended to be prepended to any path maintainer scripts
  798. operate on.
  799. During normal operation, this variable is empty.
  800. When installing packages into a different \fBinstdir\fP, \fBdpkg\fP
  801. normally invokes maintainer scripts using \fBchroot\fP(2) and leaves
  802. this variable empty, but if \fB\-\-force\-script\-chrootless\fP is
  803. specified then the \fBchroot\fP(2) call is skipped and \fBinstdir\fP
  804. is non-empty.
  805. .TP
  806. .B DPKG_SHELL_REASON
  807. Defined by \fBdpkg\fP on the shell spawned on the conffile prompt to
  808. examine the situation (since dpkg 1.15.6).
  809. Current valid value: \fBconffile\-prompt\fP.
  810. .TP
  811. .B DPKG_CONFFILE_OLD
  812. Defined by \fBdpkg\fP on the shell spawned on the conffile prompt to
  813. examine the situation (since dpkg 1.15.6).
  814. Contains the path to the old conffile.
  815. .TP
  816. .B DPKG_CONFFILE_NEW
  817. Defined by \fBdpkg\fP on the shell spawned on the conffile prompt to
  818. examine the situation (since dpkg 1.15.6).
  819. Contains the path to the new conffile.
  820. .TP
  821. .B DPKG_HOOK_ACTION
  822. Defined by \fBdpkg\fP on the shell spawned when executing a hook action
  823. (since dpkg 1.15.4).
  824. Contains the current \fBdpkg\fP action.
  825. .TP
  826. .B DPKG_RUNNING_VERSION
  827. Defined by \fBdpkg\fP on the maintainer script environment to the
  828. version of the currently running \fBdpkg\fP instance (since dpkg 1.14.17).
  829. .TP
  830. .B DPKG_MAINTSCRIPT_PACKAGE
  831. Defined by \fBdpkg\fP on the maintainer script environment to the
  832. (non-arch-qualified) package name being handled (since dpkg 1.14.17).
  833. .TP
  834. .B DPKG_MAINTSCRIPT_PACKAGE_REFCOUNT
  835. Defined by \fBdpkg\fP on the maintainer script environment to the
  836. package reference count, i.e. the number of package instances with
  837. a state greater than \fBnot\-installed\fP (since dpkg 1.17.2).
  838. .TP
  839. .B DPKG_MAINTSCRIPT_ARCH
  840. Defined by \fBdpkg\fP on the maintainer script environment to the
  841. architecture the package got built for (since dpkg 1.15.4).
  842. .TP
  843. .B DPKG_MAINTSCRIPT_NAME
  844. Defined by \fBdpkg\fP on the maintainer script environment to the
  845. name of the script running, one of \fBpreinst\fP, \fBpostinst\fP,
  846. \fBprerm\fP or \fBpostrm\fP (since dpkg 1.15.7).
  847. .TP
  848. .B DPKG_MAINTSCRIPT_DEBUG
  849. Defined by \fBdpkg\fP on the maintainer script environment to a value
  850. (\(oq\fB0\fP\(cq or \(oq\fB1\fP\(cq) noting whether debugging has been
  851. requested (with the \fB\-\-debug\fP option) for the maintainer scripts
  852. (since dpkg 1.18.4).
  853. .
  854. .SH FILES
  855. .TP
  856. .I /etc/dpkg/dpkg.cfg.d/[0-9a-zA-Z_-]*
  857. Configuration fragment files (since dpkg 1.15.4).
  858. .TP
  859. .I /etc/dpkg/dpkg.cfg
  860. Configuration file with default options.
  861. .TP
  862. .I /var/log/dpkg.log
  863. Default log file (see \fI/etc/dpkg/dpkg.cfg\fP(5) and option
  864. \fB\-\-log\fP).
  865. .P
  866. The other files listed below are in their default directories, see option
  867. \fB\-\-admindir\fP to see how to change locations of these files.
  868. .TP
  869. .I /var/lib/dpkg/available
  870. List of available packages.
  871. .TP
  872. .I /var/lib/dpkg/status
  873. Statuses of available packages. This file contains information about
  874. whether a package is marked for removing or not, whether it is
  875. installed or not, etc. See section \fBINFORMATION ABOUT PACKAGES\fP
  876. for more info.
  877. The status file is backed up daily in \fI/var/backups\fP. It can be
  878. useful if it's lost or corrupted due to filesystems troubles.
  879. .P
  880. The following files are components of a binary package. See \fBdeb\fP(5)
  881. for more information about them:
  882. .RS
  883. .nf
  884. .I control
  885. .I conffiles
  886. .I preinst
  887. .I postinst
  888. .I prerm
  889. .I postrm
  890. .I triggers
  891. .fi
  892. .RE
  893. .
  894. .SH BUGS
  895. \fB\-\-no\-act\fP usually gives less information than might be helpful.
  896. .
  897. .SH EXAMPLES
  898. To list installed packages related to the editor \fBvi\fP(1) (note that
  899. \fBdpkg\-query\fP does not load the \fIavailable\fP file anymore by
  900. default, and the \fBdpkg\-query\fP \fB\-\-load\-avail\fP option should
  901. be used instead for that):
  902. .br
  903. \fB dpkg \-l \(aq*vi*\(aq\fP
  904. .br
  905. To see the entries in \fI/var/lib/dpkg/available\fP of two packages:
  906. .br
  907. \fB dpkg \-\-print\-avail elvis vim | less\fP
  908. .br
  909. To search the listing of packages yourself:
  910. .br
  911. \fB less /var/lib/dpkg/available\fP
  912. .br
  913. To remove an installed elvis package:
  914. .br
  915. \fB dpkg \-r elvis\fP
  916. .br
  917. To install a package, you first need to find it in an archive or
  918. CDROM. The \fIavailable\fP file shows that the vim package is in section
  919. \fBeditors\fP:
  920. .br
  921. \fB cd /media/cdrom/pool/main/v/vim\fP
  922. \fB dpkg \-i vim_4.5\-3.deb\fP
  923. .br
  924. To make a local copy of the package selection states:
  925. .br
  926. \fB dpkg \-\-get\-selections >myselections\fP
  927. .br
  928. You might transfer this file to another computer, and after having updated
  929. the \fIavailable\fP file there with your package manager frontend of choice
  930. (see https://wiki.debian.org/Teams/Dpkg/FAQ for more details), for example:
  931. .br
  932. \fB apt\-cache dumpavail | dpkg \-\-merge\-avail\fP
  933. .br
  934. or with dpkg 1.17.6 and earlier:
  935. .br
  936. \fB avail=`mktemp`\fP
  937. \fB apt\-cache dumpavail >"$avail"\fP
  938. \fB dpkg \-\-merge\-avail "$avail"\fP
  939. \fB rm "$avail"\fP
  940. .br
  941. you can install it with:
  942. .br
  943. \fB dpkg \-\-clear\-selections\fP
  944. \fB dpkg \-\-set\-selections <myselections\fP
  945. .br
  946. Note that this will not actually install or remove anything, but just
  947. set the selection state on the requested packages. You will need some
  948. other application to actually download and install the requested
  949. packages. For example, run \fBapt\-get dselect\-upgrade\fP.
  950. Ordinarily, you will find that \fBdselect\fP(1) provides a more
  951. convenient way to modify the package selection states.
  952. .br
  953. .
  954. .SH ADDITIONAL FUNCTIONALITY
  955. Additional functionality can be gained by installing any of the
  956. following packages: \fBapt\fR, \fBaptitude\fR and \fBdebsums\fR.
  957. .
  958. .SH SEE ALSO
  959. .ad l
  960. .nh
  961. \fBaptitude\fP(1),
  962. \fBapt\fP(1),
  963. \fBdselect\fP(1),
  964. \fBdpkg\-deb\fP(1),
  965. \fBdpkg\-query\fP(1),
  966. \fBdeb\fP(5),
  967. \fBdeb\-control\fP(5),
  968. \fBdpkg.cfg\fP(5),
  969. and
  970. \fBdpkg\-reconfigure\fP(8).
  971. .
  972. .SH AUTHORS
  973. See \fI/usr/share/doc/dpkg/THANKS\fP for the list of people who have
  974. contributed to \fBdpkg\fP.