Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.00 KB | None | 0 0
  1. All command line options may be set using the configuration file, the descriptions
  2. indicate the configuration option to set. For boolean options you can override the config
  3. file by using something like -f-,--no-f, -f=no or several other variations.
  4.  
  5. --no-install-recommends
  6. Do not consider recommended packages as a dependency for installing. Configuration
  7. Item: APT::Install-Recommends.
  8.  
  9. --install-suggests
  10. Consider suggested packages as a dependency for installing. Configuration Item:
  11. APT::Install-Suggests.
  12.  
  13. -d, --download-only
  14. Download only; package files are only retrieved, not unpacked or installed.
  15. Configuration Item: APT::Get::Download-Only.
  16.  
  17. -f, --fix-broken
  18. Fix; attempt to correct a system with broken dependencies in place. This option, when
  19. used with install/remove, can omit any packages to permit APT to deduce a likely
  20. solution. If packages are specified, these have to completely correct the problem. The
  21. option is sometimes necessary when running APT for the first time; APT itself does not
  22. allow broken package dependencies to exist on a system. It is possible that a system's
  23. dependency structure can be so corrupt as to require manual intervention (which
  24. usually means using dpkg --remove to eliminate some of the offending packages). Use of
  25. this option together with -m may produce an error in some situations. Configuration
  26. Item: APT::Get::Fix-Broken.
  27.  
  28. -m, --ignore-missing, --fix-missing
  29. Ignore missing packages; if packages cannot be retrieved or fail the integrity check
  30. after retrieval (corrupted package files), hold back those packages and handle the
  31. result. Use of this option together with -f may produce an error in some situations.
  32. If a package is selected for installation (particularly if it is mentioned on the
  33. command line) and it could not be downloaded then it will be silently held back.
  34. Configuration Item: APT::Get::Fix-Missing.
  35.  
  36. --no-download
  37. Disables downloading of packages. This is best used with --ignore-missing to force APT
  38. to use only the .debs it has already downloaded. Configuration Item:
  39. APT::Get::Download.
  40.  
  41. -q, --quiet
  42. Quiet; produces output suitable for logging, omitting progress indicators. More q's
  43. will produce more quiet up to a maximum of 2. You can also use -q=# to set the quiet
  44. level, overriding the configuration file. Note that quiet level 2 implies -y; you
  45. should never use -qq without a no-action modifier such as -d, --print-uris or -s as
  46. APT may decide to do something you did not expect. Configuration Item: quiet.
  47.  
  48. -s, --simulate, --just-print, --dry-run, --recon, --no-act
  49. No action; perform a simulation of events that would occur based on the current system
  50. state but do not actually change the system. Locking will be disabled
  51. (Debug::NoLocking) so the system state could change while apt-get is running.
  52. Simulations can also be executed by non-root users which might not have read access to
  53. all apt configuration distorting the simulation. A notice expressing this warning is
  54. also shown by default for non-root users (APT::Get::Show-User-Simulation-Note).
  55. Configuration Item: APT::Get::Simulate.
  56.  
  57. Simulated runs print out a series of lines, each representing a dpkg operation:
  58. configure (Conf), remove (Remv) or unpack (Inst). Square brackets indicate broken
  59. packages, and empty square brackets indicate breaks that are of no consequence (rare).
  60.  
  61. -y, --yes, --assume-yes
  62. Automatic yes to prompts; assume "yes" as answer to all prompts and run
  63. non-interactively. If an undesirable situation, such as changing a held package,
  64. trying to install a unauthenticated package or removing an essential package occurs
  65. then apt-get will abort. Configuration Item: APT::Get::Assume-Yes.
  66.  
  67. --assume-no
  68. Automatic "no" to all prompts. Configuration Item: APT::Get::Assume-No.
  69.  
  70. --no-show-upgraded
  71. Do not show a list of all packages that are to be upgraded. Configuration Item:
  72. APT::Get::Show-Upgraded.
  73.  
  74. -V, --verbose-versions
  75. Show full versions for upgraded and installed packages. Configuration Item:
  76. APT::Get::Show-Versions.
  77.  
  78. -a, --host-architecture
  79. This option controls the architecture packages are built for by apt-get source
  80. --compile and how cross-builddependencies are satisfied. By default is it not set
  81. which means that the host architecture is the same as the build architecture (which is
  82. defined by APT::Architecture). Configuration Item: APT::Get::Host-Architecture.
  83.  
  84. -P, --build-profiles
  85. This option controls the activated build profiles for which a source package is built
  86. by apt-get source --compile and how build dependencies are satisfied. By default no
  87. build profile is active. More than one build profile can be activated at a time by
  88. concatenating them with a comma. Configuration Item: APT::Build-Profiles.
  89.  
  90. -b, --compile, --build
  91. Compile source packages after downloading them. Configuration Item: APT::Get::Compile.
  92.  
  93. --ignore-hold
  94. Ignore package holds; this causes apt-get to ignore a hold placed on a package. This
  95. may be useful in conjunction with dist-upgrade to override a large number of undesired
  96. holds. Configuration Item: APT::Ignore-Hold.
  97.  
  98. --with-new-pkgs
  99. Allow installing new packages when used in conjunction with upgrade. This is useful if
  100. the update of a installed package requires new dependencies to be installed. Instead
  101. of holding the package back upgrade will upgrade the package and install the new
  102. dependencies. Note that upgrade with this option will never remove packages, only
  103. allow adding new ones. Configuration Item: APT::Get::Upgrade-Allow-New.
  104.  
  105. --no-upgrade
  106. Do not upgrade packages; when used in conjunction with install, no-upgrade will
  107. prevent packages on the command line from being upgraded if they are already
  108. installed. Configuration Item: APT::Get::Upgrade.
  109.  
  110. --only-upgrade
  111. Do not install new packages; when used in conjunction with install, only-upgrade will
  112. install upgrades for already installed packages only and ignore requests to install
  113. new packages. Configuration Item: APT::Get::Only-Upgrade.
  114.  
  115. --allow-downgrades
  116. This is a dangerous option that will cause apt to continue without prompting if it is
  117. doing downgrades. It should not be used except in very special situations. Using it
  118. can potentially destroy your system! Configuration Item: APT::Get::allow-downgrades.
  119. Introduced in APT 1.1.
  120.  
  121. --allow-remove-essential
  122. Force yes; this is a dangerous option that will cause apt to continue without
  123. prompting if it is removing essentials. It should not be used except in very special
  124. situations. Using it can potentially destroy your system! Configuration Item:
  125. APT::Get::allow-remove-essential. Introduced in APT 1.1.
  126.  
  127. --allow-change-held-packages
  128. Force yes; this is a dangerous option that will cause apt to continue without
  129. prompting if it is changing held packages. It should not be used except in very
  130. special situations. Using it can potentially destroy your system! Configuration Item:
  131. APT::Get::allow-change-held-packages. Introduced in APT 1.1.
  132.  
  133. --force-yes
  134. Force yes; this is a dangerous option that will cause apt to continue without
  135. prompting if it is doing something potentially harmful. It should not be used except
  136. in very special situations. Using force-yes can potentially destroy your system!
  137. Configuration Item: APT::Get::force-yes. This is deprecated and replaced by
  138. --allow-unauthenticated , --allow-downgrades , --allow-remove-essential ,
  139. --allow-change-held-packages in 1.1.
  140.  
  141. --print-uris
  142. Instead of fetching the files to install their URIs are printed. Each URI will have
  143. the path, the destination file name, the size and the expected MD5 hash. Note that the
  144. file name to write to will not always match the file name on the remote site! This
  145. also works with the source and update commands. When used with the update command the
  146. MD5 and size are not included, and it is up to the user to decompress any compressed
  147. files. Configuration Item: APT::Get::Print-URIs.
  148.  
  149. --purge
  150. Use purge instead of remove for anything that would be removed. An asterisk ("*") will
  151. be displayed next to packages which are scheduled to be purged. remove --purge is
  152. equivalent to the purge command. Configuration Item: APT::Get::Purge.
  153.  
  154. --reinstall
  155. Re-install packages that are already installed and at the newest version.
  156. Configuration Item: APT::Get::ReInstall.
  157.  
  158. --list-cleanup
  159. This option is on by default; use --no-list-cleanup to turn it off. When it is on,
  160. apt-get will automatically manage the contents of /var/lib/apt/lists to ensure that
  161. obsolete files are erased. The only reason to turn it off is if you frequently change
  162. your sources list. Configuration Item: APT::Get::List-Cleanup.
  163.  
  164. -t, --target-release, --default-release
  165. This option controls the default input to the policy engine; it creates a default pin
  166. at priority 990 using the specified release string. This overrides the general
  167. settings in /etc/apt/preferences. Specifically pinned packages are not affected by the
  168. value of this option. In short, this option lets you have simple control over which
  169. distribution packages will be retrieved from. Some common examples might be -t '2.1*',
  170. -t unstable or -t sid. Configuration Item: APT::Default-Release; see also the
  171. apt_preferences(5) manual page.
  172.  
  173. --trivial-only
  174. Only perform operations that are 'trivial'. Logically this can be considered related
  175. to --assume-yes; where --assume-yes will answer yes to any prompt, --trivial-only will
  176. answer no. Configuration Item: APT::Get::Trivial-Only.
  177.  
  178. --no-remove
  179. If any packages are to be removed apt-get immediately aborts without prompting.
  180. Configuration Item: APT::Get::Remove.
  181.  
  182. --auto-remove, --autoremove
  183. If the command is either install or remove, then this option acts like running the
  184. autoremove command, removing unused dependency packages. Configuration Item:
  185. APT::Get::AutomaticRemove.
  186.  
  187. --only-source
  188. Only has meaning for the source and build-dep commands. Indicates that the given
  189. source names are not to be mapped through the binary table. This means that if this
  190. option is specified, these commands will only accept source package names as
  191. arguments, rather than accepting binary package names and looking up the corresponding
  192. source package. Configuration Item: APT::Get::Only-Source.
  193.  
  194. --diff-only, --dsc-only, --tar-only
  195. Download only the diff, dsc, or tar file of a source archive. Configuration Item:
  196. APT::Get::Diff-Only, APT::Get::Dsc-Only, and APT::Get::Tar-Only.
  197.  
  198. --arch-only
  199. Only process architecture-dependent build-dependencies. Configuration Item:
  200. APT::Get::Arch-Only.
  201.  
  202. --indep-only
  203. Only process architecture-independent build-dependencies. Configuration Item:
  204. APT::Get::Indep-Only.
  205.  
  206. --allow-unauthenticated
  207. Ignore if packages can't be authenticated and don't prompt about it. This can be
  208. useful while working with local repositories, but is a huge security risk if data
  209. authenticity isn't ensured in another way by the user itself. The usage of the Trusted
  210. option for sources.list(5) entries should usually be preferred over this global
  211. override. Configuration Item: APT::Get::AllowUnauthenticated.
  212.  
  213. --no-allow-insecure-repositories
  214. Forbid the update command to acquire unverifiable data from configured sources. APT
  215. will fail at the update command for repositories without valid cryptographically
  216. signatures. See also apt-secure(8) for details on the concept and the implications.
  217. Configuration Item: Acquire::AllowInsecureRepositories.
  218.  
  219. --allow-releaseinfo-change
  220. Allow the update command to continue downloading data from a repository which changed
  221. its information of the release contained in the repository indicating e.g a new major
  222. release. APT will fail at the update command for such repositories until the change is
  223. confirmed to ensure the user is prepared for the change. See also apt-secure(8) for
  224. details on the concept and configuration.
  225.  
  226. Specialist options (--allow-releaseinfo-change-field) exist to allow changes only for
  227. certain fields like origin, label, codename, suite, version and defaultpin. See also
  228. apt_preferences(5). Configuration Item: Acquire::AllowReleaseInfoChange.
  229.  
  230. --show-progress
  231. Show user friendly progress information in the terminal window when packages are
  232. installed, upgraded or removed. For a machine parsable version of this data see
  233. README.progress-reporting in the apt doc directory. Configuration Items:
  234. Dpkg::Progress and Dpkg::Progress-Fancy.
  235.  
  236. --with-source filename
  237. Adds the given file as a source for metadata. Can be repeated to add multiple files.
  238. See --with-source description in apt-cache(8) for further details.
  239.  
  240. -h, --help
  241. Show a short usage summary.
  242.  
  243. -v, --version
  244. Show the program version.
  245.  
  246. -c, --config-file
  247. Configuration File; Specify a configuration file to use. The program will read the
  248. default configuration file and then this configuration file. If configuration settings
  249. need to be set before the default configuration files are parsed specify a file with
  250. the APT_CONFIG environment variable. See apt.conf(5) for syntax information.
  251.  
  252. -o, --option
  253. Set a Configuration Option; This will set an arbitrary configuration option. The
  254. syntax is -o Foo::Bar=bar. -o and --option can be used multiple times to set
  255. different options.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement