dpkg.man 40 KB

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