apt-get.8.yo 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. mailto(apt@packages.debian.org)
  2. manpage(apt-get)(8)(4 Dec 1998)(apt)()
  3. manpagename(apt-get)(APT package handling utility -- command-line interface)
  4. manpagesynopsis()
  5. apt-get [options] [command] [package ...]
  6. manpagedescription()
  7. apt-get is the command-line tool for handling packages, and may be considered
  8. the user's "back-end" to apt(8).
  9. em(command) is one of:
  10. itemize(
  11. it() update
  12. it() upgrade
  13. it() dselect-upgrade
  14. it() dist-upgrade
  15. it() install
  16. it() remove
  17. it() check
  18. it() clean
  19. )
  20. Unless the -h, or --help option is given one of the above commands
  21. must be present. Only the install command requires any further arguments.
  22. startdit()
  23. dit(bf(update))
  24. bf(update) is used to resynchronize the package overview files from their
  25. sources. The overviews of available packages are fetched from the
  26. location(s) specified in bf(/etc/apt/sources.list).
  27. For example, when using a Debian archive, this command retrieves and
  28. scans the bf(Packages.gz) files, so that information about new and updated
  29. packages is available. An bf(update) should always be performed before an
  30. bf(upgrade) bf(dist-upgrade).
  31. dit(bf(upgrade))
  32. bf(upgrade) is used to install the newest versions of all packages currently
  33. installed on the system from the sources enumerated in
  34. bf(/etc/apt/sources.list). Packages currently installed with new versions
  35. available are retrieved and upgraded; under no circumstances are currently
  36. installed packages removed, or packages not already installed retrieved and
  37. installed. New versions of currently installed packages that cannot be
  38. upgraded without changing the install status of another package will be left
  39. at their current version. An bf(update) must be performed first so that
  40. bf(apt-get) knows that new versions of packages are available.
  41. dit(bf(dselect-upgrade))
  42. bf(dselect-upgrade)
  43. is used in conjunction with the traditional Debian GNU/Linux packaging
  44. front-end, bf(dselect (8)). bf(dselect-upgrade)
  45. follows the changes made by bf(dselect) to the em(Status)
  46. field of available packages, and performs the actions necessary to realize
  47. that state (for instance, the removal of old and the installation of new
  48. dit(bf(dist-upgrade))
  49. bf(dist-upgrade),in addition to performing the function of bf(upgrade),
  50. also intelligently handles changing dependencies with new versions of
  51. packages; bf(apt-get) has a "smart" conflict resolution system, and it will
  52. attempt to upgrade the most important packages at the expense of less
  53. important ones if necessary. The bf(/etc/apt/sources.list) file contains a
  54. list of locations from which to retrieve desired package files.
  55. dit(bf(install))
  56. bf(install) is followed by one or more em(packages) desired for installation.
  57. Each em(package) is a package name, not a fully qualified filename
  58. (for instance, in a Debian GNU/Linux system, em(lsdo) would be the argument
  59. provided, not em(ldso_1.9.6-2.deb)). All packages required by the package(s)
  60. specified for installation will also be retrieved and installed. The
  61. bf(/etc/apt/sources.list) file is used to locate the desired packages. If a
  62. hyphen is appended to the package name (with no intervening space), the
  63. identified package will be removed if it is installed. This latter feature
  64. may be used to override decisions made by apt-get's conflict resolution system.
  65. dit(bf(check))
  66. bf(check) is a diagnostic tool; it updates the package cache and checks for
  67. brokenpackages.
  68. dit(bf(clean))
  69. df(clean) clears out the local repository of retrieved package files. It
  70. removes everything but the lock file from bf(/var/cache/apt/archives/)
  71. and bf(/var/cache/apt/archives/partial/).
  72. When APT is used as a bf(dselect(8)) method, bf(clean) is run automatically.
  73. Those who do not use dselect will likely want to run code(apt-get clean)
  74. from time to time to free up disk space.
  75. enddit()
  76. manpageoptions()
  77. startdit()
  78. dit(bf(-d, --download-only))
  79. Download only; package files are only retrieved, not unpacked or installed.
  80. dit(bf(-f, --fix-broken))
  81. Fix; attempt to correct a system with broken dependencies in
  82. place. This option may be used alone or in conjunction with any of the
  83. command actions, and is sometimes necessary when running APT for the
  84. first time; APT itself does not allow broken package dependencies to
  85. exist on a system. It is possible that a system's dependency structure
  86. can be so corrupt as to require manual intervention (which usually
  87. means using dselect or dpkg --remove to eliminate some of the offending
  88. packages). Use of this option together with -m may produce an error in
  89. some situations.
  90. dit(bf(-h, --help))
  91. Help; display a helpful usage message and exits.
  92. dit(bf(-m, --ignore-missing))
  93. Ignore missing packages; If packages cannot be retrieved or fail the
  94. integrity check after retrieval (corrupted package files), hold back
  95. those packages and handle the result. Use of this option together with
  96. -f is discouraged.
  97. dit(bf(-q, --silent))
  98. Quiet; produces output suitable for logging, omitting progress indicators.
  99. More qs will produce more quite up to a maximum of 2. You can also use
  100. bf(-q=#) to set the quiet level, overriding the configuration file.
  101. dit(bf(-s, --simulate, --just-print, --dry-run, --recon, --no-act))
  102. No action; perform a simulation of events that would occur but do not
  103. actually change the system.
  104. dit(bf(-y, --yes, --assume-yes))
  105. Automatic yes to prompts; assume "yes" as answer to all prompts and run
  106. non-interactively. If an undesireable situation, such as changing a held
  107. package or removing an essential package occures then bf(apt-get) will
  108. abort.
  109. dit(bf(-u, --show-upgraded))
  110. Show upgraded packages; Print out a list of all packages that are to be
  111. upgraded.
  112. dit(bf(--ignore-hold))
  113. Ignore package Holds; This causes bf(apt-get) to ignore a hold placed on
  114. a package. This may be usefull in conjunction with bf(dist-upgrade) to
  115. override a large number of undesired holds.
  116. dit(bf(--no-upgrade))
  117. Do not upgrade packages; When used in conjunction with bf(install)
  118. bf(no-upgrade) will prevent packages listed from being upgraded if they
  119. are already installed.
  120. dit(bf(--force-yes))
  121. Force yes; This is a dangerous option that will cause apt to continue without
  122. prompting if it is doing something potentially harmfull. It should not be used
  123. except in very special situations. Using bf(force-yes) can potentially destroy
  124. your system!
  125. dit(bf(-c, --config-file))
  126. Configuration File; Specify a configuration file to use. bf(apt-get) will
  127. read the default configuration file and then this configuration file. See
  128. bf(apt.conf(5)) for syntax information.
  129. dit(bf(-o, --option))
  130. Set a Configuration Option; This will set an arbitary configuration option.
  131. The syntax is
  132. verb(-o Foo::Bar=bar)
  133. manpagefiles()
  134. itemize(
  135. it() /etc/apt/sources.list
  136. locations to fetch packages from
  137. it() /var/cache/apt/archives/
  138. storage area for retrieved package files
  139. it() /var/cache/apt/archives/partial/
  140. storage area for package files in transit
  141. it() /var/state/apt/lists/
  142. storage area for state information for each package resource specified in
  143. it() /var/state/apt/lists/partial/
  144. storage area for state information in transit
  145. )
  146. manpageseealso()
  147. apt-cache (8),
  148. dpkg (8),
  149. dselect (8),
  150. sources.list (5)
  151. manpagediagnostics()
  152. apt-get returns zero on normal operation, decimal 100 on error.
  153. manpagebugs()
  154. See http://www.debian.org/Bugs/db/pa/lapt.html. If you wish to report a
  155. bug in bf(apt-get), please see bf(/usr/doc/debian/bug-reporting.txt)
  156. or the bf(bug(1)) command.
  157. manpageauthor()
  158. apt-get was written by the APT team <apt@packages.debian.org>.