1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the apt-doc package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
9 "Project-Id-Version: apt-doc 0.9.8.1\n"
10 "Report-Msgid-Bugs-To: APT Development Team <deity@lists.debian.org>\n"
11 "POT-Creation-Date: 2013-06-13 13:46+0300\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
24 "<!ENTITY apt-author.team \"\n"
26 " <othername>APT team</othername>\n"
27 " <contrib></contrib>\n"
36 "<!ENTITY apt-qapage \"\n"
38 "\t\t<ulink url='http://packages.qa.debian.org/a/apt.html'>QA Page</ulink>\n"
47 "<!-- Boiler plate Bug reporting section -->\n"
48 "<!ENTITY manbugs \"\n"
49 " <refsect1><title>Bugs</title>\n"
50 " <para><ulink url='http://bugs.debian.org/src:apt'>APT bug page</ulink>.\n"
51 " If you wish to report a bug in APT, please see\n"
52 " <filename>/usr/share/doc/debian/bug-reporting.txt</filename> or the\n"
53 " &reportbug; command.\n"
63 "<!-- Boiler plate Author section -->\n"
64 "<!ENTITY manauthor \"\n"
65 " <refsect1><title>Author</title>\n"
66 " <para>APT was written by the APT team "
67 "<email>apt@packages.debian.org</email>.\n"
77 "<!-- Should be used within the option section of the text to\n"
78 " put in the blurb about -h, -v, -c and -o -->\n"
79 "<!ENTITY apt-commonoptions \"\n"
80 " <varlistentry><term><option>-h</option></term>\n"
81 " <term><option>--help</option></term>\n"
82 " <listitem><para>Show a short usage summary.\n"
93 " <term><option>-v</option></term>\n"
94 " <term><option>--version</option></term>\n"
95 " <listitem><para>Show the program version.\n"
106 " <term><option>-c</option></term>\n"
107 " <term><option>--config-file</option></term>\n"
108 " <listitem><para>Configuration File; Specify a configuration file to "
110 " The program will read the default configuration file and then this \n"
111 " configuration file. If configuration settings need to be set before "
113 " default configuration files are parsed specify a file with the "
114 "<envar>APT_CONFIG</envar>\n"
115 " environment variable. See &apt-conf; for syntax information.\n"
126 " <term><option>-o</option></term>\n"
127 " <term><option>--option</option></term>\n"
128 " <listitem><para>Set a Configuration Option; This will set an "
130 " configuration option. The syntax is <option>-o "
131 "Foo::Bar=bar</option>.\n"
132 " <option>-o</option> and <option>--option</option> can be used "
134 " times to set different options.\n"
145 "<!-- Should be used within the option section of the text to\n"
146 " put in the blurb about -h, -v, -c and -o -->\n"
147 "<!ENTITY apt-cmdblurb \"\n"
148 " <para>All command line options may be set using the configuration file, "
150 " descriptions indicate the configuration option to set. For boolean\n"
151 " options you can override the config file by using something like \n"
152 " <option>-f-</option>,<option>--no-f</option>, <option>-f=no</option>\n"
153 " or several other variations.\n"
162 "<!ENTITY file-aptconf \"\n"
163 " <varlistentry><term><filename>/etc/apt/apt.conf</filename></term>\n"
164 " <listitem><para>APT configuration file.\n"
165 " Configuration Item: "
166 "<literal>Dir::Etc::Main</literal>.</para></listitem>\n"
174 " <varlistentry><term><filename>/etc/apt/apt.conf.d/</filename></term>\n"
175 " <listitem><para>APT configuration file fragments.\n"
176 " Configuration Item: "
177 "<literal>Dir::Etc::Parts</literal>.</para></listitem>\n"
186 "<!ENTITY file-cachearchives \"\n"
187 " <varlistentry><term><filename>&cachedir;/archives/</filename></term>\n"
188 " <listitem><para>Storage area for retrieved package files.\n"
189 " Configuration Item: "
190 "<literal>Dir::Cache::Archives</literal>.</para></listitem>\n"
199 "<varlistentry><term><filename>&cachedir;/archives/partial/</filename></term>\n"
200 " <listitem><para>Storage area for package files in transit.\n"
201 " Configuration Item: <literal>Dir::Cache::Archives</literal> "
202 "(<filename>partial</filename> will be implicitly "
203 "appended)</para></listitem>\n"
212 "<!ENTITY file-preferences \"\n"
213 " <varlistentry><term><filename>/etc/apt/preferences</filename></term>\n"
214 " <listitem><para>Version preferences file.\n"
215 " This is where you would specify "pinning",\n"
216 " i.e. a preference to get certain packages\n"
217 " from a separate source\n"
218 " or from a different version of a distribution.\n"
219 " Configuration Item: "
220 "<literal>Dir::Etc::Preferences</literal>.</para></listitem>\n"
229 "<varlistentry><term><filename>/etc/apt/preferences.d/</filename></term>\n"
230 " <listitem><para>File fragments for the version preferences.\n"
231 " Configuration Item: "
232 "<literal>Dir::Etc::PreferencesParts</literal>.</para></listitem>\n"
241 "<!ENTITY file-sourceslist \"\n"
242 " <varlistentry><term><filename>/etc/apt/sources.list</filename></term>\n"
243 " <listitem><para>Locations to fetch packages from.\n"
244 " Configuration Item: "
245 "<literal>Dir::Etc::SourceList</literal>.</para></listitem>\n"
254 "<varlistentry><term><filename>/etc/apt/sources.list.d/</filename></term>\n"
255 " <listitem><para>File fragments for locations to fetch packages from.\n"
256 " Configuration Item: "
257 "<literal>Dir::Etc::SourceParts</literal>.</para></listitem>\n"
266 "<!ENTITY file-statelists \"\n"
267 " <varlistentry><term><filename>&statedir;/lists/</filename></term>\n"
268 " <listitem><para>Storage area for state information for each package "
269 "resource specified in\n"
271 " Configuration Item: "
272 "<literal>Dir::State::Lists</literal>.</para></listitem>\n"
281 "<varlistentry><term><filename>&statedir;/lists/partial/</filename></term>\n"
282 " <listitem><para>Storage area for state information in transit.\n"
283 " Configuration Item: <literal>Dir::State::Lists</literal> "
284 "(<filename>partial</filename> will be implicitly "
285 "appended)</para></listitem>\n"
294 "<!ENTITY file-trustedgpg \"\n"
295 " <varlistentry><term><filename>/etc/apt/trusted.gpg</filename></term>\n"
296 " <listitem><para>Keyring of local trusted keys, new keys will be added "
298 " Configuration Item: "
299 "<literal>Dir::Etc::Trusted</literal>.</para></listitem>\n"
308 "<varlistentry><term><filename>/etc/apt/trusted.gpg.d/</filename></term>\n"
309 " <listitem><para>File fragments for the trusted keys, additional "
311 " be stored here (by other packages or the administrator).\n"
312 " Configuration Item "
313 "<literal>Dir::Etc::TrustedParts</literal>.</para></listitem>\n"
322 "<!ENTITY file-extended_states \"\n"
324 "<varlistentry><term><filename>/var/lib/apt/extended_states</filename></term>\n"
325 " <listitem><para>Status list of auto-installed packages.\n"
326 " Configuration Item: <literal>Dir::State::extended_states</literal>.\n"
327 " </para></listitem>\n"
336 "<!-- TRANSLATOR: This is the section header for the following paragraphs - "
338 " to the other headers like NAME and DESCRIPTION and should therefore be "
340 "<!ENTITY translation-title \"TRANSLATION\">\n"
347 "<!-- TRANSLATOR: This is a placeholder. You should write here who has "
349 " to the translation in the past, who is responsible now and maybe "
350 "further information\n"
351 " specially related to your translation. -->\n"
352 "<!ENTITY translation-holder \"\n"
353 " The english translation was done by John Doe "
354 "<email>john@doe.org</email> in 2009,\n"
355 " 2010 and Daniela Acme <email>daniela@acme.us</email> in 2010 together "
357 " Debian Dummy l10n Team "
358 "<email>debian-l10n-dummy@lists.debian.org</email>.\n"
366 "<!-- TRANSLATOR: As a translation is allowed to have 20% of "
367 "untranslated/fuzzy strings\n"
368 " in a shipped manpage newer/modified paragraphs will maybe appear in "
370 " the generated manpage. This sentence is therefore here to tell the "
372 " is not a mistake by the translator - obviously the target is that at "
374 " releases this sentence is not needed. :) -->\n"
375 "<!ENTITY translation-english \"\n"
376 " Note that this translated document may contain untranslated parts.\n"
377 " This is done on purpose, to avoid losing content when the\n"
378 " translation is lagging behind the original content.\n"
385 "<!-- TRANSLATOR: used as in -o=config_string "
386 "e.g. -o=Debug::pkgProblemResolver=1 --> <!ENTITY synopsis-config-string "
393 "<!-- TRANSLATOR: used as in -c=config_file e.g. -c=./apt.conf --> <!ENTITY "
394 "synopsis-config-file \"config_file\">"
400 "<!-- TRANSLATOR: used as in -t=target_release or pkg/target_release "
401 "e.g. -t=squeeze apt/experimental --> <!ENTITY synopsis-target-release "
402 "\"target_release\">"
408 "<!-- TRANSLATOR: used as in -a=architecture e.g. -a=armel --> <!ENTITY "
409 "synopsis-architecture \"architecture\">"
415 "<!-- TRANSLATOR: used as in apt-get install pkg e.g. apt-get install awesome "
416 "--> <!ENTITY synopsis-pkg \"pkg\">"
422 "<!-- TRANSLATOR: used as in pkg=pkg_version_number e.g. apt=0.8.15 --> "
423 "<!ENTITY synopsis-pkg-ver-number \"pkg_version_number\">"
429 "<!-- TRANSLATOR: used as in apt-cache pkgnames prefix e.g. apt-cache "
430 "pkgnames apt --> <!ENTITY synopsis-prefix \"prefix\">"
436 "<!-- TRANSLATOR: used as in apt-cache search regex e.g. apt-cache search "
437 "awesome --> <!ENTITY synopsis-regex \"regex\">"
443 "<!-- TRANSLATOR: used as in apt-cdrom -d=cdrom_mount_point e.g. apt-cdrom "
444 "-d=/media/cdrom --> <!ENTITY synopsis-cdrom-mount \"cdrom_mount_point\">"
450 "<!-- TRANSLATOR: used as in apt-extracttemplates -t=temporary_directory "
451 "e.g. apt-extracttemplates -t=/tmp --> <!ENTITY synopsis-tmp-directory "
452 "\"temporary_directory\">"
458 "<!-- TRANSLATOR: used as in apt-extracttemplates filename --> <!ENTITY "
459 "synopsis-filename \"filename\">"
465 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
466 "packages path override-file pathprefix --> <!ENTITY synopsis-path \"path\">"
472 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
473 "packages path override-file pathprefix --> <!ENTITY synopsis-override "
480 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
481 "packages path override-file pathprefix --> <!ENTITY synopsis-pathprefix "
488 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
489 "generate section --> <!ENTITY synopsis-section \"section\">"
495 "<!-- TRANSLATOR: used as in apt-key export keyid e.g. apt-key export "
496 "473041FA --> <!ENTITY synopsis-keyid \"keyid\">"
499 #. type: Content of: <refentry><refmeta><manvolnum>
500 #: apt-get.8.xml:26 apt-cache.8.xml:26 apt-key.8.xml:25 apt-mark.8.xml:26 apt-secure.8.xml:25 apt-cdrom.8.xml:25 apt-config.8.xml:26
504 #. type: Content of: <refentry><refmeta><refmiscinfo>
505 #: apt-get.8.xml:27 apt-cache.8.xml:27 apt-key.8.xml:26 apt-mark.8.xml:27 apt-secure.8.xml:26 apt-cdrom.8.xml:26 apt-config.8.xml:27 apt.conf.5.xml:32 apt_preferences.5.xml:26 sources.list.5.xml:27 apt-extracttemplates.1.xml:27 apt-sortpkgs.1.xml:27 apt-ftparchive.1.xml:27
509 #. type: Content of: <refentry><refnamediv><refpurpose>
511 msgid "APT package handling utility -- command-line interface"
514 #. type: Content of: <refentry><refsect1><title>
515 #: apt-get.8.xml:38 apt-cache.8.xml:38 apt-key.8.xml:37 apt-mark.8.xml:38 apt-secure.8.xml:50 apt-cdrom.8.xml:37 apt-config.8.xml:38 apt.conf.5.xml:41 apt_preferences.5.xml:36 sources.list.5.xml:36 apt-extracttemplates.1.xml:38 apt-sortpkgs.1.xml:38 apt-ftparchive.1.xml:38
519 #. type: Content of: <refentry><refsect1><para>
522 "<command>apt-get</command> is the command-line tool for handling packages, "
523 "and may be considered the user's \"back-end\" to other tools using the APT "
524 "library. Several \"front-end\" interfaces exist, such as &dselect;, "
525 "&aptitude;, &synaptic; and &wajig;."
528 #. type: Content of: <refentry><refsect1><para>
529 #: apt-get.8.xml:44 apt-cache.8.xml:44 apt-cdrom.8.xml:51 apt-config.8.xml:44 apt-ftparchive.1.xml:54
531 "Unless the <option>-h</option>, or <option>--help</option> option is given, "
532 "one of the commands below must be present."
535 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
538 "<literal>update</literal> is used to resynchronize the package index files "
539 "from their sources. The indexes of available packages are fetched from the "
540 "location(s) specified in <filename>/etc/apt/sources.list</filename>. For "
541 "example, when using a Debian archive, this command retrieves and scans the "
542 "<filename>Packages.gz</filename> files, so that information about new and "
543 "updated packages is available. An <literal>update</literal> should always be "
544 "performed before an <literal>upgrade</literal> or "
545 "<literal>dist-upgrade</literal>. Please be aware that the overall progress "
546 "meter will be incorrect as the size of the package files cannot be known in "
550 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
553 "<literal>upgrade</literal> is used to install the newest versions of all "
554 "packages currently installed on the system from the sources enumerated in "
555 "<filename>/etc/apt/sources.list</filename>. Packages currently installed "
556 "with new versions available are retrieved and upgraded; under no "
557 "circumstances are currently installed packages removed, or packages not "
558 "already installed retrieved and installed. New versions of currently "
559 "installed packages that cannot be upgraded without changing the install "
560 "status of another package will be left at their current version. An "
561 "<literal>update</literal> must be performed first so that "
562 "<command>apt-get</command> knows that new versions of packages are "
566 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
569 "<literal>dist-upgrade</literal> in addition to performing the function of "
570 "<literal>upgrade</literal>, also intelligently handles changing dependencies "
571 "with new versions of packages; <command>apt-get</command> has a \"smart\" "
572 "conflict resolution system, and it will attempt to upgrade the most "
573 "important packages at the expense of less important ones if necessary. The "
574 "<literal>dist-upgrade</literal> command may therefore remove some packages. "
575 "The <filename>/etc/apt/sources.list</filename> file contains a list of "
576 "locations from which to retrieve desired package files. See also "
577 "&apt-preferences; for a mechanism for overriding the general settings for "
578 "individual packages."
581 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
584 "<literal>dselect-upgrade</literal> is used in conjunction with the "
585 "traditional Debian packaging front-end, "
586 "&dselect;. <literal>dselect-upgrade</literal> follows the changes made by "
587 "&dselect; to the <literal>Status</literal> field of available packages, and "
588 "performs the actions necessary to realize that state (for instance, the "
589 "removal of old and the installation of new packages)."
592 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
595 "<literal>install</literal> is followed by one or more packages desired for "
596 "installation or upgrading. Each package is a package name, not a fully "
597 "qualified filename (for instance, in a Debian system, "
598 "<package>apt-utils</package> would be the argument provided, not "
599 "<filename>apt-utils_&apt-product-version;_amd64.deb</filename>). All "
600 "packages required by the package(s) specified for installation will also be "
601 "retrieved and installed. The <filename>/etc/apt/sources.list</filename> "
602 "file is used to locate the desired packages. If a hyphen is appended to the "
603 "package name (with no intervening space), the identified package will be "
604 "removed if it is installed. Similarly a plus sign can be used to designate "
605 "a package to install. These latter features may be used to override "
606 "decisions made by apt-get's conflict resolution system."
609 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
612 "A specific version of a package can be selected for installation by "
613 "following the package name with an equals and the version of the package to "
614 "select. This will cause that version to be located and selected for "
615 "install. Alternatively a specific distribution can be selected by following "
616 "the package name with a slash and the version of the distribution or the "
617 "Archive name (stable, testing, unstable)."
620 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
623 "Both of the version selection mechanisms can downgrade packages and must be "
627 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
630 "This is also the target to use if you want to upgrade one or more "
631 "already-installed packages without upgrading every package you have on your "
632 "system. Unlike the \"upgrade\" target, which installs the newest version of "
633 "all currently installed packages, \"install\" will install the newest "
634 "version of only the package(s) specified. Simply provide the name of the "
635 "package(s) you wish to upgrade, and if a newer version is available, it (and "
636 "its dependencies, as described above) will be downloaded and installed."
639 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
642 "Finally, the &apt-preferences; mechanism allows you to create an alternative "
643 "installation policy for individual packages."
646 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
649 "If no package matches the given expression and the expression contains one "
650 "of '.', '?' or '*' then it is assumed to be a POSIX regular expression, and "
651 "it is applied to all package names in the database. Any matches are then "
652 "installed (or removed). Note that matching is done by substring so 'lo.*' "
653 "matches 'how-lo' and 'lowest'. If this is undesired, anchor the regular "
654 "expression with a '^' or '$' character, or create a more specific regular "
658 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
661 "<literal>remove</literal> is identical to <literal>install</literal> except "
662 "that packages are removed instead of installed. Note that removing a package "
663 "leaves its configuration files on the system. If a plus sign is appended to "
664 "the package name (with no intervening space), the identified package will be "
665 "installed instead of removed."
668 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
671 "<literal>purge</literal> is identical to <literal>remove</literal> except "
672 "that packages are removed and purged (any configuration files are deleted "
676 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
679 "<literal>source</literal> causes <command>apt-get</command> to fetch source "
680 "packages. APT will examine the available packages to decide which source "
681 "package to fetch. It will then find and download into the current directory "
682 "the newest available version of that source package while respecting the "
683 "default release, set with the option "
684 "<literal>APT::Default-Release</literal>, the <option>-t</option> option or "
685 "per package with the <literal>pkg/release</literal> syntax, if possible."
688 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
691 "Source packages are tracked separately from binary packages via "
692 "<literal>deb-src</literal> lines in the &sources-list; file. This means that "
693 "you will need to add such a line for each repository you want to get sources "
694 "from; otherwise you will probably get either the wrong (too old/too new) "
695 "source versions or none at all."
698 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
701 "If the <option>--compile</option> option is specified then the package will "
702 "be compiled to a binary .deb using <command>dpkg-buildpackage</command> for "
703 "the architecture as defined by the <command>--host-architecture</command> "
704 "option. If <option>--download-only</option> is specified then the source "
705 "package will not be unpacked."
708 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
711 "A specific source version can be retrieved by postfixing the source name "
712 "with an equals and then the version to fetch, similar to the mechanism used "
713 "for the package files. This enables exact matching of the source package "
714 "name and version, implicitly enabling the "
715 "<literal>APT::Get::Only-Source</literal> option."
718 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
721 "Note that source packages are not installed and tracked in the "
722 "<command>dpkg</command> database like binary packages; they are simply "
723 "downloaded to the current directory, like source tarballs."
726 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
729 "<literal>build-dep</literal> causes apt-get to install/remove packages in an "
730 "attempt to satisfy the build dependencies for a source package. By default "
731 "the dependencies are satisfied to build the package natively. If desired a "
732 "host-architecture can be specified with the "
733 "<option>--host-architecture</option> option instead."
736 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
739 "<literal>check</literal> is a diagnostic tool; it updates the package cache "
740 "and checks for broken dependencies."
743 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
746 "<literal>download</literal> will download the given binary package into the "
750 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
753 "<literal>clean</literal> clears out the local repository of retrieved "
754 "package files. It removes everything but the lock file from "
755 "<filename>&cachedir;/archives/</filename> and "
756 "<filename>&cachedir;/archives/partial/</filename>. When APT is used as a "
757 "&dselect; method, <literal>clean</literal> is run automatically. Those who "
758 "do not use dselect will likely want to run <literal>apt-get clean</literal> "
759 "from time to time to free up disk space."
762 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
765 "Like <literal>clean</literal>, <literal>autoclean</literal> clears out the "
766 "local repository of retrieved package files. The difference is that it only "
767 "removes package files that can no longer be downloaded, and are largely "
768 "useless. This allows a cache to be maintained over a long period without it "
769 "growing out of control. The configuration option "
770 "<literal>APT::Clean-Installed</literal> will prevent installed packages from "
771 "being erased if it is set to off."
774 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
777 "<literal>autoremove</literal> is used to remove packages that were "
778 "automatically installed to satisfy dependencies for other packages and are "
779 "now no longer needed."
782 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
785 "<literal>changelog</literal> downloads a package changelog and displays it "
786 "through <command>sensible-pager</command>. The server name and base "
787 "directory is defined in the <literal>APT::Changelogs::Server</literal> "
788 "variable (e.g. <ulink "
789 "url=\"http://packages.debian.org/changelogs\">packages.debian.org/changelogs</ulink> "
790 "for Debian or <ulink "
791 "url=\"http://changelogs.ubuntu.com/changelogs\">changelogs.ubuntu.com/changelogs</ulink> "
792 "for Ubuntu). By default it displays the changelog for the version that is "
793 "installed. However, you can specify the same options as for the "
794 "<option>install</option> command."
797 #. type: Content of: <refentry><refsect1><title>
798 #: apt-get.8.xml:258 apt-cache.8.xml:248 apt-mark.8.xml:108 apt-config.8.xml:84 apt-extracttemplates.1.xml:52 apt-sortpkgs.1.xml:48 apt-ftparchive.1.xml:504
802 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
805 "Do not consider recommended packages as a dependency for installing. "
806 "Configuration Item: <literal>APT::Install-Recommends</literal>."
809 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
812 "Consider suggested packages as a dependency for installing. Configuration "
813 "Item: <literal>APT::Install-Suggests</literal>."
816 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
819 "Download only; package files are only retrieved, not unpacked or installed. "
820 "Configuration Item: <literal>APT::Get::Download-Only</literal>."
823 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
826 "Fix; attempt to correct a system with broken dependencies in place. This "
827 "option, when used with install/remove, can omit any packages to permit APT "
828 "to deduce a likely solution. If packages are specified, these have to "
829 "completely correct the problem. The option is sometimes necessary when "
830 "running APT for the first time; APT itself does not allow broken package "
831 "dependencies to exist on a system. It is possible that a system's dependency "
832 "structure can be so corrupt as to require manual intervention (which usually "
833 "means using &dselect; or <command>dpkg --remove</command> to eliminate some "
834 "of the offending packages). Use of this option together with "
835 "<option>-m</option> may produce an error in some situations. Configuration "
836 "Item: <literal>APT::Get::Fix-Broken</literal>."
839 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
842 "Ignore missing packages; if packages cannot be retrieved or fail the "
843 "integrity check after retrieval (corrupted package files), hold back those "
844 "packages and handle the result. Use of this option together with "
845 "<option>-f</option> may produce an error in some situations. If a package is "
846 "selected for installation (particularly if it is mentioned on the command "
847 "line) and it could not be downloaded then it will be silently held back. "
848 "Configuration Item: <literal>APT::Get::Fix-Missing</literal>."
851 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
854 "Disables downloading of packages. This is best used with "
855 "<option>--ignore-missing</option> to force APT to use only the .debs it has "
856 "already downloaded. Configuration Item: "
857 "<literal>APT::Get::Download</literal>."
860 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
863 "Quiet; produces output suitable for logging, omitting progress indicators. "
864 "More q's will produce more quiet up to a maximum of 2. You can also use "
865 "<option>-q=#</option> to set the quiet level, overriding the configuration "
866 "file. Note that quiet level 2 implies <option>-y</option>; you should never "
867 "use -qq without a no-action modifier such as -d, --print-uris or -s as APT "
868 "may decide to do something you did not expect. Configuration Item: "
869 "<literal>quiet</literal>."
872 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
875 "No action; perform a simulation of events that would occur but do not "
876 "actually change the system. Configuration Item: "
877 "<literal>APT::Get::Simulate</literal>."
880 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
883 "Simulated runs performed as a user will automatically deactivate locking "
884 "(<literal>Debug::NoLocking</literal>), and if the option "
885 "<literal>APT::Get::Show-User-Simulation-Note</literal> is set (as it is by "
886 "default) a notice will also be displayed indicating that this is only a "
887 "simulation. Runs performed as root do not trigger either NoLocking or the "
888 "notice - superusers should know what they are doing without further warnings "
889 "from <literal>apt-get</literal>."
892 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
895 "Simulated runs print out a series of lines, each representing a "
896 "<command>dpkg</command> operation: configure (<literal>Conf</literal>), "
897 "remove (<literal>Remv</literal>) or unpack "
898 "(<literal>Inst</literal>). Square brackets indicate broken packages, and "
899 "empty square brackets indicate breaks that are of no consequence (rare)."
902 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
905 "Automatic yes to prompts; assume \"yes\" as answer to all prompts and run "
906 "non-interactively. If an undesirable situation, such as changing a held "
907 "package, trying to install a unauthenticated package or removing an "
908 "essential package occurs then <literal>apt-get</literal> will abort. "
909 "Configuration Item: <literal>APT::Get::Assume-Yes</literal>."
912 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
915 "Automatic \"no\" to all prompts. Configuration Item: "
916 "<literal>APT::Get::Assume-No</literal>."
919 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
922 "Show upgraded packages; print out a list of all packages that are to be "
923 "upgraded. Configuration Item: <literal>APT::Get::Show-Upgraded</literal>."
926 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
929 "Show full versions for upgraded and installed packages. Configuration Item: "
930 "<literal>APT::Get::Show-Versions</literal>."
933 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
936 "This option controls the architecture packages are built for by "
937 "<command>apt-get source --compile</command> and how cross-builddependencies "
938 "are satisfied. By default is it not set which means that the host "
939 "architecture is the same as the build architecture (which is defined by "
940 "<literal>APT::Architecture</literal>). Configuration Item: "
941 "<literal>APT::Get::Host-Architecture</literal>"
944 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
947 "Compile source packages after downloading them. Configuration Item: "
948 "<literal>APT::Get::Compile</literal>."
951 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
954 "Ignore package holds; this causes <command>apt-get</command> to ignore a "
955 "hold placed on a package. This may be useful in conjunction with "
956 "<literal>dist-upgrade</literal> to override a large number of undesired "
957 "holds. Configuration Item: <literal>APT::Ignore-Hold</literal>."
960 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
963 "Do not upgrade packages; when used in conjunction with "
964 "<literal>install</literal>, <literal>no-upgrade</literal> will prevent "
965 "packages on the command line from being upgraded if they are already "
966 "installed. Configuration Item: <literal>APT::Get::Upgrade</literal>."
969 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
972 "Do not install new packages; when used in conjunction with "
973 "<literal>install</literal>, <literal>only-upgrade</literal> will install "
974 "upgrades for already installed packages only and ignore requests to install "
975 "new packages. Configuration Item: "
976 "<literal>APT::Get::Only-Upgrade</literal>."
979 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
982 "Force yes; this is a dangerous option that will cause apt to continue "
983 "without prompting if it is doing something potentially harmful. It should "
984 "not be used except in very special situations. Using "
985 "<literal>force-yes</literal> can potentially destroy your system! "
986 "Configuration Item: <literal>APT::Get::force-yes</literal>."
989 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
992 "Instead of fetching the files to install their URIs are printed. Each URI "
993 "will have the path, the destination file name, the size and the expected MD5 "
994 "hash. Note that the file name to write to will not always match the file "
995 "name on the remote site! This also works with the <literal>source</literal> "
996 "and <literal>update</literal> commands. When used with the "
997 "<literal>update</literal> command the MD5 and size are not included, and it "
998 "is up to the user to decompress any compressed files. Configuration Item: "
999 "<literal>APT::Get::Print-URIs</literal>."
1002 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1003 #: apt-get.8.xml:427
1005 "Use purge instead of remove for anything that would be removed. An asterisk "
1006 "(\"*\") will be displayed next to packages which are scheduled to be "
1007 "purged. <option>remove --purge</option> is equivalent to the "
1008 "<option>purge</option> command. Configuration Item: "
1009 "<literal>APT::Get::Purge</literal>."
1012 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1013 #: apt-get.8.xml:435
1015 "Re-install packages that are already installed and at the newest version. "
1016 "Configuration Item: <literal>APT::Get::ReInstall</literal>."
1019 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1020 #: apt-get.8.xml:440
1022 "This option is on by default; use <literal>--no-list-cleanup</literal> to "
1023 "turn it off. When it is on, <command>apt-get</command> will automatically "
1024 "manage the contents of <filename>&statedir;/lists</filename> to ensure that "
1025 "obsolete files are erased. The only reason to turn it off is if you "
1026 "frequently change your sources list. Configuration Item: "
1027 "<literal>APT::Get::List-Cleanup</literal>."
1030 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1031 #: apt-get.8.xml:450
1033 "This option controls the default input to the policy engine; it creates a "
1034 "default pin at priority 990 using the specified release string. This "
1035 "overrides the general settings in "
1036 "<filename>/etc/apt/preferences</filename>. Specifically pinned packages are "
1037 "not affected by the value of this option. In short, this option lets you "
1038 "have simple control over which distribution packages will be retrieved "
1039 "from. Some common examples might be <option>-t '2.1*'</option>, <option>-t "
1040 "unstable</option> or <option>-t sid</option>. Configuration Item: "
1041 "<literal>APT::Default-Release</literal>; see also the &apt-preferences; "
1045 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1046 #: apt-get.8.xml:465
1048 "Only perform operations that are 'trivial'. Logically this can be considered "
1049 "related to <option>--assume-yes</option>; where "
1050 "<option>--assume-yes</option> will answer yes to any prompt, "
1051 "<option>--trivial-only</option> will answer no. Configuration Item: "
1052 "<literal>APT::Get::Trivial-Only</literal>."
1055 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1056 #: apt-get.8.xml:472
1058 "If any packages are to be removed apt-get immediately aborts without "
1059 "prompting. Configuration Item: <literal>APT::Get::Remove</literal>."
1062 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1063 #: apt-get.8.xml:478
1065 "If the command is either <literal>install</literal> or "
1066 "<literal>remove</literal>, then this option acts like running the "
1067 "<literal>autoremove</literal> command, removing unused dependency "
1068 "packages. Configuration Item: <literal>APT::Get::AutomaticRemove</literal>."
1071 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1072 #: apt-get.8.xml:485
1074 "Only has meaning for the <literal>source</literal> and "
1075 "<literal>build-dep</literal> commands. Indicates that the given source "
1076 "names are not to be mapped through the binary table. This means that if "
1077 "this option is specified, these commands will only accept source package "
1078 "names as arguments, rather than accepting binary package names and looking "
1079 "up the corresponding source package. Configuration Item: "
1080 "<literal>APT::Get::Only-Source</literal>."
1083 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1084 #: apt-get.8.xml:496
1086 "Download only the diff, dsc, or tar file of a source archive. Configuration "
1087 "Item: <literal>APT::Get::Diff-Only</literal>, "
1088 "<literal>APT::Get::Dsc-Only</literal>, and "
1089 "<literal>APT::Get::Tar-Only</literal>."
1092 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1093 #: apt-get.8.xml:502
1095 "Only process architecture-dependent build-dependencies. Configuration Item: "
1096 "<literal>APT::Get::Arch-Only</literal>."
1099 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1100 #: apt-get.8.xml:507
1102 "Ignore if packages can't be authenticated and don't prompt about it. This "
1103 "is useful for tools like pbuilder. Configuration Item: "
1104 "<literal>APT::Get::AllowUnauthenticated</literal>."
1107 #. type: Content of: <refentry><refsect1><title>
1108 #: apt-get.8.xml:518 apt-cache.8.xml:343 apt-key.8.xml:174 apt-mark.8.xml:125 apt.conf.5.xml:1167 apt_preferences.5.xml:698
1112 #. type: Content of: <refentry><refsect1><title>
1113 #: apt-get.8.xml:528 apt-cache.8.xml:350 apt-key.8.xml:195 apt-mark.8.xml:131 apt-secure.8.xml:191 apt-cdrom.8.xml:144 apt-config.8.xml:109 apt.conf.5.xml:1173 apt_preferences.5.xml:705 sources.list.5.xml:252 apt-extracttemplates.1.xml:70 apt-sortpkgs.1.xml:63 apt-ftparchive.1.xml:607
1117 #. type: Content of: <refentry><refsect1><para>
1118 #: apt-get.8.xml:529
1120 "&apt-cache;, &apt-cdrom;, &dpkg;, &dselect;, &sources-list;, &apt-conf;, "
1121 "&apt-config;, &apt-secure;, The APT User's guide in &guidesdir;, "
1122 "&apt-preferences;, the APT Howto."
1125 #. type: Content of: <refentry><refsect1><title>
1126 #: apt-get.8.xml:534 apt-cache.8.xml:355 apt-mark.8.xml:135 apt-cdrom.8.xml:149 apt-config.8.xml:114 apt-extracttemplates.1.xml:74 apt-sortpkgs.1.xml:67 apt-ftparchive.1.xml:611
1130 #. type: Content of: <refentry><refsect1><para>
1131 #: apt-get.8.xml:535
1133 "<command>apt-get</command> returns zero on normal operation, decimal 100 on "
1137 #. type: Content of: <refentry><refnamediv><refpurpose>
1138 #: apt-cache.8.xml:33
1139 msgid "query the APT cache"
1142 #. type: Content of: <refentry><refsect1><para>
1143 #: apt-cache.8.xml:39
1145 "<command>apt-cache</command> performs a variety of operations on APT's "
1146 "package cache. <command>apt-cache</command> does not manipulate the state of "
1147 "the system but does provide operations to search and generate interesting "
1148 "output from the package metadata."
1151 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1152 #: apt-cache.8.xml:49
1154 "<literal>gencaches</literal> creates APT's package cache. This is done "
1155 "implicitly by all commands needing this cache if it is missing or outdated."
1158 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option><replaceable>
1159 #: apt-cache.8.xml:53 apt-cache.8.xml:142 apt-cache.8.xml:163 apt-cache.8.xml:185 apt-cache.8.xml:190 apt-cache.8.xml:206 apt-cache.8.xml:224 apt-cache.8.xml:236
1160 msgid "&synopsis-pkg;"
1163 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1164 #: apt-cache.8.xml:54
1166 "<literal>showpkg</literal> displays information about the packages listed on "
1167 "the command line. Remaining arguments are package names. The available "
1168 "versions and reverse dependencies of each package listed are listed, as well "
1169 "as forward dependencies for each version. Forward (normal) dependencies are "
1170 "those packages upon which the package in question depends; reverse "
1171 "dependencies are those packages that depend upon the package in "
1172 "question. Thus, forward dependencies must be satisfied for a package, but "
1173 "reverse dependencies need not be. For instance, <command>apt-cache showpkg "
1174 "libreadline2</command> would produce output similar to the following:"
1177 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><informalexample><programlisting>
1178 #: apt-cache.8.xml:66
1181 "Package: libreadline2\n"
1182 "Versions: 2.1-12(/var/state/apt/lists/foo_Packages),\n"
1183 "Reverse Depends: \n"
1184 " libreadlineg2,libreadline2\n"
1185 " libreadline2-altdev,libreadline2\n"
1187 "2.1-12 - libc5 (2 5.4.0-0) ncurses3.0 (0 (null))\n"
1190 "Reverse Provides: \n"
1193 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1194 #: apt-cache.8.xml:78
1196 "Thus it may be seen that libreadline2, version 2.1-12, depends on libc5 and "
1197 "ncurses3.0 which must be installed for libreadline2 to work. In turn, "
1198 "libreadlineg2 and libreadline2-altdev depend on libreadline2. If "
1199 "libreadline2 is installed, libc5 and ncurses3.0 (and ldso) must also be "
1200 "installed; libreadlineg2 and libreadline2-altdev do not have to be "
1201 "installed. For the specific meaning of the remainder of the output it is "
1202 "best to consult the apt source code."
1205 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1206 #: apt-cache.8.xml:87
1208 "<literal>stats</literal> displays some statistics about the cache. No "
1209 "further arguments are expected. Statistics reported are:"
1212 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1213 #: apt-cache.8.xml:90
1215 "<literal>Total package names</literal> is the number of package names found "
1219 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1220 #: apt-cache.8.xml:94
1222 "<literal>Normal packages</literal> is the number of regular, ordinary "
1223 "package names; these are packages that bear a one-to-one correspondence "
1224 "between their names and the names used by other packages for them in "
1225 "dependencies. The majority of packages fall into this category."
1228 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1229 #: apt-cache.8.xml:100
1231 "<literal>Pure virtual packages</literal> is the number of packages that "
1232 "exist only as a virtual package name; that is, packages only \"provide\" the "
1233 "virtual package name, and no package actually uses the name. For instance, "
1234 "\"mail-transport-agent\" in the Debian system is a pure virtual package; "
1235 "several packages provide \"mail-transport-agent\", but there is no package "
1236 "named \"mail-transport-agent\"."
1239 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1240 #: apt-cache.8.xml:108
1242 "<literal>Single virtual packages</literal> is the number of packages with "
1243 "only one package providing a particular virtual package. For example, in the "
1244 "Debian system, \"X11-text-viewer\" is a virtual package, but only one "
1245 "package, xless, provides \"X11-text-viewer\"."
1248 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1249 #: apt-cache.8.xml:114
1251 "<literal>Mixed virtual packages</literal> is the number of packages that "
1252 "either provide a particular virtual package or have the virtual package name "
1253 "as the package name. For instance, in the Debian system, \"debconf\" is both "
1254 "an actual package, and provided by the debconf-tiny package."
1257 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1258 #: apt-cache.8.xml:121
1260 "<literal>Missing</literal> is the number of package names that were "
1261 "referenced in a dependency but were not provided by any package. Missing "
1262 "packages may be an evidence if a full distribution is not accessed, or if a "
1263 "package (real or virtual) has been dropped from the distribution. Usually "
1264 "they are referenced from Conflicts or Breaks statements."
1267 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1268 #: apt-cache.8.xml:128
1270 "<literal>Total distinct</literal> versions is the number of package versions "
1271 "found in the cache; this value is therefore at least equal to the number of "
1272 "total package names. If more than one distribution is being accessed (for "
1273 "instance, \"stable\" and \"unstable\"), this value can be considerably "
1274 "larger than the number of total package names."
1277 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1278 #: apt-cache.8.xml:135
1280 "<literal>Total dependencies</literal> is the number of dependency "
1281 "relationships claimed by all of the packages in the cache."
1284 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1285 #: apt-cache.8.xml:143
1287 "<literal>showsrc</literal> displays all the source package records that "
1288 "match the given package names. All versions are shown, as well as all "
1289 "records that declare the name to be a binary package."
1292 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1293 #: apt-cache.8.xml:149
1295 "<literal>dump</literal> shows a short listing of every package in the "
1296 "cache. It is primarily for debugging."
1299 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1300 #: apt-cache.8.xml:154
1302 "<literal>dumpavail</literal> prints out an available list to stdout. This is "
1303 "suitable for use with &dpkg; and is used by the &dselect; method."
1306 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1307 #: apt-cache.8.xml:159
1309 "<literal>unmet</literal> displays a summary of all unmet dependencies in the "
1313 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1314 #: apt-cache.8.xml:164
1316 "<literal>show</literal> performs a function similar to <command>dpkg "
1317 "--print-avail</command>; it displays the package records for the named "
1321 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option><replaceable>
1322 #: apt-cache.8.xml:169
1323 msgid "&synopsis-regex;"
1326 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1327 #: apt-cache.8.xml:170
1329 "<literal>search</literal> performs a full text search on all available "
1330 "package lists for the POSIX regex pattern given, see ®ex;. It searches "
1331 "the package names and the descriptions for an occurrence of the regular "
1332 "expression and prints out the package name and the short description, "
1333 "including virtual package names. If <option>--full</option> is given then "
1334 "output identical to <literal>show</literal> is produced for each matched "
1335 "package, and if <option>--names-only</option> is given then the long "
1336 "description is not searched, only the package name is."
1339 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1340 #: apt-cache.8.xml:181
1342 "Separate arguments can be used to specify multiple search patterns that are "
1346 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1347 #: apt-cache.8.xml:186
1349 "<literal>depends</literal> shows a listing of each dependency a package has "
1350 "and all the possible other packages that can fulfill that dependency."
1353 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1354 #: apt-cache.8.xml:191
1356 "<literal>rdepends</literal> shows a listing of each reverse dependency a "
1360 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1361 #: apt-cache.8.xml:195
1362 msgid "<optional><replaceable>&synopsis-prefix;</replaceable></optional>"
1365 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1366 #: apt-cache.8.xml:196
1368 "This command prints the name of each package APT knows. The optional "
1369 "argument is a prefix match to filter the name list. The output is suitable "
1370 "for use in a shell tab complete function and the output is generated "
1371 "extremely quickly. This command is best used with the "
1372 "<option>--generate</option> option."
1375 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1376 #: apt-cache.8.xml:201
1378 "Note that a package which APT knows of is not necessarily available to "
1379 "download, installable or installed, e.g. virtual packages are also listed in "
1380 "the generated list."
1383 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1384 #: apt-cache.8.xml:207
1386 "<literal>dotty</literal> takes a list of packages on the command line and "
1387 "generates output suitable for use by dotty from the <ulink "
1388 "url=\"http://www.research.att.com/sw/tools/graphviz/\">GraphViz</ulink> "
1389 "package. The result will be a set of nodes and edges representing the "
1390 "relationships between the packages. By default the given packages will trace "
1391 "out all dependent packages; this can produce a very large graph. To limit "
1392 "the output to only the packages listed on the command line, set the "
1393 "<literal>APT::Cache::GivenOnly</literal> option."
1396 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1397 #: apt-cache.8.xml:216
1399 "The resulting nodes will have several shapes; normal packages are boxes, "
1400 "pure virtual packages are triangles, mixed virtual packages are diamonds, "
1401 "missing packages are hexagons. Orange boxes mean recursion was stopped (leaf "
1402 "packages), blue lines are pre-depends, green lines are conflicts."
1405 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1406 #: apt-cache.8.xml:221
1407 msgid "Caution, dotty cannot graph larger sets of packages."
1410 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1411 #: apt-cache.8.xml:225
1413 "The same as <literal>dotty</literal>, only for xvcg from the <ulink "
1414 "url=\"http://rw4.cs.uni-sb.de/users/sander/html/gsvcg1.html\">VCG "
1418 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1419 #: apt-cache.8.xml:229
1420 msgid "<optional><replaceable>&synopsis-pkg;</replaceable>…</optional>"
1423 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1424 #: apt-cache.8.xml:230
1426 "<literal>policy</literal> is meant to help debug issues relating to the "
1427 "preferences file. With no arguments it will print out the priorities of each "
1428 "source. Otherwise it prints out detailed information about the priority "
1429 "selection of the named package."
1432 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1433 #: apt-cache.8.xml:237
1435 "<literal>apt-cache</literal>'s <literal>madison</literal> command attempts "
1436 "to mimic the output format and a subset of the functionality of the Debian "
1437 "archive management tool, <literal>madison</literal>. It displays available "
1438 "versions of a package in a tabular format. Unlike the original "
1439 "<literal>madison</literal>, it can only display information for the "
1440 "architecture for which APT has retrieved package lists "
1441 "(<literal>APT::Architecture</literal>)."
1444 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1445 #: apt-cache.8.xml:253
1447 "Select the file to store the package cache. The package cache is the primary "
1448 "cache used by all operations. Configuration Item: "
1449 "<literal>Dir::Cache::pkgcache</literal>."
1452 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1453 #: apt-cache.8.xml:259
1455 "Select the file to store the source cache. The source is used only by "
1456 "<literal>gencaches</literal> and it stores a parsed version of the package "
1457 "information from remote sources. When building the package cache the source "
1458 "cache is used to avoid reparsing all of the package files. Configuration "
1459 "Item: <literal>Dir::Cache::srcpkgcache</literal>."
1462 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1463 #: apt-cache.8.xml:267
1465 "Quiet; produces output suitable for logging, omitting progress indicators. "
1466 "More q's will produce more quietness up to a maximum of 2. You can also use "
1467 "<option>-q=#</option> to set the quietness level, overriding the "
1468 "configuration file. Configuration Item: <literal>quiet</literal>."
1471 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1472 #: apt-cache.8.xml:274
1474 "Print only important dependencies; for use with <literal>unmet</literal> and "
1475 "<literal>depends</literal>. Causes only Depends and Pre-Depends relations to "
1476 "be printed. Configuration Item: <literal>APT::Cache::Important</literal>."
1479 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1480 #: apt-cache.8.xml:288
1482 "Per default the <literal>depends</literal> and <literal>rdepends</literal> "
1483 "print all dependencies. This can be tweaked with these flags which will omit "
1484 "the specified dependency type. Configuration Item: "
1485 "<literal>APT::Cache::Show<replaceable>DependencyType</replaceable></literal> "
1486 "e.g. <literal>APT::Cache::ShowRecommends</literal>."
1489 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1490 #: apt-cache.8.xml:295
1492 "Print full package records when searching. Configuration Item: "
1493 "<literal>APT::Cache::ShowFull</literal>."
1496 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1497 #: apt-cache.8.xml:300
1499 "Print full records for all available versions. This is the default; to turn "
1500 "it off, use <option>--no-all-versions</option>. If "
1501 "<option>--no-all-versions</option> is specified, only the candidate version "
1502 "will be displayed (the one which would be selected for installation). This "
1503 "option is only applicable to the <literal>show</literal> command. "
1504 "Configuration Item: <literal>APT::Cache::AllVersions</literal>."
1507 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1508 #: apt-cache.8.xml:309
1510 "Perform automatic package cache regeneration, rather than use the cache as "
1511 "it is. This is the default; to turn it off, use "
1512 "<option>--no-generate</option>. Configuration Item: "
1513 "<literal>APT::Cache::Generate</literal>."
1516 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1517 #: apt-cache.8.xml:315
1519 "Only search on the package names, not the long descriptions. Configuration "
1520 "Item: <literal>APT::Cache::NamesOnly</literal>."
1523 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1524 #: apt-cache.8.xml:320
1526 "Make <literal>pkgnames</literal> print all names, including virtual packages "
1527 "and missing dependencies. Configuration Item: "
1528 "<literal>APT::Cache::AllNames</literal>."
1531 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1532 #: apt-cache.8.xml:326
1534 "Make <literal>depends</literal> and <literal>rdepends</literal> recursive so "
1535 "that all packages mentioned are printed once. Configuration Item: "
1536 "<literal>APT::Cache::RecurseDepends</literal>."
1539 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1540 #: apt-cache.8.xml:333
1542 "Limit the output of <literal>depends</literal> and "
1543 "<literal>rdepends</literal> to packages which are currently installed. "
1544 "Configuration Item: <literal>APT::Cache::Installed</literal>."
1547 #. type: Content of: <refentry><refsect1><para>
1548 #: apt-cache.8.xml:351
1549 msgid "&apt-conf;, &sources-list;, &apt-get;"
1552 #. type: Content of: <refentry><refsect1><para>
1553 #: apt-cache.8.xml:356
1555 "<command>apt-cache</command> returns zero on normal operation, decimal 100 "
1559 #. type: Content of: <refentry><refnamediv><refpurpose>
1561 msgid "APT key management utility"
1564 #. type: Content of: <refentry><refsect1><para>
1567 "<command>apt-key</command> is used to manage the list of keys used by apt to "
1568 "authenticate packages. Packages which have been authenticated using these "
1569 "keys will be considered trusted."
1572 #. type: Content of: <refentry><refsect1><title>
1577 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1580 "Add a new key to the list of trusted keys. The key is read from the "
1581 "filename given with the parameter &synopsis-param-filename; or if the "
1582 "filename is <literal>-</literal> from standard input."
1585 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1587 msgid "Remove a key from the list of trusted keys."
1590 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1592 msgid "Output the key &synopsis-param-keyid; to standard output."
1595 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1597 msgid "Output all trusted keys to standard output."
1600 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1602 msgid "List trusted keys."
1605 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1606 #: apt-key.8.xml:107
1607 msgid "List fingerprints of trusted keys."
1610 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1611 #: apt-key.8.xml:118
1613 "Pass advanced options to gpg. With adv --recv-key you can download the "
1617 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1618 #: apt-key.8.xml:130
1620 "Update the local keyring with the archive keyring and remove from the local "
1621 "keyring the archive keys which are no longer valid. The archive keyring is "
1622 "shipped in the <literal>archive-keyring</literal> package of your "
1623 "distribution, e.g. the <literal>debian-archive-keyring</literal> package in "
1627 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1628 #: apt-key.8.xml:144
1630 "Perform an update working similarly to the <command>update</command> command "
1631 "above, but get the archive keyring from a URI instead and validate it "
1632 "against a master key. This requires an installed &wget; and an APT build "
1633 "configured to have a server to fetch from and a master keyring to validate. "
1634 "APT in Debian does not support this command, relying on "
1635 "<command>update</command> instead, but Ubuntu's APT does."
1638 #. type: Content of: <refentry><refsect1><title>
1639 #: apt-key.8.xml:160 apt-cdrom.8.xml:80
1643 #. type: Content of: <refentry><refsect1><para>
1644 #: apt-key.8.xml:161
1646 "Note that options need to be defined before the commands described in the "
1650 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1651 #: apt-key.8.xml:164
1653 "With this option it is possible to specify a particular keyring file the "
1654 "command should operate on. The default is that a command is executed on the "
1655 "<filename>trusted.gpg</filename> file as well as on all parts in the "
1656 "<filename>trusted.gpg.d</filename> directory, though "
1657 "<filename>trusted.gpg</filename> is the primary keyring which means that "
1658 "e.g. new keys are added to this one."
1661 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1662 #: apt-key.8.xml:179
1663 msgid "<filename>/etc/apt/trustdb.gpg</filename>"
1666 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1667 #: apt-key.8.xml:180
1668 msgid "Local trust database of archive keys."
1671 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1672 #: apt-key.8.xml:183
1673 msgid "<filename>/usr/share/keyrings/debian-archive-keyring.gpg</filename>"
1676 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1677 #: apt-key.8.xml:184
1678 msgid "Keyring of Debian archive trusted keys."
1681 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1682 #: apt-key.8.xml:187
1683 msgid "<filename>/usr/share/keyrings/debian-archive-removed-keys.gpg</filename>"
1686 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1687 #: apt-key.8.xml:188
1688 msgid "Keyring of Debian archive removed trusted keys."
1691 #. type: Content of: <refentry><refsect1><para>
1692 #: apt-key.8.xml:197
1693 msgid "&apt-get;, &apt-secure;"
1696 #. type: Content of: <refentry><refnamediv><refpurpose>
1697 #: apt-mark.8.xml:33
1698 msgid "mark/unmark a package as being automatically-installed"
1701 #. type: Content of: <refentry><refsect1><para>
1702 #: apt-mark.8.xml:39
1704 "<command>apt-mark</command> will change whether a package has been marked as "
1705 "being automatically installed."
1708 #. type: Content of: <refentry><refsect1><para>
1709 #: apt-mark.8.xml:43
1711 "When you request that a package is installed, and as a result other packages "
1712 "are installed to satisfy its dependencies, the dependencies are marked as "
1713 "being automatically installed. Once these automatically installed packages "
1714 "are no longer depended on by any manually installed packages, they will be "
1715 "removed by e.g. <command>apt-get</command> or <command>aptitude</command>."
1718 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1719 #: apt-mark.8.xml:52
1721 "<literal>auto</literal> is used to mark a package as being automatically "
1722 "installed, which will cause the package to be removed when no more manually "
1723 "installed packages depend on this package."
1726 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1727 #: apt-mark.8.xml:60
1729 "<literal>manual</literal> is used to mark a package as being manually "
1730 "installed, which will prevent the package from being automatically removed "
1731 "if no other packages depend on it."
1734 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1735 #: apt-mark.8.xml:68
1737 "<literal>hold</literal> is used to mark a package as held back, which will "
1738 "prevent the package from being automatically installed, upgraded or "
1739 "removed. The command is only a wrapper around <command>dpkg "
1740 "--set-selections</command> and the state is therefore maintained by &dpkg; "
1741 "and not affected by the <option>--file</option> option."
1744 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1745 #: apt-mark.8.xml:78
1747 "<literal>unhold</literal> is used to cancel a previously set hold on a "
1748 "package to allow all actions again."
1751 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1752 #: apt-mark.8.xml:84
1754 "<literal>showauto</literal> is used to print a list of automatically "
1755 "installed packages with each package on a new line. All automatically "
1756 "installed packages will be listed if no package is given. If packages are "
1757 "given only those which are automatically installed will be shown."
1760 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1761 #: apt-mark.8.xml:92
1763 "<literal>showmanual</literal> can be used in the same way as "
1764 "<literal>showauto</literal> except that it will print a list of manually "
1765 "installed packages instead."
1768 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1769 #: apt-mark.8.xml:99
1771 "<literal>showhold</literal> is used to print a list of packages on hold in "
1772 "the same way as for the other show commands."
1775 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1776 #: apt-mark.8.xml:115
1778 "Read/Write package stats from the filename given with the parameter "
1779 "&synopsis-param-filename; instead of from the default location, which is "
1780 "<filename>extended_status</filename> in the directory defined by the "
1781 "Configuration Item: <literal>Dir::State</literal>."
1784 #. type: Content of: <refentry><refsect1><para>
1785 #: apt-mark.8.xml:136
1787 "<command>apt-mark</command> returns zero on normal operation, non-zero on "
1791 #. type: Content of: <refentry><refnamediv><refpurpose>
1792 #: apt-secure.8.xml:47
1793 msgid "Archive authentication support for APT"
1796 #. type: Content of: <refentry><refsect1><para>
1797 #: apt-secure.8.xml:52
1799 "Starting with version 0.6, <command>apt</command> contains code that does "
1800 "signature checking of the Release file for all archives. This ensures that "
1801 "packages in the archive can't be modified by people who have no access to "
1802 "the Release file signing key."
1805 #. type: Content of: <refentry><refsect1><para>
1806 #: apt-secure.8.xml:60
1808 "If a package comes from a archive without a signature, or with a signature "
1809 "that apt does not have a key for, that package is considered untrusted, and "
1810 "installing it will result in a big warning. <command>apt-get</command> will "
1811 "currently only warn for unsigned archives; future releases might force all "
1812 "sources to be verified before downloading packages from them."
1815 #. type: Content of: <refentry><refsect1><para>
1816 #: apt-secure.8.xml:69
1818 "The package frontends &apt-get;, &aptitude; and &synaptic; support this new "
1819 "authentication feature."
1822 #. type: Content of: <refentry><refsect1><title>
1823 #: apt-secure.8.xml:74
1824 msgid "Trusted archives"
1827 #. type: Content of: <refentry><refsect1><para>
1828 #: apt-secure.8.xml:77
1830 "The chain of trust from an apt archive to the end user is made up of several "
1831 "steps. <command>apt-secure</command> is the last step in this chain; "
1832 "trusting an archive does not mean that you trust its packages not to contain "
1833 "malicious code, but means that you trust the archive maintainer. It's the "
1834 "archive maintainer's responsibility to ensure that the archive's integrity "
1838 #. type: Content of: <refentry><refsect1><para>
1839 #: apt-secure.8.xml:85
1841 "apt-secure does not review signatures at a package level. If you require "
1842 "tools to do this you should look at <command>debsig-verify</command> and "
1843 "<command>debsign</command> (provided in the debsig-verify and devscripts "
1844 "packages respectively)."
1847 #. type: Content of: <refentry><refsect1><para>
1848 #: apt-secure.8.xml:92
1850 "The chain of trust in Debian starts when a maintainer uploads a new package "
1851 "or a new version of a package to the Debian archive. In order to become "
1852 "effective, this upload needs to be signed by a key contained in the Debian "
1853 "Maintainers keyring (available in the debian-keyring package). Maintainers' "
1854 "keys are signed by other maintainers following pre-established procedures to "
1855 "ensure the identity of the key holder."
1858 #. type: Content of: <refentry><refsect1><para>
1859 #: apt-secure.8.xml:102
1861 "Once the uploaded package is verified and included in the archive, the "
1862 "maintainer signature is stripped off, and checksums of the package are "
1863 "computed and put in the Packages file. The checksums of all of the Packages "
1864 "files are then computed and put into the Release file. The Release file is "
1865 "then signed by the archive key for this Debian release, and distributed "
1866 "alongside the packages and the Packages files on Debian mirrors. The keys "
1867 "are in the Debian archive keyring available in the "
1868 "<package>debian-archive-keyring</package> package."
1871 #. type: Content of: <refentry><refsect1><para>
1872 #: apt-secure.8.xml:113
1874 "End users can check the signature of the Release file, extract a checksum of "
1875 "a package from it and compare it with the checksum of the package they "
1876 "downloaded by hand - or rely on APT doing this automatically."
1879 #. type: Content of: <refentry><refsect1><para>
1880 #: apt-secure.8.xml:118
1882 "Notice that this is distinct from checking signatures on a per package "
1883 "basis. It is designed to prevent two possible attacks:"
1886 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
1887 #: apt-secure.8.xml:123
1889 "<literal>Network \"man in the middle\" attacks</literal>. Without signature "
1890 "checking, malicious agents can introduce themselves into the package "
1891 "download process and provide malicious software either by controlling a "
1892 "network element (router, switch, etc.) or by redirecting traffic to a rogue "
1893 "server (through ARP or DNS spoofing attacks)."
1896 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
1897 #: apt-secure.8.xml:131
1899 "<literal>Mirror network compromise</literal>. Without signature checking, a "
1900 "malicious agent can compromise a mirror host and modify the files in it to "
1901 "propagate malicious software to all users downloading packages from that "
1905 #. type: Content of: <refentry><refsect1><para>
1906 #: apt-secure.8.xml:138
1908 "However, it does not defend against a compromise of the Debian master server "
1909 "itself (which signs the packages) or against a compromise of the key used to "
1910 "sign the Release files. In any case, this mechanism can complement a "
1911 "per-package signature."
1914 #. type: Content of: <refentry><refsect1><title>
1915 #: apt-secure.8.xml:144
1916 msgid "User configuration"
1919 #. type: Content of: <refentry><refsect1><para>
1920 #: apt-secure.8.xml:146
1922 "<command>apt-key</command> is the program that manages the list of keys used "
1923 "by apt. It can be used to add or remove keys, although an installation of "
1924 "this release will automatically contain the default Debian archive signing "
1925 "keys used in the Debian package repositories."
1928 #. type: Content of: <refentry><refsect1><para>
1929 #: apt-secure.8.xml:153
1931 "In order to add a new key you need to first download it (you should make "
1932 "sure you are using a trusted communication channel when retrieving it), add "
1933 "it with <command>apt-key</command> and then run <command>apt-get "
1934 "update</command> so that apt can download and verify the "
1935 "<filename>InRelease</filename> or <filename>Release.gpg</filename> files "
1936 "from the archives you have configured."
1939 #. type: Content of: <refentry><refsect1><title>
1940 #: apt-secure.8.xml:162
1941 msgid "Archive configuration"
1944 #. type: Content of: <refentry><refsect1><para>
1945 #: apt-secure.8.xml:164
1947 "If you want to provide archive signatures in an archive under your "
1948 "maintenance you have to:"
1951 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
1952 #: apt-secure.8.xml:169
1954 "<emphasis>Create a toplevel Release file</emphasis>, if it does not exist "
1955 "already. You can do this by running <command>apt-ftparchive "
1956 "release</command> (provided in apt-utils)."
1959 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
1960 #: apt-secure.8.xml:174
1962 "<emphasis>Sign it</emphasis>. You can do this by running <command>gpg "
1963 "--clearsign -o InRelease Release</command> and <command>gpg -abs -o "
1964 "Release.gpg Release</command>."
1967 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
1968 #: apt-secure.8.xml:178
1970 "<emphasis>Publish the key fingerprint</emphasis>, that way your users will "
1971 "know what key they need to import in order to authenticate the files in the "
1975 #. type: Content of: <refentry><refsect1><para>
1976 #: apt-secure.8.xml:185
1978 "Whenever the contents of the archive change (new packages are added or "
1979 "removed) the archive maintainer has to follow the first two steps outlined "
1983 #. type: Content of: <refentry><refsect1><para>
1984 #: apt-secure.8.xml:193
1986 "&apt-conf;, &apt-get;, &sources-list;, &apt-key;, &apt-ftparchive;, "
1987 "&debsign; &debsig-verify;, &gpg;"
1990 #. type: Content of: <refentry><refsect1><para>
1991 #: apt-secure.8.xml:197
1993 "For more background information you might want to review the <ulink "
1994 "url=\"http://www.debian.org/doc/manuals/securing-debian-howto/ch7\">Debian "
1995 "Security Infrastructure</ulink> chapter of the Securing Debian Manual "
1996 "(available also in the harden-doc package) and the <ulink "
1997 "url=\"http://www.cryptnet.net/fdp/crypto/strong_distro.html\" >Strong "
1998 "Distribution HOWTO</ulink> by V. Alex Brennen."
2001 #. type: Content of: <refentry><refsect1><title>
2002 #: apt-secure.8.xml:210
2003 msgid "Manpage Authors"
2006 #. type: Content of: <refentry><refsect1><para>
2007 #: apt-secure.8.xml:212
2009 "This man-page is based on the work of Javier Fernández-Sanguino Peña, Isaac "
2010 "Jones, Colin Walters, Florian Weimer and Michael Vogt."
2013 #. type: Content of: <refentry><refnamediv><refpurpose>
2014 #: apt-cdrom.8.xml:32
2015 msgid "APT CD-ROM management utility"
2018 #. type: Content of: <refentry><refsect1><para>
2019 #: apt-cdrom.8.xml:38
2021 "<command>apt-cdrom</command> is used to add a new CD-ROM to APT's list of "
2022 "available sources. <command>apt-cdrom</command> takes care of determining "
2023 "the structure of the disc as well as correcting for several possible "
2024 "mis-burns and verifying the index files."
2027 #. type: Content of: <refentry><refsect1><para>
2028 #: apt-cdrom.8.xml:45
2030 "It is necessary to use <command>apt-cdrom</command> to add CDs to the APT "
2031 "system; it cannot be done by hand. Furthermore each disc in a multi-CD set "
2032 "must be inserted and scanned separately to account for possible mis-burns."
2035 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2036 #: apt-cdrom.8.xml:56
2038 "<literal>add</literal> is used to add a new disc to the source list. It will "
2039 "unmount the CD-ROM device, prompt for a disc to be inserted and then proceed "
2040 "to scan it and copy the index files. If the disc does not have a proper "
2041 "<filename>.disk</filename> directory you will be prompted for a descriptive "
2045 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2046 #: apt-cdrom.8.xml:64
2048 "APT uses a CD-ROM ID to track which disc is currently in the drive and "
2049 "maintains a database of these IDs in "
2050 "<filename>&statedir;/cdroms.list</filename>"
2053 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2054 #: apt-cdrom.8.xml:72
2056 "A debugging tool to report the identity of the current disc as well as the "
2060 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2061 #: apt-cdrom.8.xml:85
2063 "Mount point; specify the location to mount the CD-ROM. This mount point must "
2064 "be listed in <filename>/etc/fstab</filename> and properly configured. "
2065 "Configuration Item: <literal>Acquire::cdrom::mount</literal>."
2068 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2069 #: apt-cdrom.8.xml:94
2071 "Rename a disc; change the label of a disc or override the disc's given "
2072 "label. This option will cause <command>apt-cdrom</command> to prompt for a "
2073 "new label. Configuration Item: <literal>APT::CDROM::Rename</literal>."
2076 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2077 #: apt-cdrom.8.xml:103
2079 "No mounting; prevent <command>apt-cdrom</command> from mounting and "
2080 "unmounting the mount point. Configuration Item: "
2081 "<literal>APT::CDROM::NoMount</literal>."
2084 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2085 #: apt-cdrom.8.xml:111
2087 "Fast Copy; Assume the package files are valid and do not check every "
2088 "package. This option should be used only if <command>apt-cdrom</command> has "
2089 "been run on this disc before and did not detect any errors. Configuration "
2090 "Item: <literal>APT::CDROM::Fast</literal>."
2093 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2094 #: apt-cdrom.8.xml:121
2096 "Thorough Package Scan; This option may be needed with some old Debian "
2097 "1.1/1.2 discs that have Package files in strange places. It takes much "
2098 "longer to scan the CD but will pick them all up."
2101 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2102 #: apt-cdrom.8.xml:132
2104 "No Changes; Do not change the &sources-list; file and do not write index "
2105 "files. Everything is still checked however. Configuration Item: "
2106 "<literal>APT::CDROM::NoAct</literal>."
2109 #. type: Content of: <refentry><refsect1><para>
2110 #: apt-cdrom.8.xml:145
2111 msgid "&apt-conf;, &apt-get;, &sources-list;"
2114 #. type: Content of: <refentry><refsect1><para>
2115 #: apt-cdrom.8.xml:150
2117 "<command>apt-cdrom</command> returns zero on normal operation, decimal 100 "
2121 #. type: Content of: <refentry><refnamediv><refpurpose>
2122 #: apt-config.8.xml:33
2123 msgid "APT Configuration Query program"
2126 #. type: Content of: <refentry><refsect1><para>
2127 #: apt-config.8.xml:39
2129 "<command>apt-config</command> is an internal program used by various "
2130 "portions of the APT suite to provide consistent configurability. It accesses "
2131 "the main configuration file <filename>/etc/apt/apt.conf</filename> in a "
2132 "manner that is easy to use for scripted applications."
2135 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2136 #: apt-config.8.xml:51
2138 "shell is used to access the configuration information from a shell "
2139 "script. It is given pairs of arguments, the first being a shell variable and "
2140 "the second the configuration value to query. As output it lists shell "
2141 "assignment commands for each value present. In a shell script it should be "
2145 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><informalexample><programlisting>
2146 #: apt-config.8.xml:59
2150 "RES=`apt-config shell OPTS MyApp::options`\n"
2154 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2155 #: apt-config.8.xml:64
2157 "This will set the shell environment variable $OPTS to the value of "
2158 "MyApp::options with a default of <option>-f</option>."
2161 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2162 #: apt-config.8.xml:68
2164 "The configuration item may be postfixed with a /[fdbi]. f returns file "
2165 "names, d returns directories, b returns true or false and i returns an "
2166 "integer. Each of the returns is normalized and verified internally."
2169 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2170 #: apt-config.8.xml:77
2171 msgid "Just show the contents of the configuration space."
2174 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2175 #: apt-config.8.xml:90
2177 "Include options which have an empty value. This is the default, so use "
2178 "--no-empty to remove them from the output."
2181 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option><replaceable>
2182 #: apt-config.8.xml:95
2183 msgid "%f "%v";%n"
2186 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2187 #: apt-config.8.xml:96
2189 "Defines the output of each config option. %t will be replaced with "
2190 "its individual name, %f with its full hierarchical name and %v "
2191 "with its value. Use uppercase letters and special characters in the value "
2192 "will be encoded to ensure that it can e.g. be safely used in a quoted-string "
2193 "as defined by RFC822. Additionally %n will be replaced by a newline, "
2194 "and %N by a tab. A % can be printed by using %%."
2197 #. type: Content of: <refentry><refsect1><para>
2198 #: apt-config.8.xml:110 apt-extracttemplates.1.xml:71 apt-sortpkgs.1.xml:64 apt-ftparchive.1.xml:608
2202 #. type: Content of: <refentry><refsect1><para>
2203 #: apt-config.8.xml:115
2205 "<command>apt-config</command> returns zero on normal operation, decimal 100 "
2209 #. type: Content of: <refentry><refentryinfo><author><contrib>
2210 #: apt.conf.5.xml:20
2211 msgid "Initial documentation of Debug::*."
2214 #. type: Content of: <refentry><refentryinfo><author><email>
2215 #: apt.conf.5.xml:21
2216 msgid "dburrows@debian.org"
2219 #. type: Content of: <refentry><refmeta><manvolnum>
2220 #: apt.conf.5.xml:31 apt_preferences.5.xml:25 sources.list.5.xml:26
2224 #. type: Content of: <refentry><refnamediv><refpurpose>
2225 #: apt.conf.5.xml:38
2226 msgid "Configuration file for APT"
2229 #. type: Content of: <refentry><refsect1><para>
2230 #: apt.conf.5.xml:42
2232 "<filename>/etc/apt/apt.conf</filename> is the main configuration file shared "
2233 "by all the tools in the APT suite of tools, though it is by no means the "
2234 "only place options can be set. The suite also shares a common command line "
2235 "parser to provide a uniform environment."
2238 #. type: Content of: <refentry><refsect1><orderedlist><para>
2239 #: apt.conf.5.xml:48
2241 "When an APT tool starts up it will read the configuration files in the "
2245 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2246 #: apt.conf.5.xml:50
2248 "the file specified by the <envar>APT_CONFIG</envar> environment variable (if "
2252 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2253 #: apt.conf.5.xml:52
2255 "all files in <literal>Dir::Etc::Parts</literal> in alphanumeric ascending "
2256 "order which have either no or \"<literal>conf</literal>\" as filename "
2257 "extension and which only contain alphanumeric, hyphen (-), underscore (_) "
2258 "and period (.) characters. Otherwise APT will print a notice that it has "
2259 "ignored a file, unless that file matches a pattern in the "
2260 "<literal>Dir::Ignore-Files-Silently</literal> configuration list - in which "
2261 "case it will be silently ignored."
2264 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2265 #: apt.conf.5.xml:59
2266 msgid "the main configuration file specified by <literal>Dir::Etc::main</literal>"
2269 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2270 #: apt.conf.5.xml:61
2272 "the command line options are applied to override the configuration "
2273 "directives or to load even more configuration files."
2276 #. type: Content of: <refentry><refsect1><title>
2277 #: apt.conf.5.xml:65
2281 #. type: Content of: <refentry><refsect1><para>
2282 #: apt.conf.5.xml:66
2284 "The configuration file is organized in a tree with options organized into "
2285 "functional groups. Option specification is given with a double colon "
2286 "notation; for instance <literal>APT::Get::Assume-Yes</literal> is an option "
2287 "within the APT tool group, for the Get tool. Options do not inherit from "
2288 "their parent groups."
2291 #. type: Content of: <refentry><refsect1><para>
2292 #: apt.conf.5.xml:72
2294 "Syntactically the configuration language is modeled after what the ISC tools "
2295 "such as bind and dhcp use. Lines starting with <literal>//</literal> are "
2296 "treated as comments (ignored), as well as all text between "
2297 "<literal>/*</literal> and <literal>*/</literal>, just like C/C++ comments. "
2298 "Each line is of the form <literal>APT::Get::Assume-Yes \"true\";</literal>. "
2299 "The quotation marks and trailing semicolon are required. The value must be "
2300 "on one line, and there is no kind of string concatenation. Values must not "
2301 "include backslashes or extra quotation marks. Option names are made up of "
2302 "alphanumeric characters and the characters \"/-:._+\". A new scope can be "
2303 "opened with curly braces, like this:"
2306 #. type: Content of: <refentry><refsect1><informalexample><programlisting>
2307 #: apt.conf.5.xml:85
2312 " Assume-Yes \"true\";\n"
2313 " Fix-Broken \"true\";\n"
2318 #. type: Content of: <refentry><refsect1><para>
2319 #: apt.conf.5.xml:93
2321 "with newlines placed to make it more readable. Lists can be created by "
2322 "opening a scope and including a single string enclosed in quotes followed by "
2323 "a semicolon. Multiple entries can be included, separated by a semicolon."
2326 #. type: Content of: <refentry><refsect1><informalexample><programlisting>
2327 #: apt.conf.5.xml:98
2329 msgid "DPkg::Pre-Install-Pkgs {\"/usr/sbin/dpkg-preconfigure --apt\";};\n"
2332 #. type: Content of: <refentry><refsect1><para>
2333 #: apt.conf.5.xml:101
2335 "In general the sample configuration file &configureindex; is a good guide "
2336 "for how it should look."
2339 #. type: Content of: <refentry><refsect1><para>
2340 #: apt.conf.5.xml:104
2342 "Case is not significant in names of configuration items, so in the previous "
2343 "example you could use <literal>dpkg::pre-install-pkgs</literal>."
2346 #. type: Content of: <refentry><refsect1><para>
2347 #: apt.conf.5.xml:107
2349 "Names for the configuration items are optional if a list is defined as can "
2350 "be seen in the <literal>DPkg::Pre-Install-Pkgs</literal> example above. If "
2351 "you don't specify a name a new entry will simply add a new option to the "
2352 "list. If you specify a name you can override the option in the same way as "
2353 "any other option by reassigning a new value to the option."
2356 #. type: Content of: <refentry><refsect1><para>
2357 #: apt.conf.5.xml:112
2359 "Two special commands are defined: <literal>#include</literal> (which is "
2360 "deprecated and not supported by alternative implementations) and "
2361 "<literal>#clear</literal>. <literal>#include</literal> will include the "
2362 "given file, unless the filename ends in a slash, in which case the whole "
2363 "directory is included. <literal>#clear</literal> is used to erase a part of "
2364 "the configuration tree. The specified element and all its descendants are "
2365 "erased. (Note that these lines also need to end with a semicolon.)"
2368 #. type: Content of: <refentry><refsect1><para>
2369 #: apt.conf.5.xml:122
2371 "The <literal>#clear</literal> command is the only way to delete a list or a "
2372 "complete scope. Reopening a scope (or using the syntax described below with "
2373 "an appended <literal>::</literal>) will <emphasis>not</emphasis> override "
2374 "previously written entries. Options can only be overridden by addressing a "
2375 "new value to them - lists and scopes can't be overridden, only cleared."
2378 #. type: Content of: <refentry><refsect1><para>
2379 #: apt.conf.5.xml:130
2381 "All of the APT tools take an -o option which allows an arbitrary "
2382 "configuration directive to be specified on the command line. The syntax is a "
2383 "full option name (<literal>APT::Get::Assume-Yes</literal> for instance) "
2384 "followed by an equals sign then the new value of the option. To append a new "
2385 "element to a list, add a trailing <literal>::</literal> to the name of the "
2386 "list. (As you might suspect, the scope syntax can't be used on the command "
2390 #. type: Content of: <refentry><refsect1><para>
2391 #: apt.conf.5.xml:138
2393 "Note that appending items to a list using <literal>::</literal> only works "
2394 "for one item per line, and that you should not use it in combination with "
2395 "the scope syntax (which adds <literal>::</literal> implicitly). Using both "
2396 "syntaxes together will trigger a bug which some users unfortunately depend "
2397 "on: an option with the unusual name \"<literal>::</literal>\" which acts "
2398 "like every other option with a name. This introduces many problems; for one "
2399 "thing, users who write multiple lines in this <emphasis>wrong</emphasis> "
2400 "syntax in the hope of appending to a list will achieve the opposite, as only "
2401 "the last assignment for this option \"<literal>::</literal>\" will be "
2402 "used. Future versions of APT will raise errors and stop working if they "
2403 "encounter this misuse, so please correct such statements now while APT "
2404 "doesn't explicitly complain about them."
2407 #. type: Content of: <refentry><refsect1><title>
2408 #: apt.conf.5.xml:153
2409 msgid "The APT Group"
2412 #. type: Content of: <refentry><refsect1><para>
2413 #: apt.conf.5.xml:154
2415 "This group of options controls general APT behavior as well as holding the "
2416 "options for all of the tools."
2419 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2420 #: apt.conf.5.xml:159
2422 "System Architecture; sets the architecture to use when fetching files and "
2423 "parsing package lists. The internal default is the architecture apt was "
2427 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2428 #: apt.conf.5.xml:166
2430 "All Architectures the system supports. For instance, CPUs implementing the "
2431 "<literal>amd64</literal> (also called <literal>x86-64</literal>) "
2432 "instruction set are also able to execute binaries compiled for the "
2433 "<literal>i386</literal> (<literal>x86</literal>) instruction set. This list "
2434 "is used when fetching files and parsing package lists. The initial default "
2435 "is always the system's native architecture "
2436 "(<literal>APT::Architecture</literal>), and foreign architectures are added "
2437 "to the default list when they are registered via <command>dpkg "
2438 "--add-architecture</command>."
2441 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2442 #: apt.conf.5.xml:179
2444 "Default release to install packages from if more than one version is "
2445 "available. Contains release name, codename or release version. Examples: "
2446 "'stable', 'testing', 'unstable', '&stable-codename;', '&testing-codename;', "
2447 "'4.0', '5.0*'. See also &apt-preferences;."
2450 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2451 #: apt.conf.5.xml:185
2453 "Ignore held packages; this global option causes the problem resolver to "
2454 "ignore held packages in its decision making."
2457 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2458 #: apt.conf.5.xml:190
2460 "Defaults to on. When turned on the autoclean feature will remove any "
2461 "packages which can no longer be downloaded from the cache. If turned off "
2462 "then packages that are locally installed are also excluded from cleaning - "
2463 "but note that APT provides no direct means to reinstall them."
2466 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2467 #: apt.conf.5.xml:198
2469 "Defaults to on, which will cause APT to install essential and important "
2470 "packages as soon as possible in an install/upgrade operation, in order to "
2471 "limit the effect of a failing &dpkg; call. If this option is disabled, APT "
2472 "treats an important package in the same way as an extra package: between the "
2473 "unpacking of the package A and its configuration there can be many other "
2474 "unpack or configuration calls for other unrelated packages B, C etc. If "
2475 "these cause the &dpkg; call to fail (e.g. because package B's maintainer "
2476 "scripts generate an error), this results in a system state in which package "
2477 "A is unpacked but unconfigured - so any package depending on A is now no "
2478 "longer guaranteed to work, as its dependency on A is no longer satisfied."
2481 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2482 #: apt.conf.5.xml:210
2484 "The immediate configuration marker is also applied in the potentially "
2485 "problematic case of circular dependencies, since a dependency with the "
2486 "immediate flag is equivalent to a Pre-Dependency. In theory this allows APT "
2487 "to recognise a situation in which it is unable to perform immediate "
2488 "configuration, abort, and suggest to the user that the option should be "
2489 "temporarily deactivated in order to allow the operation to proceed. Note "
2490 "the use of the word \"theory\" here; in the real world this problem has "
2491 "rarely been encountered, in non-stable distribution versions, and was caused "
2492 "by wrong dependencies of the package in question or by a system in an "
2493 "already broken state; so you should not blindly disable this option, as the "
2494 "scenario mentioned above is not the only problem it can help to prevent in "
2498 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2499 #: apt.conf.5.xml:223
2501 "Before a big operation like <literal>dist-upgrade</literal> is run with this "
2502 "option disabled you should try to explicitly <literal>install</literal> the "
2503 "package APT is unable to configure immediately; but please make sure you "
2504 "also report your problem to your distribution and to the APT team with the "
2505 "buglink below, so they can work on improving or correcting the upgrade "
2509 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2510 #: apt.conf.5.xml:234
2512 "Never enable this option unless you <emphasis>really</emphasis> know what "
2513 "you are doing. It permits APT to temporarily remove an essential package to "
2514 "break a Conflicts/Conflicts or Conflicts/Pre-Depends loop between two "
2515 "essential packages. <emphasis>Such a loop should never exist and is a grave "
2516 "bug</emphasis>. This option will work if the essential packages are not "
2517 "<command>tar</command>, <command>gzip</command>, <command>libc</command>, "
2518 "<command>dpkg</command>, <command>dash</command> or anything that those "
2519 "packages depend on."
2522 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2523 #: apt.conf.5.xml:246
2525 "APT uses since version 0.7.26 a resizable memory mapped cache file to store "
2526 "the available information. <literal>Cache-Start</literal> acts as a hint of "
2527 "the size the cache will grow to, and is therefore the amount of memory APT "
2528 "will request at startup. The default value is 20971520 bytes (~20 MB). Note "
2529 "that this amount of space needs to be available for APT; otherwise it will "
2530 "likely fail ungracefully, so for memory restricted devices this value should "
2531 "be lowered while on systems with a lot of configured sources it should be "
2532 "increased. <literal>Cache-Grow</literal> defines in bytes with the default "
2533 "of 1048576 (~1 MB) how much the cache size will be increased in the event "
2534 "the space defined by <literal>Cache-Start</literal> is not enough. This "
2535 "value will be applied again and again until either the cache is big enough "
2536 "to store all information or the size of the cache reaches the "
2537 "<literal>Cache-Limit</literal>. The default of "
2538 "<literal>Cache-Limit</literal> is 0 which stands for no limit. If "
2539 "<literal>Cache-Grow</literal> is set to 0 the automatic growth of the cache "
2543 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2544 #: apt.conf.5.xml:262
2545 msgid "Defines which packages are considered essential build dependencies."
2548 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2549 #: apt.conf.5.xml:266
2551 "The Get subsection controls the &apt-get; tool; please see its documentation "
2552 "for more information about the options here."
2555 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2556 #: apt.conf.5.xml:271
2558 "The Cache subsection controls the &apt-cache; tool; please see its "
2559 "documentation for more information about the options here."
2562 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2563 #: apt.conf.5.xml:276
2565 "The CDROM subsection controls the &apt-cdrom; tool; please see its "
2566 "documentation for more information about the options here."
2569 #. type: Content of: <refentry><refsect1><title>
2570 #: apt.conf.5.xml:282
2571 msgid "The Acquire Group"
2574 #. type: Content of: <refentry><refsect1><para>
2575 #: apt.conf.5.xml:283
2577 "The <literal>Acquire</literal> group of options controls the download of "
2578 "packages as well as the various \"acquire methods\" responsible for the "
2579 "download itself (see also &sources-list;)."
2582 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2583 #: apt.conf.5.xml:290
2585 "Security related option defaulting to true, as giving a Release file's "
2586 "validation an expiration date prevents replay attacks over a long timescale, "
2587 "and can also for example help users to identify mirrors that are no longer "
2588 "updated - but the feature depends on the correctness of the clock on the "
2589 "user system. Archive maintainers are encouraged to create Release files with "
2590 "the <literal>Valid-Until</literal> header, but if they don't or a stricter "
2591 "value is desired the <literal>Max-ValidTime</literal> option below can be "
2595 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2596 #: apt.conf.5.xml:303
2598 "Maximum time (in seconds) after its creation (as indicated by the "
2599 "<literal>Date</literal> header) that the <filename>Release</filename> file "
2600 "should be considered valid. If the Release file itself includes a "
2601 "<literal>Valid-Until</literal> header the earlier date of the two is used as "
2602 "the expiration date. The default value is <literal>0</literal> which stands "
2603 "for \"valid forever\". Archive specific settings can be made by appending "
2604 "the label of the archive to the option name."
2607 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2608 #: apt.conf.5.xml:315
2610 "Minimum time (in seconds) after its creation (as indicated by the "
2611 "<literal>Date</literal> header) that the <filename>Release</filename> file "
2612 "should be considered valid. Use this if you need to use a seldom updated "
2613 "(local) mirror of a more frequently updated archive with a "
2614 "<literal>Valid-Until</literal> header instead of completely disabling the "
2615 "expiration date checking. Archive specific settings can and should be used "
2616 "by appending the label of the archive to the option name."
2619 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2620 #: apt.conf.5.xml:327
2622 "Try to download deltas called <literal>PDiffs</literal> for indexes (like "
2623 "<filename>Packages</filename> files) instead of downloading whole ones. True "
2627 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2628 #: apt.conf.5.xml:330
2630 "Two sub-options to limit the use of PDiffs are also available: "
2631 "<literal>FileLimit</literal> can be used to specify a maximum number of "
2632 "PDiff files should be downloaded to update a "
2633 "file. <literal>SizeLimit</literal> on the other hand is the maximum "
2634 "percentage of the size of all patches compared to the size of the targeted "
2635 "file. If one of these limits is exceeded the complete file is downloaded "
2636 "instead of the patches."
2639 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2640 #: apt.conf.5.xml:340
2642 "Queuing mode; <literal>Queue-Mode</literal> can be one of "
2643 "<literal>host</literal> or <literal>access</literal> which determines how "
2644 "APT parallelizes outgoing connections. <literal>host</literal> means that "
2645 "one connection per target host will be opened, <literal>access</literal> "
2646 "means that one connection per URI type will be opened."
2649 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2650 #: apt.conf.5.xml:348
2652 "Number of retries to perform. If this is non-zero APT will retry failed "
2653 "files the given number of times."
2656 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2657 #: apt.conf.5.xml:353
2659 "Use symlinks for source archives. If set to true then source archives will "
2660 "be symlinked when possible instead of copying. True is the default."
2663 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2664 #: apt.conf.5.xml:358
2666 "<literal>http::Proxy</literal> sets the default proxy to use for HTTP "
2667 "URIs. It is in the standard form of "
2668 "<literal>http://[[user][:pass]@]host[:port]/</literal>. Per host proxies "
2669 "can also be specified by using the form "
2670 "<literal>http::Proxy::<host></literal> with the special keyword "
2671 "<literal>DIRECT</literal> meaning to use no proxies. If no one of the above "
2672 "settings is specified, <envar>http_proxy</envar> environment variable will "
2676 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2677 #: apt.conf.5.xml:366
2679 "Three settings are provided for cache control with HTTP/1.1 compliant proxy "
2680 "caches. <literal>No-Cache</literal> tells the proxy not to use its cached "
2681 "response under any circumstances. <literal>Max-Age</literal> sets the "
2682 "allowed maximum age (in seconds) of an index file in the cache of the "
2683 "proxy. <literal>No-Store</literal> specifies that the proxy should not "
2684 "store the requested archive files in its cache, which can be used to prevent "
2685 "the proxy from polluting its cache with (big) .deb files."
2688 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2689 #: apt.conf.5.xml:376 apt.conf.5.xml:448
2691 "The option <literal>timeout</literal> sets the timeout timer used by the "
2692 "method; this value applies to the connection as well as the data timeout."
2695 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2696 #: apt.conf.5.xml:379
2698 "The setting <literal>Acquire::http::Pipeline-Depth</literal> can be used to "
2699 "enable HTTP pipelining (RFC 2616 section 8.1.2.2) which can be beneficial "
2700 "e.g. on high-latency connections. It specifies how many requests are sent in "
2701 "a pipeline. Previous APT versions had a default of 10 for this setting, but "
2702 "the default value is now 0 (= disabled) to avoid problems with the "
2703 "ever-growing amount of webservers and proxies which choose to not conform to "
2704 "the HTTP/1.1 specification."
2707 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2708 #: apt.conf.5.xml:386
2710 "<literal>Acquire::http::AllowRedirect</literal> controls whether APT will "
2711 "follow redirects, which is enabled by default."
2714 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2715 #: apt.conf.5.xml:389
2717 "The used bandwidth can be limited with "
2718 "<literal>Acquire::http::Dl-Limit</literal> which accepts integer values in "
2719 "kilobytes. The default value is 0 which deactivates the limit and tries to "
2720 "use all available bandwidth (note that this option implicitly disables "
2721 "downloading from multiple servers at the same time.)"
2724 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2725 #: apt.conf.5.xml:394
2727 "<literal>Acquire::http::User-Agent</literal> can be used to set a different "
2728 "User-Agent for the http download method as some proxies allow access for "
2729 "clients only if the client uses a known identifier."
2732 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2733 #: apt.conf.5.xml:402
2735 "The <literal>Cache-control</literal>, <literal>Timeout</literal>, "
2736 "<literal>AllowRedirect</literal>, <literal>Dl-Limit</literal> and "
2737 "<literal>proxy</literal> options work for HTTPS URIs in the same way as for "
2738 "the <literal>http</literal> method, and default to the same values if they "
2739 "are not explicitly set. The <literal>Pipeline-Depth</literal> option is not "
2743 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2744 #: apt.conf.5.xml:410
2746 "<literal>CaInfo</literal> suboption specifies place of file that holds info "
2747 "about trusted certificates. <literal><host>::CaInfo</literal> is the "
2748 "corresponding per-host option. <literal>Verify-Peer</literal> boolean "
2749 "suboption determines whether or not the server's host certificate should be "
2750 "verified against trusted certificates. "
2751 "<literal><host>::Verify-Peer</literal> is the corresponding per-host "
2752 "option. <literal>Verify-Host</literal> boolean suboption determines whether "
2753 "or not the server's hostname should be verified. "
2754 "<literal><host>::Verify-Host</literal> is the corresponding per-host "
2755 "option. <literal>SslCert</literal> determines what certificate to use for "
2756 "client authentication. <literal><host>::SslCert</literal> is the "
2757 "corresponding per-host option. <literal>SslKey</literal> determines what "
2758 "private key to use for client "
2759 "authentication. <literal><host>::SslKey</literal> is the corresponding "
2760 "per-host option. <literal>SslForceVersion</literal> overrides default SSL "
2761 "version to use. It can contain either of the strings "
2762 "'<literal>TLSv1</literal>' or '<literal>SSLv3</literal>'. "
2763 "<literal><host>::SslForceVersion</literal> is the corresponding "
2767 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2768 #: apt.conf.5.xml:431
2770 "<literal>ftp::Proxy</literal> sets the default proxy to use for FTP URIs. "
2771 "It is in the standard form of "
2772 "<literal>ftp://[[user][:pass]@]host[:port]/</literal>. Per host proxies can "
2773 "also be specified by using the form "
2774 "<literal>ftp::Proxy::<host></literal> with the special keyword "
2775 "<literal>DIRECT</literal> meaning to use no proxies. If no one of the above "
2776 "settings is specified, <envar>ftp_proxy</envar> environment variable will be "
2777 "used. To use an FTP proxy you will have to set the "
2778 "<literal>ftp::ProxyLogin</literal> script in the configuration file. This "
2779 "entry specifies the commands to send to tell the proxy server what to "
2780 "connect to. Please see &configureindex; for an example of how to do "
2781 "this. The substitution variables representing the corresponding URI "
2782 "component are <literal>$(PROXY_USER)</literal>, "
2783 "<literal>$(PROXY_PASS)</literal>, <literal>$(SITE_USER)</literal>, "
2784 "<literal>$(SITE_PASS)</literal>, <literal>$(SITE)</literal> and "
2785 "<literal>$(SITE_PORT)</literal>."
2788 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2789 #: apt.conf.5.xml:451
2791 "Several settings are provided to control passive mode. Generally it is safe "
2792 "to leave passive mode on; it works in nearly every environment. However, "
2793 "some situations require that passive mode be disabled and port mode FTP used "
2794 "instead. This can be done globally or for connections that go through a "
2795 "proxy or for a specific host (see the sample config file for examples)."
2798 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2799 #: apt.conf.5.xml:458
2801 "It is possible to proxy FTP over HTTP by setting the "
2802 "<envar>ftp_proxy</envar> environment variable to an HTTP URL - see the "
2803 "discussion of the http method above for syntax. You cannot set this in the "
2804 "configuration file and it is not recommended to use FTP over HTTP due to its "
2808 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2809 #: apt.conf.5.xml:463
2811 "The setting <literal>ForceExtended</literal> controls the use of RFC2428 "
2812 "<literal>EPSV</literal> and <literal>EPRT</literal> commands. The default is "
2813 "false, which means these commands are only used if the control connection is "
2814 "IPv6. Setting this to true forces their use even on IPv4 connections. Note "
2815 "that most FTP servers do not support RFC2428."
2818 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><literallayout>
2819 #: apt.conf.5.xml:477
2821 msgid "/cdrom/::Mount \"foo\";"
2824 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2825 #: apt.conf.5.xml:472
2827 "For URIs using the <literal>cdrom</literal> method, the only configurable "
2828 "option is the mount point, <literal>cdrom::Mount</literal>, which must be "
2829 "the mount point for the CD-ROM (or DVD, or whatever) drive as specified in "
2830 "<filename>/etc/fstab</filename>. It is possible to provide alternate mount "
2831 "and unmount commands if your mount point cannot be listed in the fstab. The "
2832 "syntax is to put <placeholder type=\"literallayout\" id=\"0\"/> within the "
2833 "<literal>cdrom</literal> block. It is important to have the trailing slash. "
2834 "Unmount commands can be specified using UMount."
2837 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2838 #: apt.conf.5.xml:485
2840 "For GPGV URIs the only configurable option is "
2841 "<literal>gpgv::Options</literal>, which passes additional parameters to "
2845 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><synopsis>
2846 #: apt.conf.5.xml:496
2849 "Acquire::CompressionTypes::<replaceable>FileExtension</replaceable> "
2850 "\"<replaceable>Methodname</replaceable>\";"
2853 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2854 #: apt.conf.5.xml:491
2856 "List of compression types which are understood by the acquire methods. "
2857 "Files like <filename>Packages</filename> can be available in various "
2858 "compression formats. By default the acquire methods can decompress "
2859 "<command>bzip2</command>, <command>lzma</command> and "
2860 "<command>gzip</command> compressed files; with this setting more formats can "
2861 "be added on the fly or the used method can be changed. The syntax for this "
2862 "is: <placeholder type=\"synopsis\" id=\"0\"/>"
2865 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><synopsis>
2866 #: apt.conf.5.xml:501
2868 msgid "Acquire::CompressionTypes::Order:: \"gz\";"
2871 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><synopsis>
2872 #: apt.conf.5.xml:504
2874 msgid "Acquire::CompressionTypes::Order { \"lzma\"; \"gz\"; };"
2877 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2878 #: apt.conf.5.xml:497
2880 "Also, the <literal>Order</literal> subgroup can be used to define in which "
2881 "order the acquire system will try to download the compressed files. The "
2882 "acquire system will try the first and proceed with the next compression type "
2883 "in this list on error, so to prefer one over the other type simply add the "
2884 "preferred type first - default types not already added will be implicitly "
2885 "appended to the end of the list, so e.g. <placeholder type=\"synopsis\" "
2886 "id=\"0\"/> can be used to prefer <command>gzip</command> compressed files "
2887 "over <command>bzip2</command> and <command>lzma</command>. If "
2888 "<command>lzma</command> should be preferred over <command>gzip</command> and "
2889 "<command>bzip2</command> the configure setting should look like this: "
2890 "<placeholder type=\"synopsis\" id=\"1\"/> It is not needed to add "
2891 "<literal>bz2</literal> to the list explicitly as it will be added "
2895 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><literallayout>
2896 #: apt.conf.5.xml:511
2898 msgid "Dir::Bin::bzip2 \"/bin/bzip2\";"
2901 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2902 #: apt.conf.5.xml:506
2905 "<literal>Dir::Bin::<replaceable>Methodname</replaceable></literal> will be "
2906 "checked at run time. If this option has been set, the method will only be "
2907 "used if this file exists; e.g. for the <literal>bzip2</literal> method (the "
2908 "inbuilt) setting is: <placeholder type=\"literallayout\" id=\"0\"/> Note "
2909 "also that list entries specified on the command line will be added at the "
2910 "end of the list specified in the configuration files, but before the default "
2911 "entries. To prefer a type in this case over the ones specified in the "
2912 "configuration files you can set the option direct - not in list style. This "
2913 "will not override the defined list; it will only prefix the list with this "
2917 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2918 #: apt.conf.5.xml:516
2920 "The special type <literal>uncompressed</literal> can be used to give "
2921 "uncompressed files a preference, but note that most archives don't provide "
2922 "uncompressed files so this is mostly only useable for local mirrors."
2925 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2926 #: apt.conf.5.xml:523
2928 "When downloading <literal>gzip</literal> compressed indexes (Packages, "
2929 "Sources, or Translations), keep them gzip compressed locally instead of "
2930 "unpacking them. This saves quite a lot of disk space at the expense of more "
2931 "CPU requirements when building the local package caches. False by default."
2934 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2935 #: apt.conf.5.xml:531
2937 "The Languages subsection controls which <filename>Translation</filename> "
2938 "files are downloaded and in which order APT tries to display the "
2939 "description-translations. APT will try to display the first available "
2940 "description in the language which is listed first. Languages can be defined "
2941 "with their short or long language codes. Note that not all archives provide "
2942 "<filename>Translation</filename> files for every language - the long "
2943 "language codes are especially rare."
2946 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><programlisting>
2947 #: apt.conf.5.xml:548
2949 msgid "Acquire::Languages { \"environment\"; \"de\"; \"en\"; \"none\"; \"fr\"; };"
2952 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2953 #: apt.conf.5.xml:536
2955 "The default list includes \"environment\" and "
2956 "\"en\". \"<literal>environment</literal>\" has a special meaning here: it "
2957 "will be replaced at runtime with the language codes extracted from the "
2958 "<literal>LC_MESSAGES</literal> environment variable. It will also ensure "
2959 "that these codes are not included twice in the list. If "
2960 "<literal>LC_MESSAGES</literal> is set to \"C\" only the "
2961 "<filename>Translation-en</filename> file (if available) will be used. To "
2962 "force APT to use no Translation file use the setting "
2963 "<literal>Acquire::Languages=none</literal>. \"<literal>none</literal>\" is "
2964 "another special meaning code which will stop the search for a suitable "
2965 "<filename>Translation</filename> file. This tells APT to download these "
2966 "translations too, without actually using them unless the environment "
2967 "specifies the languages. So the following example configuration will result "
2968 "in the order \"en, de\" in an English locale or \"de, en\" in a German "
2969 "one. Note that \"fr\" is downloaded, but not used unless APT is used in a "
2970 "French locale (where the order would be \"fr, de, en\"). <placeholder "
2971 "type=\"programlisting\" id=\"0\"/>"
2974 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2975 #: apt.conf.5.xml:549
2977 "Note: To prevent problems resulting from APT being executed in different "
2978 "environments (e.g. by different users or by other programs) all Translation "
2979 "files which are found in <filename>/var/lib/apt/lists/</filename> will be "
2980 "added to the end of the list (after an implicit "
2981 "\"<literal>none</literal>\")."
2984 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2985 #: apt.conf.5.xml:558
2986 msgid "When downloading, force to use only the IPv4 protocol."
2989 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2990 #: apt.conf.5.xml:564
2991 msgid "When downloading, force to use only the IPv6 protocol."
2994 #. type: Content of: <refentry><refsect1><title>
2995 #: apt.conf.5.xml:571
2999 #. type: Content of: <refentry><refsect1><para>
3000 #: apt.conf.5.xml:573
3002 "The <literal>Dir::State</literal> section has directories that pertain to "
3003 "local state information. <literal>lists</literal> is the directory to place "
3004 "downloaded package lists in and <literal>status</literal> is the name of the "
3005 "&dpkg; status file. <literal>preferences</literal> is the name of the APT "
3006 "<filename>preferences</filename> file. <literal>Dir::State</literal> "
3007 "contains the default directory to prefix on all sub-items if they do not "
3008 "start with <filename>/</filename> or <filename>./</filename>."
3011 #. type: Content of: <refentry><refsect1><para>
3012 #: apt.conf.5.xml:580
3014 "<literal>Dir::Cache</literal> contains locations pertaining to local cache "
3015 "information, such as the two package caches <literal>srcpkgcache</literal> "
3016 "and <literal>pkgcache</literal> as well as the location to place downloaded "
3017 "archives, <literal>Dir::Cache::archives</literal>. Generation of caches can "
3018 "be turned off by setting their names to the empty string. This will slow "
3019 "down startup but save disk space. It is probably preferable to turn off the "
3020 "pkgcache rather than the srcpkgcache. Like <literal>Dir::State</literal> the "
3021 "default directory is contained in <literal>Dir::Cache</literal>"
3024 #. type: Content of: <refentry><refsect1><para>
3025 #: apt.conf.5.xml:589
3027 "<literal>Dir::Etc</literal> contains the location of configuration files, "
3028 "<literal>sourcelist</literal> gives the location of the sourcelist and "
3029 "<literal>main</literal> is the default configuration file (setting has no "
3030 "effect, unless it is done from the config file specified by "
3031 "<envar>APT_CONFIG</envar>)."
3034 #. type: Content of: <refentry><refsect1><para>
3035 #: apt.conf.5.xml:595
3037 "The <literal>Dir::Parts</literal> setting reads in all the config fragments "
3038 "in lexical order from the directory specified. After this is done then the "
3039 "main config file is loaded."
3042 #. type: Content of: <refentry><refsect1><para>
3043 #: apt.conf.5.xml:599
3045 "Binary programs are pointed to by "
3046 "<literal>Dir::Bin</literal>. <literal>Dir::Bin::Methods</literal> specifies "
3047 "the location of the method handlers and <literal>gzip</literal>, "
3048 "<literal>bzip2</literal>, <literal>lzma</literal>, <literal>dpkg</literal>, "
3049 "<literal>apt-get</literal> <literal>dpkg-source</literal> "
3050 "<literal>dpkg-buildpackage</literal> and <literal>apt-cache</literal> "
3051 "specify the location of the respective programs."
3054 #. type: Content of: <refentry><refsect1><para>
3055 #: apt.conf.5.xml:607
3057 "The configuration item <literal>RootDir</literal> has a special meaning. If "
3058 "set, all paths in <literal>Dir::</literal> will be relative to "
3059 "<literal>RootDir</literal>, <emphasis>even paths that are specified "
3060 "absolutely</emphasis>. So, for instance, if <literal>RootDir</literal> is "
3061 "set to <filename>/tmp/staging</filename> and "
3062 "<literal>Dir::State::status</literal> is set to "
3063 "<filename>/var/lib/dpkg/status</filename>, then the status file will be "
3064 "looked up in <filename>/tmp/staging/var/lib/dpkg/status</filename>."
3067 #. type: Content of: <refentry><refsect1><para>
3068 #: apt.conf.5.xml:620
3070 "The <literal>Ignore-Files-Silently</literal> list can be used to specify "
3071 "which files APT should silently ignore while parsing the files in the "
3072 "fragment directories. Per default a file which end with "
3073 "<literal>.disabled</literal>, <literal>~</literal>, <literal>.bak</literal> "
3074 "or <literal>.dpkg-[a-z]+</literal> is silently ignored. As seen in the last "
3075 "default value these patterns can use regular expression syntax."
3078 #. type: Content of: <refentry><refsect1><title>
3079 #: apt.conf.5.xml:629
3080 msgid "APT in DSelect"
3083 #. type: Content of: <refentry><refsect1><para>
3084 #: apt.conf.5.xml:631
3086 "When APT is used as a &dselect; method several configuration directives "
3087 "control the default behavior. These are in the <literal>DSelect</literal> "
3091 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3092 #: apt.conf.5.xml:636
3094 "Cache Clean mode; this value may be one of <literal>always</literal>, "
3095 "<literal>prompt</literal>, <literal>auto</literal>, "
3096 "<literal>pre-auto</literal> and <literal>never</literal>. "
3097 "<literal>always</literal> and <literal>prompt</literal> will remove all "
3098 "packages from the cache after upgrading, <literal>prompt</literal> (the "
3099 "default) does so conditionally. <literal>auto</literal> removes only those "
3100 "packages which are no longer downloadable (replaced with a new version for "
3101 "instance). <literal>pre-auto</literal> performs this action before "
3102 "downloading new packages."
3105 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3106 #: apt.conf.5.xml:650
3108 "The contents of this variable are passed to &apt-get; as command line "
3109 "options when it is run for the install phase."
3112 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3113 #: apt.conf.5.xml:655
3115 "The contents of this variable are passed to &apt-get; as command line "
3116 "options when it is run for the update phase."
3119 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3120 #: apt.conf.5.xml:660
3122 "If true the [U]pdate operation in &dselect; will always prompt to continue. "
3123 "The default is to prompt only on error."
3126 #. type: Content of: <refentry><refsect1><title>
3127 #: apt.conf.5.xml:666
3128 msgid "How APT calls &dpkg;"
3131 #. type: Content of: <refentry><refsect1><para>
3132 #: apt.conf.5.xml:667
3134 "Several configuration directives control how APT invokes &dpkg;. These are "
3135 "in the <literal>DPkg</literal> section."
3138 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3139 #: apt.conf.5.xml:672
3141 "This is a list of options to pass to &dpkg;. The options must be specified "
3142 "using the list notation and each list item is passed as a single argument to "
3146 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3147 #: apt.conf.5.xml:678
3149 "This is a list of shell commands to run before/after invoking &dpkg;. Like "
3150 "<literal>options</literal> this must be specified in list notation. The "
3151 "commands are invoked in order using <filename>/bin/sh</filename>; should any "
3152 "fail APT will abort."
3155 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3156 #: apt.conf.5.xml:685
3158 "This is a list of shell commands to run before invoking &dpkg;. Like "
3159 "<literal>options</literal> this must be specified in list notation. The "
3160 "commands are invoked in order using <filename>/bin/sh</filename>; should any "
3161 "fail APT will abort. APT will pass the filenames of all .deb files it is "
3162 "going to install to the commands, one per line on standard input."
3165 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3166 #: apt.conf.5.xml:691
3168 "Version 2 of this protocol dumps more information, including the protocol "
3169 "version, the APT configuration space and the packages, files and versions "
3170 "being changed. Version 2 is enabled by setting "
3171 "<literal>DPkg::Tools::options::cmd::Version</literal> to "
3172 "2. <literal>cmd</literal> is a command given to "
3173 "<literal>Pre-Install-Pkgs</literal>."
3176 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3177 #: apt.conf.5.xml:699
3179 "APT chdirs to this directory before invoking &dpkg;, the default is "
3180 "<filename>/</filename>."
3183 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3184 #: apt.conf.5.xml:704
3186 "These options are passed to &dpkg-buildpackage; when compiling packages; the "
3187 "default is to disable signing and produce all binaries."
3190 #. type: Content of: <refentry><refsect1><refsect2><title>
3191 #: apt.conf.5.xml:709
3192 msgid "dpkg trigger usage (and related options)"
3195 #. type: Content of: <refentry><refsect1><refsect2><para>
3196 #: apt.conf.5.xml:710
3198 "APT can call &dpkg; in such a way as to let it make aggressive use of "
3199 "triggers over multiple calls of &dpkg;. Without further options &dpkg; will "
3200 "use triggers once each time it runs. Activating these options can therefore "
3201 "decrease the time needed to perform the install or upgrade. Note that it is "
3202 "intended to activate these options per default in the future, but as it "
3203 "drastically changes the way APT calls &dpkg; it needs a lot more testing. "
3204 "<emphasis>These options are therefore currently experimental and should not "
3205 "be used in production environments.</emphasis> It also breaks progress "
3206 "reporting such that all front-ends will currently stay around half (or more) "
3207 "of the time in the 100% state while it actually configures all packages."
3210 #. type: Content of: <refentry><refsect1><refsect2><para><literallayout>
3211 #: apt.conf.5.xml:725
3214 "DPkg::NoTriggers \"true\";\n"
3215 "PackageManager::Configure \"smart\";\n"
3216 "DPkg::ConfigurePending \"true\";\n"
3217 "DPkg::TriggersPending \"true\";"
3220 #. type: Content of: <refentry><refsect1><refsect2><para>
3221 #: apt.conf.5.xml:719
3223 "Note that it is not guaranteed that APT will support these options or that "
3224 "these options will not cause (big) trouble in the future. If you have "
3225 "understand the current risks and problems with these options, but are brave "
3226 "enough to help testing them, create a new configuration file and test a "
3227 "combination of options. Please report any bugs, problems and improvements "
3228 "you encounter and make sure to note which options you have used in your "
3229 "reports. Asking &dpkg; for help could also be useful for debugging proposes, "
3230 "see e.g. <command>dpkg --audit</command>. A defensive option combination "
3231 "would be <placeholder type=\"literallayout\" id=\"0\"/>"
3234 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3235 #: apt.conf.5.xml:732
3237 "Add the no triggers flag to all &dpkg; calls (except the ConfigurePending "
3238 "call). See &dpkg; if you are interested in what this actually means. In "
3239 "short: &dpkg; will not run the triggers when this flag is present unless it "
3240 "is explicitly called to do so in an extra call. Note that this option "
3241 "exists (undocumented) also in older APT versions with a slightly different "
3242 "meaning: Previously these option only append --no-triggers to the configure "
3243 "calls to &dpkg; - now APT will also add this flag to the unpack and remove "
3247 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3248 #: apt.conf.5.xml:740
3250 "Valid values are \"<literal>all</literal>\", \"<literal>smart</literal>\" "
3251 "and \"<literal>no</literal>\". The default value is "
3252 "\"<literal>all</literal>\", which causes APT to configure all packages. The "
3253 "\"<literal>smart</literal>\" way is to configure only packages which need to "
3254 "be configured before another package can be unpacked (Pre-Depends), and let "
3255 "the rest be configured by &dpkg; with a call generated by the "
3256 "ConfigurePending option (see below). On the other hand, "
3257 "\"<literal>no</literal>\" will not configure anything, and totally relies on "
3258 "&dpkg; for configuration (which at the moment will fail if a Pre-Depends is "
3259 "encountered). Setting this option to any value other than "
3260 "<literal>all</literal> will implicitly also activate the next option by "
3261 "default, as otherwise the system could end in an unconfigured and "
3262 "potentially unbootable state."
3265 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3266 #: apt.conf.5.xml:755
3268 "If this option is set APT will call <command>dpkg --configure "
3269 "--pending</command> to let &dpkg; handle all required configurations and "
3270 "triggers. This option is activated automatically per default if the previous "
3271 "option is not set to <literal>all</literal>, but deactivating it could be "
3272 "useful if you want to run APT multiple times in a row - e.g. in an "
3273 "installer. In these sceneries you could deactivate this option in all but "
3277 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3278 #: apt.conf.5.xml:762
3280 "Useful for the <literal>smart</literal> configuration as a package which has "
3281 "pending triggers is not considered as <literal>installed</literal>, and "
3282 "&dpkg; treats them as <literal>unpacked</literal> currently which is a "
3283 "showstopper for Pre-Dependencies (see debbugs #526774). Note that this will "
3284 "process all triggers, not only the triggers needed to configure this "
3288 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para><literallayout>
3289 #: apt.conf.5.xml:775
3292 "OrderList::Score {\n"
3294 "\tEssential 200;\n"
3296 "\tPreDepends 50;\n"
3300 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3301 #: apt.conf.5.xml:768
3303 "Essential packages (and their dependencies) should be configured immediately "
3304 "after unpacking. It is a good idea to do this quite early in the upgrade "
3305 "process as these configure calls also currently require "
3306 "<literal>DPkg::TriggersPending</literal> which will run quite a few triggers "
3307 "(which may not be needed). Essentials get per default a high score but the "
3308 "immediate flag is relatively low (a package which has a Pre-Depends is rated "
3309 "higher). These option and the others in the same group can be used to "
3310 "change the scoring. The following example shows the settings with their "
3311 "default values. <placeholder type=\"literallayout\" id=\"0\"/>"
3314 #. type: Content of: <refentry><refsect1><title>
3315 #: apt.conf.5.xml:788
3316 msgid "Periodic and Archives options"
3319 #. type: Content of: <refentry><refsect1><para>
3320 #: apt.conf.5.xml:789
3322 "<literal>APT::Periodic</literal> and <literal>APT::Archives</literal> groups "
3323 "of options configure behavior of apt periodic updates, which is done by the "
3324 "<literal>/etc/cron.daily/apt</literal> script. See the top of this script "
3325 "for the brief documentation of these options."
3328 #. type: Content of: <refentry><refsect1><title>
3329 #: apt.conf.5.xml:797
3330 msgid "Debug options"
3333 #. type: Content of: <refentry><refsect1><para>
3334 #: apt.conf.5.xml:799
3336 "Enabling options in the <literal>Debug::</literal> section will cause "
3337 "debugging information to be sent to the standard error stream of the program "
3338 "utilizing the <literal>apt</literal> libraries, or enable special program "
3339 "modes that are primarily useful for debugging the behavior of "
3340 "<literal>apt</literal>. Most of these options are not interesting to a "
3341 "normal user, but a few may be:"
3344 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
3345 #: apt.conf.5.xml:810
3347 "<literal>Debug::pkgProblemResolver</literal> enables output about the "
3348 "decisions made by <literal>dist-upgrade, upgrade, install, remove, "
3352 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
3353 #: apt.conf.5.xml:818
3355 "<literal>Debug::NoLocking</literal> disables all file locking. This can be "
3356 "used to run some operations (for instance, <literal>apt-get -s "
3357 "install</literal>) as a non-root user."
3360 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
3361 #: apt.conf.5.xml:827
3363 "<literal>Debug::pkgDPkgPM</literal> prints out the actual command line each "
3364 "time that <literal>apt</literal> invokes &dpkg;."
3368 #. motivating example, except I haven't a clue why you'd want
3370 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
3371 #: apt.conf.5.xml:835
3373 "<literal>Debug::IdentCdrom</literal> disables the inclusion of statfs data "
3377 #. type: Content of: <refentry><refsect1><para>
3378 #: apt.conf.5.xml:845
3379 msgid "A full list of debugging options to apt follows."
3382 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3383 #: apt.conf.5.xml:854
3384 msgid "Print information related to accessing <literal>cdrom://</literal> sources."
3387 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3388 #: apt.conf.5.xml:865
3389 msgid "Print information related to downloading packages using FTP."
3392 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3393 #: apt.conf.5.xml:876
3394 msgid "Print information related to downloading packages using HTTP."
3397 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3398 #: apt.conf.5.xml:887
3399 msgid "Print information related to downloading packages using HTTPS."
3402 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3403 #: apt.conf.5.xml:898
3405 "Print information related to verifying cryptographic signatures using "
3406 "<literal>gpg</literal>."
3409 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3410 #: apt.conf.5.xml:909
3412 "Output information about the process of accessing collections of packages "
3413 "stored on CD-ROMs."
3416 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3417 #: apt.conf.5.xml:919
3418 msgid "Describes the process of resolving build-dependencies in &apt-get;."
3421 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3422 #: apt.conf.5.xml:929
3424 "Output each cryptographic hash that is generated by the "
3425 "<literal>apt</literal> libraries."
3428 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3429 #: apt.conf.5.xml:939
3431 "Do not include information from <literal>statfs</literal>, namely the number "
3432 "of used and free blocks on the CD-ROM filesystem, when generating an ID for "
3436 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3437 #: apt.conf.5.xml:950
3439 "Disable all file locking. For instance, this will allow two instances of "
3440 "<quote><literal>apt-get update</literal></quote> to run at the same time."
3443 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3444 #: apt.conf.5.xml:962
3445 msgid "Log when items are added to or removed from the global download queue."
3448 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3449 #: apt.conf.5.xml:972
3451 "Output status messages and errors related to verifying checksums and "
3452 "cryptographic signatures of downloaded files."
3455 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3456 #: apt.conf.5.xml:982
3458 "Output information about downloading and applying package index list diffs, "
3459 "and errors relating to package index list diffs."
3462 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3463 #: apt.conf.5.xml:994
3465 "Output information related to patching apt package lists when downloading "
3466 "index diffs instead of full indices."
3469 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3470 #: apt.conf.5.xml:1005
3471 msgid "Log all interactions with the sub-processes that actually perform downloads."
3474 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3475 #: apt.conf.5.xml:1016
3477 "Log events related to the automatically-installed status of packages and to "
3478 "the removal of unused packages."
3481 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3482 #: apt.conf.5.xml:1026
3484 "Generate debug messages describing which packages are being automatically "
3485 "installed to resolve dependencies. This corresponds to the initial "
3486 "auto-install pass performed in, e.g., <literal>apt-get install</literal>, "
3487 "and not to the full <literal>apt</literal> dependency resolver; see "
3488 "<literal>Debug::pkgProblemResolver</literal> for that."
3491 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3492 #: apt.conf.5.xml:1040
3494 "Generate debug messages describing which packages are marked as "
3495 "keep/install/remove while the ProblemResolver does his work. Each addition "
3496 "or deletion may trigger additional actions; they are shown indented two "
3497 "additional spaces under the original entry. The format for each line is "
3498 "<literal>MarkKeep</literal>, <literal>MarkDelete</literal> or "
3499 "<literal>MarkInstall</literal> followed by <literal>package-name <a.b.c "
3500 "-> d.e.f | x.y.z> (section)</literal> where <literal>a.b.c</literal> "
3501 "is the current version of the package, <literal>d.e.f</literal> is the "
3502 "version considered for installation and <literal>x.y.z</literal> is a newer "
3503 "version, but not considered for installation (because of a low pin "
3504 "score). The later two can be omitted if there is none or if it is the same "
3505 "as the installed version. <literal>section</literal> is the name of the "
3506 "section the package appears in."
3509 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3510 #: apt.conf.5.xml:1061
3512 "When invoking &dpkg;, output the precise command line with which it is being "
3513 "invoked, with arguments separated by a single space character."
3516 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3517 #: apt.conf.5.xml:1072
3519 "Output all the data received from &dpkg; on the status file descriptor and "
3520 "any errors encountered while parsing it."
3523 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3524 #: apt.conf.5.xml:1083
3526 "Generate a trace of the algorithm that decides the order in which "
3527 "<literal>apt</literal> should pass packages to &dpkg;."
3530 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3531 #: apt.conf.5.xml:1095
3532 msgid "Output status messages tracing the steps performed when invoking &dpkg;."
3535 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3536 #: apt.conf.5.xml:1106
3537 msgid "Output the priority of each package list on startup."
3540 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3541 #: apt.conf.5.xml:1116
3543 "Trace the execution of the dependency resolver (this applies only to what "
3544 "happens when a complex dependency problem is encountered)."
3547 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3548 #: apt.conf.5.xml:1127
3550 "Display a list of all installed packages with their calculated score used by "
3551 "the pkgProblemResolver. The description of the package is the same as "
3552 "described in <literal>Debug::pkgDepCache::Marker</literal>"
3555 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3556 #: apt.conf.5.xml:1139
3558 "Print information about the vendors read from "
3559 "<filename>/etc/apt/vendors.list</filename>."
3562 #. type: Content of: <refentry><refsect1><title>
3563 #: apt.conf.5.xml:1161 apt_preferences.5.xml:545 sources.list.5.xml:211 apt-ftparchive.1.xml:596
3567 #. type: Content of: <refentry><refsect1><para>
3568 #: apt.conf.5.xml:1162
3570 "&configureindex; is a configuration file showing example values for all "
3574 #. ? reading apt.conf
3575 #. type: Content of: <refentry><refsect1><para>
3576 #: apt.conf.5.xml:1174
3577 msgid "&apt-cache;, &apt-config;, &apt-preferences;."
3580 #. type: Content of: <refentry><refnamediv><refpurpose>
3581 #: apt_preferences.5.xml:32
3582 msgid "Preference control file for APT"
3585 #. type: Content of: <refentry><refsect1><para>
3586 #: apt_preferences.5.xml:37
3588 "The APT preferences file <filename>/etc/apt/preferences</filename> and the "
3589 "fragment files in the <filename>/etc/apt/preferences.d/</filename> folder "
3590 "can be used to control which versions of packages will be selected for "
3594 #. type: Content of: <refentry><refsect1><para>
3595 #: apt_preferences.5.xml:42
3597 "Several versions of a package may be available for installation when the "
3598 "&sources-list; file contains references to more than one distribution (for "
3599 "example, <literal>stable</literal> and <literal>testing</literal>). APT "
3600 "assigns a priority to each version that is available. Subject to dependency "
3601 "constraints, <command>apt-get</command> selects the version with the highest "
3602 "priority for installation. The APT preferences override the priorities that "
3603 "APT assigns to package versions by default, thus giving the user control "
3604 "over which one is selected for installation."
3607 #. type: Content of: <refentry><refsect1><para>
3608 #: apt_preferences.5.xml:52
3610 "Several instances of the same version of a package may be available when the "
3611 "&sources-list; file contains references to more than one source. In this "
3612 "case <command>apt-get</command> downloads the instance listed earliest in "
3613 "the &sources-list; file. The APT preferences do not affect the choice of "
3614 "instance, only the choice of version."
3617 #. type: Content of: <refentry><refsect1><para>
3618 #: apt_preferences.5.xml:59
3620 "Preferences are a strong power in the hands of a system administrator but "
3621 "they can become also their biggest nightmare if used without care! APT will "
3622 "not question the preferences, so wrong settings can lead to uninstallable "
3623 "packages or wrong decisions while upgrading packages. Even more problems "
3624 "will arise if multiple distribution releases are mixed without a good "
3625 "understanding of the following paragraphs. Packages included in a specific "
3626 "release aren't tested in (and therefore don't always work as expected in) "
3627 "older or newer releases, or together with other packages from different "
3628 "releases. You have been warned."
3631 #. type: Content of: <refentry><refsect1><para>
3632 #: apt_preferences.5.xml:70
3634 "Note that the files in the <filename>/etc/apt/preferences.d</filename> "
3635 "directory are parsed in alphanumeric ascending order and need to obey the "
3636 "following naming convention: The files have either no or "
3637 "\"<literal>pref</literal>\" as filename extension and only contain "
3638 "alphanumeric, hyphen (-), underscore (_) and period (.) characters. "
3639 "Otherwise APT will print a notice that it has ignored a file, unless that "
3640 "file matches a pattern in the <literal>Dir::Ignore-Files-Silently</literal> "
3641 "configuration list - in which case it will be silently ignored."
3644 #. type: Content of: <refentry><refsect1><refsect2><title>
3645 #: apt_preferences.5.xml:79
3646 msgid "APT's Default Priority Assignments"
3649 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
3650 #: apt_preferences.5.xml:94
3653 "<command>apt-get install -t testing "
3654 "<replaceable>some-package</replaceable></command>\n"
3657 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
3658 #: apt_preferences.5.xml:97
3660 msgid "APT::Default-Release \"stable\";\n"
3663 #. type: Content of: <refentry><refsect1><refsect2><para>
3664 #: apt_preferences.5.xml:81
3666 "If there is no preferences file or if there is no entry in the file that "
3667 "applies to a particular version then the priority assigned to that version "
3668 "is the priority of the distribution to which that version belongs. It is "
3669 "possible to single out a distribution, \"the target release\", which "
3670 "receives a higher priority than other distributions do by default. The "
3671 "target release can be set on the <command>apt-get</command> command line or "
3672 "in the APT configuration file <filename>/etc/apt/apt.conf</filename>. Note "
3673 "that this has precedence over any general priority you set in the "
3674 "<filename>/etc/apt/preferences</filename> file described later, but not over "
3675 "specifically pinned packages. For example, <placeholder "
3676 "type=\"programlisting\" id=\"0\"/> <placeholder type=\"programlisting\" "
3680 #. type: Content of: <refentry><refsect1><refsect2><para>
3681 #: apt_preferences.5.xml:101
3683 "If the target release has been specified then APT uses the following "
3684 "algorithm to set the priorities of the versions of a package. Assign:"
3687 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
3688 #: apt_preferences.5.xml:106
3692 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
3693 #: apt_preferences.5.xml:107
3695 "to the versions coming from archives which in their "
3696 "<filename>Release</filename> files are marked as \"NotAutomatic: yes\" but "
3697 "<emphasis>not</emphasis> as \"ButAutomaticUpgrades: yes\" like the Debian "
3698 "<literal>experimental</literal> archive."
3701 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
3702 #: apt_preferences.5.xml:113
3703 msgid "priority 100"
3706 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
3707 #: apt_preferences.5.xml:114
3709 "to the version that is already installed (if any) and to the versions coming "
3710 "from archives which in their <filename>Release</filename> files are marked "
3711 "as \"NotAutomatic: yes\" and \"ButAutomaticUpgrades: yes\" like the Debian "
3712 "backports archive since <literal>squeeze-backports</literal>."
3715 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
3716 #: apt_preferences.5.xml:121
3717 msgid "priority 500"
3720 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
3721 #: apt_preferences.5.xml:122
3723 "to the versions that are not installed and do not belong to the target "
3727 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
3728 #: apt_preferences.5.xml:126
3729 msgid "priority 990"
3732 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
3733 #: apt_preferences.5.xml:127
3734 msgid "to the versions that are not installed and belong to the target release."
3737 #. type: Content of: <refentry><refsect1><refsect2><para>
3738 #: apt_preferences.5.xml:132
3740 "If the target release has not been specified then APT simply assigns "
3741 "priority 100 to all installed package versions and priority 500 to all "
3742 "uninstalled package versions, except versions coming from archives which in "
3743 "their <filename>Release</filename> files are marked as \"NotAutomatic: yes\" "
3744 "- these versions get the priority 1 or priority 100 if it is additionally "
3745 "marked as \"ButAutomaticUpgrades: yes\"."
3748 #. type: Content of: <refentry><refsect1><refsect2><para>
3749 #: apt_preferences.5.xml:139
3751 "APT then applies the following rules, listed in order of precedence, to "
3752 "determine which version of a package to install."
3755 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
3756 #: apt_preferences.5.xml:142
3758 "Never downgrade unless the priority of an available version exceeds 1000. "
3759 "(\"Downgrading\" is installing a less recent version of a package in place "
3760 "of a more recent version. Note that none of APT's default priorities "
3761 "exceeds 1000; such high priorities can only be set in the preferences file. "
3762 "Note also that downgrading a package can be risky.)"
3765 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
3766 #: apt_preferences.5.xml:148
3767 msgid "Install the highest priority version."
3770 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
3771 #: apt_preferences.5.xml:149
3773 "If two or more versions have the same priority, install the most recent one "
3774 "(that is, the one with the higher version number)."
3777 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
3778 #: apt_preferences.5.xml:152
3780 "If two or more versions have the same priority and version number but either "
3781 "the packages differ in some of their metadata or the "
3782 "<literal>--reinstall</literal> option is given, install the uninstalled one."
3785 #. type: Content of: <refentry><refsect1><refsect2><para>
3786 #: apt_preferences.5.xml:158
3788 "In a typical situation, the installed version of a package (priority 100) "
3789 "is not as recent as one of the versions available from the sources listed in "
3790 "the &sources-list; file (priority 500 or 990). Then the package will be "
3791 "upgraded when <command>apt-get install "
3792 "<replaceable>some-package</replaceable></command> or <command>apt-get "
3793 "upgrade</command> is executed."
3796 #. type: Content of: <refentry><refsect1><refsect2><para>
3797 #: apt_preferences.5.xml:165
3799 "More rarely, the installed version of a package is <emphasis>more</emphasis> "
3800 "recent than any of the other available versions. The package will not be "
3801 "downgraded when <command>apt-get install "
3802 "<replaceable>some-package</replaceable></command> or <command>apt-get "
3803 "upgrade</command> is executed."
3806 #. type: Content of: <refentry><refsect1><refsect2><para>
3807 #: apt_preferences.5.xml:170
3809 "Sometimes the installed version of a package is more recent than the version "
3810 "belonging to the target release, but not as recent as a version belonging to "
3811 "some other distribution. Such a package will indeed be upgraded when "
3812 "<command>apt-get install <replaceable>some-package</replaceable></command> "
3813 "or <command>apt-get upgrade</command> is executed, because at least "
3814 "<emphasis>one</emphasis> of the available versions has a higher priority "
3815 "than the installed version."
3818 #. type: Content of: <refentry><refsect1><refsect2><title>
3819 #: apt_preferences.5.xml:179
3820 msgid "The Effect of APT Preferences"
3823 #. type: Content of: <refentry><refsect1><refsect2><para>
3824 #: apt_preferences.5.xml:181
3826 "The APT preferences file allows the system administrator to control the "
3827 "assignment of priorities. The file consists of one or more multi-line "
3828 "records separated by blank lines. Records can have one of two forms, a "
3829 "specific form and a general form."
3832 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
3833 #: apt_preferences.5.xml:187
3835 "The specific form assigns a priority (a \"Pin-Priority\") to one or more "
3836 "specified packages with a specified version or version range. For example, "
3837 "the following record assigns a high priority to all versions of the "
3838 "<filename>perl</filename> package whose version number begins with "
3839 "\"<literal>&good-perl;</literal>\". Multiple packages can be separated by "
3843 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
3844 #: apt_preferences.5.xml:194
3848 "Pin: version &good-perl;*\n"
3849 "Pin-Priority: 1001\n"
3852 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
3853 #: apt_preferences.5.xml:200
3855 "The general form assigns a priority to all of the package versions in a "
3856 "given distribution (that is, to all the versions of packages that are listed "
3857 "in a certain <filename>Release</filename> file) or to all of the package "
3858 "versions coming from a particular Internet site, as identified by the site's "
3859 "fully qualified domain name."
3862 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
3863 #: apt_preferences.5.xml:206
3865 "This general-form entry in the APT preferences file applies only to groups "
3866 "of packages. For example, the following record assigns a high priority to "
3867 "all package versions available from the local site."
3870 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
3871 #: apt_preferences.5.xml:211
3875 "Pin: origin \"\"\n"
3876 "Pin-Priority: 999\n"
3879 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
3880 #: apt_preferences.5.xml:216
3882 "A note of caution: the keyword used here is \"<literal>origin</literal>\" "
3883 "which can be used to match a hostname. The following record will assign a "
3884 "high priority to all versions available from the server identified by the "
3885 "hostname \"ftp.de.debian.org\""
3888 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
3889 #: apt_preferences.5.xml:220
3893 "Pin: origin \"ftp.de.debian.org\"\n"
3894 "Pin-Priority: 999\n"
3897 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
3898 #: apt_preferences.5.xml:224
3900 "This should <emphasis>not</emphasis> be confused with the Origin of a "
3901 "distribution as specified in a <filename>Release</filename> file. What "
3902 "follows the \"Origin:\" tag in a <filename>Release</filename> file is not an "
3903 "Internet address but an author or vendor name, such as \"Debian\" or "
3907 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
3908 #: apt_preferences.5.xml:229
3910 "The following record assigns a low priority to all package versions "
3911 "belonging to any distribution whose Archive name is "
3912 "\"<literal>unstable</literal>\"."
3915 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
3916 #: apt_preferences.5.xml:233
3920 "Pin: release a=unstable\n"
3921 "Pin-Priority: 50\n"
3924 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
3925 #: apt_preferences.5.xml:238
3927 "The following record assigns a high priority to all package versions "
3928 "belonging to any distribution whose Codename is "
3929 "\"<literal>&testing-codename;</literal>\"."
3932 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
3933 #: apt_preferences.5.xml:242
3937 "Pin: release n=&testing-codename;\n"
3938 "Pin-Priority: 900\n"
3941 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
3942 #: apt_preferences.5.xml:247
3944 "The following record assigns a high priority to all package versions "
3945 "belonging to any release whose Archive name is \"<literal>stable</literal>\" "
3946 "and whose release Version number is \"<literal>&stable-version;</literal>\"."
3949 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
3950 #: apt_preferences.5.xml:252
3954 "Pin: release a=stable, v=&stable-version;\n"
3955 "Pin-Priority: 500\n"
3958 #. type: Content of: <refentry><refsect1><refsect2><title>
3959 #: apt_preferences.5.xml:262
3960 msgid "Regular expressions and &glob; syntax"
3963 #. type: Content of: <refentry><refsect1><refsect2><para>
3964 #: apt_preferences.5.xml:264
3966 "APT also supports pinning by &glob; expressions, and regular expressions "
3967 "surrounded by slashes. For example, the following example assigns the "
3968 "priority 500 to all packages from experimental where the name starts with "
3969 "gnome (as a &glob;-like expression) or contains the word kde (as a POSIX "
3970 "extended regular expression surrounded by slashes)."
3973 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
3974 #: apt_preferences.5.xml:273
3977 "Package: gnome* /kde/\n"
3978 "Pin: release n=experimental\n"
3979 "Pin-Priority: 500\n"
3982 #. type: Content of: <refentry><refsect1><refsect2><para>
3983 #: apt_preferences.5.xml:279
3985 "The rule for those expressions is that they can occur anywhere where a "
3986 "string can occur. Thus, the following pin assigns the priority 990 to all "
3987 "packages from a release starting with &ubuntu-codename;."
3990 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
3991 #: apt_preferences.5.xml:285
3995 "Pin: release n=&ubuntu-codename;*\n"
3996 "Pin-Priority: 990\n"
3999 #. type: Content of: <refentry><refsect1><refsect2><para>
4000 #: apt_preferences.5.xml:291
4002 "If a regular expression occurs in a <literal>Package</literal> field, the "
4003 "behavior is the same as if this regular expression were replaced with a list "
4004 "of all package names it matches. It is undecided whether this will change in "
4005 "the future; thus you should always list wild-card pins first, so later "
4006 "specific pins override it. The pattern \"<literal>*</literal>\" in a "
4007 "Package field is not considered a &glob; expression in itself."
4010 #. type: Content of: <refentry><refsect1><refsect2><title>
4011 #: apt_preferences.5.xml:307
4012 msgid "How APT Interprets Priorities"
4015 #. type: Content of: <refentry><refsect1><refsect2><para>
4016 #: apt_preferences.5.xml:310
4018 "Priorities (P) assigned in the APT preferences file must be positive or "
4019 "negative integers. They are interpreted as follows (roughly speaking):"
4022 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4023 #: apt_preferences.5.xml:315
4024 msgid "P >= 1000"
4027 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4028 #: apt_preferences.5.xml:316
4030 "causes a version to be installed even if this constitutes a downgrade of the "
4034 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4035 #: apt_preferences.5.xml:320
4036 msgid "990 <= P < 1000"
4039 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4040 #: apt_preferences.5.xml:321
4042 "causes a version to be installed even if it does not come from the target "
4043 "release, unless the installed version is more recent"
4046 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4047 #: apt_preferences.5.xml:326
4048 msgid "500 <= P < 990"
4051 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4052 #: apt_preferences.5.xml:327
4054 "causes a version to be installed unless there is a version available "
4055 "belonging to the target release or the installed version is more recent"
4058 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4059 #: apt_preferences.5.xml:332
4060 msgid "100 <= P < 500"
4063 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4064 #: apt_preferences.5.xml:333
4066 "causes a version to be installed unless there is a version available "
4067 "belonging to some other distribution or the installed version is more recent"
4070 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4071 #: apt_preferences.5.xml:338
4072 msgid "0 < P < 100"
4075 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4076 #: apt_preferences.5.xml:339
4078 "causes a version to be installed only if there is no installed version of "
4082 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4083 #: apt_preferences.5.xml:343
4087 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4088 #: apt_preferences.5.xml:344
4089 msgid "prevents the version from being installed"
4092 #. type: Content of: <refentry><refsect1><refsect2><para>
4093 #: apt_preferences.5.xml:349
4095 "If any specific-form records match an available package version then the "
4096 "first such record determines the priority of the package version. Failing "
4097 "that, if any general-form records match an available package version then "
4098 "the first such record determines the priority of the package version."
4101 #. type: Content of: <refentry><refsect1><refsect2><para>
4102 #: apt_preferences.5.xml:355
4104 "For example, suppose the APT preferences file contains the three records "
4105 "presented earlier:"
4108 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
4109 #: apt_preferences.5.xml:359
4113 "Pin: version &good-perl;*\n"
4114 "Pin-Priority: 1001\n"
4117 "Pin: origin \"\"\n"
4118 "Pin-Priority: 999\n"
4121 "Pin: release unstable\n"
4122 "Pin-Priority: 50\n"
4125 #. type: Content of: <refentry><refsect1><refsect2><para>
4126 #: apt_preferences.5.xml:372
4130 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4131 #: apt_preferences.5.xml:374
4133 "The most recent available version of the <literal>perl</literal> package "
4134 "will be installed, so long as that version's version number begins with "
4135 "\"<literal>&good-perl;</literal>\". If <emphasis>any</emphasis> "
4136 "&good-perl;* version of <literal>perl</literal> is available and the "
4137 "installed version is &bad-perl;*, then <literal>perl</literal> will be "
4141 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4142 #: apt_preferences.5.xml:379
4144 "A version of any package other than <literal>perl</literal> that is "
4145 "available from the local system has priority over other versions, even "
4146 "versions belonging to the target release."
4149 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4150 #: apt_preferences.5.xml:383
4152 "A version of a package whose origin is not the local system but some other "
4153 "site listed in &sources-list; and which belongs to an "
4154 "<literal>unstable</literal> distribution is only installed if it is selected "
4155 "for installation and no version of the package is already installed."
4158 #. type: Content of: <refentry><refsect1><refsect2><title>
4159 #: apt_preferences.5.xml:393
4160 msgid "Determination of Package Version and Distribution Properties"
4163 #. type: Content of: <refentry><refsect1><refsect2><para>
4164 #: apt_preferences.5.xml:395
4166 "The locations listed in the &sources-list; file should provide "
4167 "<filename>Packages</filename> and <filename>Release</filename> files to "
4168 "describe the packages available at that location."
4171 #. type: Content of: <refentry><refsect1><refsect2><para>
4172 #: apt_preferences.5.xml:399
4174 "The <filename>Packages</filename> file is normally found in the directory "
4175 "<filename>.../dists/<replaceable>dist-name</replaceable>/<replaceable>component</replaceable>/<replaceable>arch</replaceable></filename>: "
4177 "<filename>.../dists/stable/main/binary-i386/Packages</filename>. It "
4178 "consists of a series of multi-line records, one for each package available "
4179 "in that directory. Only two lines in each record are relevant for setting "
4183 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4184 #: apt_preferences.5.xml:407
4185 msgid "the <literal>Package:</literal> line"
4188 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4189 #: apt_preferences.5.xml:408
4190 msgid "gives the package name"
4193 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4194 #: apt_preferences.5.xml:411 apt_preferences.5.xml:461
4195 msgid "the <literal>Version:</literal> line"
4198 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4199 #: apt_preferences.5.xml:412
4200 msgid "gives the version number for the named package"
4203 #. type: Content of: <refentry><refsect1><refsect2><para>
4204 #: apt_preferences.5.xml:417
4206 "The <filename>Release</filename> file is normally found in the directory "
4207 "<filename>.../dists/<replaceable>dist-name</replaceable></filename>: for "
4208 "example, <filename>.../dists/stable/Release</filename>, or "
4209 "<filename>.../dists/&stable-codename;/Release</filename>. It consists of a "
4210 "single multi-line record which applies to <emphasis>all</emphasis> of the "
4211 "packages in the directory tree below its parent. Unlike the "
4212 "<filename>Packages</filename> file, nearly all of the lines in a "
4213 "<filename>Release</filename> file are relevant for setting APT priorities:"
4216 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4217 #: apt_preferences.5.xml:428
4218 msgid "the <literal>Archive:</literal> or <literal>Suite:</literal> line"
4221 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4222 #: apt_preferences.5.xml:429
4224 "names the archive to which all the packages in the directory tree belong. "
4225 "For example, the line \"Archive: stable\" or \"Suite: stable\" specifies "
4226 "that all of the packages in the directory tree below the parent of the "
4227 "<filename>Release</filename> file are in a <literal>stable</literal> "
4228 "archive. Specifying this value in the APT preferences file would require "
4232 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
4233 #: apt_preferences.5.xml:439
4235 msgid "Pin: release a=stable\n"
4238 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4239 #: apt_preferences.5.xml:445
4240 msgid "the <literal>Codename:</literal> line"
4243 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4244 #: apt_preferences.5.xml:446
4246 "names the codename to which all the packages in the directory tree belong. "
4247 "For example, the line \"Codename: &testing-codename;\" specifies that all of "
4248 "the packages in the directory tree below the parent of the "
4249 "<filename>Release</filename> file belong to a version named "
4250 "<literal>&testing-codename;</literal>. Specifying this value in the APT "
4251 "preferences file would require the line:"
4254 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
4255 #: apt_preferences.5.xml:455
4257 msgid "Pin: release n=&testing-codename;\n"
4260 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4261 #: apt_preferences.5.xml:462
4263 "names the release version. For example, the packages in the tree might "
4264 "belong to Debian release version &stable-version;. Note that there is "
4265 "normally no version number for the <literal>testing</literal> and "
4266 "<literal>unstable</literal> distributions because they have not been "
4267 "released yet. Specifying this in the APT preferences file would require one "
4268 "of the following lines."
4271 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
4272 #: apt_preferences.5.xml:471
4275 "Pin: release v=&stable-version;\n"
4276 "Pin: release a=stable, v=&stable-version;\n"
4277 "Pin: release &stable-version;\n"
4280 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4281 #: apt_preferences.5.xml:480
4282 msgid "the <literal>Component:</literal> line"
4285 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4286 #: apt_preferences.5.xml:481
4288 "names the licensing component associated with the packages in the directory "
4289 "tree of the <filename>Release</filename> file. For example, the line "
4290 "\"Component: main\" specifies that all the packages in the directory tree "
4291 "are from the <literal>main</literal> component, which entails that they are "
4292 "licensed under terms listed in the Debian Free Software Guidelines. "
4293 "Specifying this component in the APT preferences file would require the "
4297 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
4298 #: apt_preferences.5.xml:490
4300 msgid "Pin: release c=main\n"
4303 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4304 #: apt_preferences.5.xml:496
4305 msgid "the <literal>Origin:</literal> line"
4308 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4309 #: apt_preferences.5.xml:497
4311 "names the originator of the packages in the directory tree of the "
4312 "<filename>Release</filename> file. Most commonly, this is "
4313 "<literal>Debian</literal>. Specifying this origin in the APT preferences "
4314 "file would require the line:"
4317 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
4318 #: apt_preferences.5.xml:503
4320 msgid "Pin: release o=Debian\n"
4323 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4324 #: apt_preferences.5.xml:509
4325 msgid "the <literal>Label:</literal> line"
4328 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4329 #: apt_preferences.5.xml:510
4331 "names the label of the packages in the directory tree of the "
4332 "<filename>Release</filename> file. Most commonly, this is "
4333 "<literal>Debian</literal>. Specifying this label in the APT preferences "
4334 "file would require the line:"
4337 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
4338 #: apt_preferences.5.xml:516
4340 msgid "Pin: release l=Debian\n"
4343 #. type: Content of: <refentry><refsect1><refsect2><para>
4344 #: apt_preferences.5.xml:523
4346 "All of the <filename>Packages</filename> and <filename>Release</filename> "
4347 "files retrieved from locations listed in the &sources-list; file are stored "
4348 "in the directory <filename>/var/lib/apt/lists</filename>, or in the file "
4349 "named by the variable <literal>Dir::State::Lists</literal> in the "
4350 "<filename>apt.conf</filename> file. For example, the file "
4351 "<filename>debian.lcs.mit.edu_debian_dists_unstable_contrib_binary-i386_Release</filename> "
4352 "contains the <filename>Release</filename> file retrieved from the site "
4353 "<literal>debian.lcs.mit.edu</literal> for <literal>binary-i386</literal> "
4354 "architecture files from the <literal>contrib</literal> component of the "
4355 "<literal>unstable</literal> distribution."
4358 #. type: Content of: <refentry><refsect1><refsect2><title>
4359 #: apt_preferences.5.xml:536
4360 msgid "Optional Lines in an APT Preferences Record"
4363 #. type: Content of: <refentry><refsect1><refsect2><para>
4364 #: apt_preferences.5.xml:538
4366 "Each record in the APT preferences file can optionally begin with one or "
4367 "more lines beginning with the word <literal>Explanation:</literal>. This "
4368 "provides a place for comments."
4371 #. type: Content of: <refentry><refsect1><refsect2><title>
4372 #: apt_preferences.5.xml:547
4373 msgid "Tracking Stable"
4376 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4377 #: apt_preferences.5.xml:555
4380 "Explanation: Uninstall or do not install any Debian-originated\n"
4381 "Explanation: package versions other than those in the stable distro\n"
4383 "Pin: release a=stable\n"
4384 "Pin-Priority: 900\n"
4387 "Pin: release o=Debian\n"
4388 "Pin-Priority: -10\n"
4391 #. type: Content of: <refentry><refsect1><refsect2><para>
4392 #: apt_preferences.5.xml:549
4394 "The following APT preferences file will cause APT to assign a priority "
4395 "higher than the default (500) to all package versions belonging to a "
4396 "<literal>stable</literal> distribution and a prohibitively low priority to "
4397 "package versions belonging to other <literal>Debian</literal> "
4398 "distributions. <placeholder type=\"programlisting\" id=\"0\"/>"
4401 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4402 #: apt_preferences.5.xml:572 apt_preferences.5.xml:618 apt_preferences.5.xml:676
4405 "apt-get install <replaceable>package-name</replaceable>\n"
4407 "apt-get dist-upgrade\n"
4410 #. type: Content of: <refentry><refsect1><refsect2><para>
4411 #: apt_preferences.5.xml:567
4413 "With a suitable &sources-list; file and the above preferences file, any of "
4414 "the following commands will cause APT to upgrade to the latest "
4415 "<literal>stable</literal> version(s). <placeholder type=\"programlisting\" "
4419 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4420 #: apt_preferences.5.xml:584
4422 msgid "apt-get install <replaceable>package</replaceable>/testing\n"
4425 #. type: Content of: <refentry><refsect1><refsect2><para>
4426 #: apt_preferences.5.xml:578
4428 "The following command will cause APT to upgrade the specified package to the "
4429 "latest version from the <literal>testing</literal> distribution; the package "
4430 "will not be upgraded again unless this command is given again. <placeholder "
4431 "type=\"programlisting\" id=\"0\"/>"
4434 #. type: Content of: <refentry><refsect1><refsect2><title>
4435 #: apt_preferences.5.xml:590
4436 msgid "Tracking Testing or Unstable"
4439 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4440 #: apt_preferences.5.xml:599
4444 "Pin: release a=testing\n"
4445 "Pin-Priority: 900\n"
4448 "Pin: release a=unstable\n"
4449 "Pin-Priority: 800\n"
4452 "Pin: release o=Debian\n"
4453 "Pin-Priority: -10\n"
4456 #. type: Content of: <refentry><refsect1><refsect2><para>
4457 #: apt_preferences.5.xml:592
4459 "The following APT preferences file will cause APT to assign a high priority "
4460 "to package versions from the <literal>testing</literal> distribution, a "
4461 "lower priority to package versions from the <literal>unstable</literal> "
4462 "distribution, and a prohibitively low priority to package versions from "
4463 "other <literal>Debian</literal> distributions. <placeholder "
4464 "type=\"programlisting\" id=\"0\"/>"
4467 #. type: Content of: <refentry><refsect1><refsect2><para>
4468 #: apt_preferences.5.xml:613
4470 "With a suitable &sources-list; file and the above preferences file, any of "
4471 "the following commands will cause APT to upgrade to the latest "
4472 "<literal>testing</literal> version(s). <placeholder type=\"programlisting\" "
4476 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4477 #: apt_preferences.5.xml:633
4479 msgid "apt-get install <replaceable>package</replaceable>/unstable\n"
4482 #. type: Content of: <refentry><refsect1><refsect2><para>
4483 #: apt_preferences.5.xml:624
4485 "The following command will cause APT to upgrade the specified package to the "
4486 "latest version from the <literal>unstable</literal> distribution. "
4487 "Thereafter, <command>apt-get upgrade</command> will upgrade the package to "
4488 "the most recent <literal>testing</literal> version if that is more recent "
4489 "than the installed version, otherwise, to the most recent "
4490 "<literal>unstable</literal> version if that is more recent than the "
4491 "installed version. <placeholder type=\"programlisting\" id=\"0\"/>"
4494 #. type: Content of: <refentry><refsect1><refsect2><title>
4495 #: apt_preferences.5.xml:640
4496 msgid "Tracking the evolution of a codename release"
4499 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4500 #: apt_preferences.5.xml:654
4503 "Explanation: Uninstall or do not install any Debian-originated package "
4505 "Explanation: other than those in the distribution codenamed with "
4506 "&testing-codename; or sid\n"
4508 "Pin: release n=&testing-codename;\n"
4509 "Pin-Priority: 900\n"
4511 "Explanation: Debian unstable is always codenamed with sid\n"
4513 "Pin: release n=sid\n"
4514 "Pin-Priority: 800\n"
4517 "Pin: release o=Debian\n"
4518 "Pin-Priority: -10\n"
4521 #. type: Content of: <refentry><refsect1><refsect2><para>
4522 #: apt_preferences.5.xml:642
4524 "The following APT preferences file will cause APT to assign a priority "
4525 "higher than the default (500) to all package versions belonging to a "
4526 "specified codename of a distribution and a prohibitively low priority to "
4527 "package versions belonging to other <literal>Debian</literal> distributions, "
4528 "codenames and archives. Note that with this APT preference APT will follow "
4529 "the migration of a release from the archive <literal>testing</literal> to "
4530 "<literal>stable</literal> and later <literal>oldstable</literal>. If you "
4531 "want to follow for example the progress in <literal>testing</literal> "
4532 "notwithstanding the codename changes you should use the example "
4533 "configurations above. <placeholder type=\"programlisting\" id=\"0\"/>"
4536 #. type: Content of: <refentry><refsect1><refsect2><para>
4537 #: apt_preferences.5.xml:671
4539 "With a suitable &sources-list; file and the above preferences file, any of "
4540 "the following commands will cause APT to upgrade to the latest version(s) in "
4541 "the release codenamed with <literal>&testing-codename;</literal>. "
4542 "<placeholder type=\"programlisting\" id=\"0\"/>"
4545 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4546 #: apt_preferences.5.xml:691
4548 msgid "apt-get install <replaceable>package</replaceable>/sid\n"
4551 #. type: Content of: <refentry><refsect1><refsect2><para>
4552 #: apt_preferences.5.xml:682
4554 "The following command will cause APT to upgrade the specified package to the "
4555 "latest version from the <literal>sid</literal> distribution. Thereafter, "
4556 "<command>apt-get upgrade</command> will upgrade the package to the most "
4557 "recent <literal>&testing-codename;</literal> version if that is more recent "
4558 "than the installed version, otherwise, to the most recent "
4559 "<literal>sid</literal> version if that is more recent than the installed "
4560 "version. <placeholder type=\"programlisting\" id=\"0\"/>"
4563 #. type: Content of: <refentry><refsect1><para>
4564 #: apt_preferences.5.xml:706
4565 msgid "&apt-get; &apt-cache; &apt-conf; &sources-list;"
4568 #. type: Content of: <refentry><refnamediv><refpurpose>
4569 #: sources.list.5.xml:33
4570 msgid "List of configured APT data sources"
4573 #. type: Content of: <refentry><refsect1><para>
4574 #: sources.list.5.xml:38
4576 "The source list <filename>/etc/apt/sources.list</filename> is designed to "
4577 "support any number of active sources and a variety of source media. The file "
4578 "lists one source per line, with the most preferred source listed first. The "
4579 "information available from the configured sources is acquired by "
4580 "<command>apt-get update</command> (or by an equivalent command from another "
4584 #. type: Content of: <refentry><refsect1><para>
4585 #: sources.list.5.xml:45
4587 "Each line specifying a source starts with type "
4588 "(e.g. <literal>deb-src</literal>) followed by options and arguments for "
4589 "this type. Individual entries cannot be continued onto a following "
4590 "line. Empty lines are ignored, and a <literal>#</literal> character anywhere "
4591 "on a line marks the remainder of that line as a comment."
4594 #. type: Content of: <refentry><refsect1><title>
4595 #: sources.list.5.xml:53
4596 msgid "sources.list.d"
4599 #. type: Content of: <refentry><refsect1><para>
4600 #: sources.list.5.xml:54
4602 "The <filename>/etc/apt/sources.list.d</filename> directory provides a way to "
4603 "add sources.list entries in separate files. The format is the same as for "
4604 "the regular <filename>sources.list</filename> file. File names need to end "
4605 "with <filename>.list</filename> and may only contain letters (a-z and A-Z), "
4606 "digits (0-9), underscore (_), hyphen (-) and period (.) characters. "
4607 "Otherwise APT will print a notice that it has ignored a file, unless that "
4608 "file matches a pattern in the <literal>Dir::Ignore-Files-Silently</literal> "
4609 "configuration list - in which case it will be silently ignored."
4612 #. type: Content of: <refentry><refsect1><title>
4613 #: sources.list.5.xml:65
4614 msgid "The deb and deb-src types"
4617 #. type: Content of: <refentry><refsect1><para>
4618 #: sources.list.5.xml:66
4620 "The <literal>deb</literal> type references a typical two-level Debian "
4621 "archive, <filename>distribution/component</filename>. The "
4622 "<literal>distribution</literal> is generally an archive name like "
4623 "<literal>stable</literal> or <literal>testing</literal> or a codename like "
4624 "<literal>&stable-codename;</literal> or "
4625 "<literal>&testing-codename;</literal> while component is one of "
4626 "<literal>main</literal>, <literal>contrib</literal> or "
4627 "<literal>non-free</literal>. The <literal>deb-src</literal> type references "
4628 "a Debian distribution's source code in the same form as the "
4629 "<literal>deb</literal> type. A <literal>deb-src</literal> line is required "
4630 "to fetch source indexes."
4633 #. type: Content of: <refentry><refsect1><para>
4634 #: sources.list.5.xml:78
4636 "The format for a <filename>sources.list</filename> entry using the "
4637 "<literal>deb</literal> and <literal>deb-src</literal> types is:"
4640 #. type: Content of: <refentry><refsect1><literallayout>
4641 #: sources.list.5.xml:81
4643 msgid "deb [ options ] uri distribution [component1] [component2] [...]"
4646 #. type: Content of: <refentry><refsect1><para>
4647 #: sources.list.5.xml:83
4649 "The URI for the <literal>deb</literal> type must specify the base of the "
4650 "Debian distribution, from which APT will find the information it needs. "
4651 "<literal>distribution</literal> can specify an exact path, in which case the "
4652 "components must be omitted and <literal>distribution</literal> must end with "
4653 "a slash (<literal>/</literal>). This is useful for the case when only a "
4654 "particular sub-section of the archive denoted by the URI is of interest. If "
4655 "<literal>distribution</literal> does not specify an exact path, at least one "
4656 "<literal>component</literal> must be present."
4659 #. type: Content of: <refentry><refsect1><para>
4660 #: sources.list.5.xml:92
4662 "<literal>distribution</literal> may also contain a variable, "
4663 "<literal>$(ARCH)</literal> which expands to the Debian architecture (such as "
4664 "<literal>amd64</literal> or <literal>armel</literal>) used on the "
4665 "system. This permits architecture-independent "
4666 "<filename>sources.list</filename> files to be used. In general this is only "
4667 "of interest when specifying an exact path, <literal>APT</literal> will "
4668 "automatically generate a URI with the current architecture otherwise."
4671 #. type: Content of: <refentry><refsect1><para>
4672 #: sources.list.5.xml:100
4674 "Since only one distribution can be specified per line it may be necessary to "
4675 "have multiple lines for the same URI, if a subset of all available "
4676 "distributions or components at that location is desired. APT will sort the "
4677 "URI list after it has generated a complete set internally, and will collapse "
4678 "multiple references to the same Internet host, for instance, into a single "
4679 "connection, so that it does not inefficiently establish an FTP connection, "
4680 "close it, do something else, and then re-establish a connection to that same "
4681 "host. This feature is useful for accessing busy FTP sites with limits on the "
4682 "number of simultaneous anonymous users. APT also parallelizes connections to "
4683 "different hosts to more effectively deal with sites with low bandwidth."
4686 #. type: Content of: <refentry><refsect1><para>
4687 #: sources.list.5.xml:112
4689 "<literal>options</literal> is always optional and needs to be surrounded by "
4690 "square brackets. It can consist of multiple settings in the form "
4691 "<literal><replaceable>setting</replaceable>=<replaceable>value</replaceable></literal>. "
4692 "Multiple settings are separated by spaces. The following settings are "
4693 "supported by APT (note however that unsupported settings will be ignored "
4697 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4698 #: sources.list.5.xml:117
4700 "<literal>arch=<replaceable>arch1</replaceable>,<replaceable>arch2</replaceable>,…</literal> "
4701 "can be used to specify for which architectures information should be "
4702 "downloaded. If this option is not set all architectures defined by the "
4703 "<literal>APT::Architectures</literal> option will be downloaded."
4706 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4707 #: sources.list.5.xml:121
4709 "<literal>trusted=yes</literal> can be set to indicate that packages from "
4710 "this source are always authenticated even if the "
4711 "<filename>Release</filename> file is not signed or the signature can't be "
4712 "checked. This disables parts of &apt-secure; and should therefore only be "
4713 "used in a local and trusted context. <literal>trusted=no</literal> is the "
4714 "opposite which handles even correctly authenticated sources as not "
4718 #. type: Content of: <refentry><refsect1><para>
4719 #: sources.list.5.xml:128
4721 "It is important to list sources in order of preference, with the most "
4722 "preferred source listed first. Typically this will result in sorting by "
4723 "speed from fastest to slowest (CD-ROM followed by hosts on a local network, "
4724 "followed by distant Internet hosts, for example)."
4727 #. type: Content of: <refentry><refsect1><para>
4728 #: sources.list.5.xml:133
4729 msgid "Some examples:"
4732 #. type: Content of: <refentry><refsect1><literallayout>
4733 #: sources.list.5.xml:135
4736 "deb http://ftp.debian.org/debian &stable-codename; main contrib non-free\n"
4737 "deb http://security.debian.org/ &stable-codename;/updates main contrib "
4742 #. type: Content of: <refentry><refsect1><title>
4743 #: sources.list.5.xml:141
4744 msgid "URI specification"
4747 #. type: Content of: <refentry><refsect1><para>
4748 #: sources.list.5.xml:143
4749 msgid "The currently recognized URI types are:"
4752 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4753 #: sources.list.5.xml:147
4755 "The file scheme allows an arbitrary directory in the file system to be "
4756 "considered an archive. This is useful for NFS mounts and local mirrors or "
4760 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4761 #: sources.list.5.xml:154
4763 "The cdrom scheme allows APT to use a local CD-ROM drive with media "
4764 "swapping. Use the &apt-cdrom; program to create cdrom entries in the source "
4768 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4769 #: sources.list.5.xml:161
4771 "The http scheme specifies an HTTP server for the archive. If an environment "
4772 "variable <envar>http_proxy</envar> is set with the format "
4773 "http://server:port/, the proxy server specified in <envar>http_proxy</envar> "
4774 "will be used. Users of authenticated HTTP/1.1 proxies may use a string of "
4775 "the format http://user:pass@server:port/. Note that this is an insecure "
4776 "method of authentication."
4779 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4780 #: sources.list.5.xml:172
4782 "The ftp scheme specifies an FTP server for the archive. APT's FTP behavior "
4783 "is highly configurable; for more information see the &apt-conf; manual "
4784 "page. Please note that an FTP proxy can be specified by using the "
4785 "<envar>ftp_proxy</envar> environment variable. It is possible to specify an "
4786 "HTTP proxy (HTTP proxy servers often understand FTP URLs) using this "
4787 "environment variable and <emphasis>only</emphasis> this environment "
4788 "variable. Proxies using HTTP specified in the configuration file will be "
4792 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4793 #: sources.list.5.xml:184
4795 "The copy scheme is identical to the file scheme except that packages are "
4796 "copied into the cache directory instead of used directly at their location. "
4797 "This is useful for people using removable media to copy files around with "
4801 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4802 #: sources.list.5.xml:191
4804 "The rsh/ssh method invokes RSH/SSH to connect to a remote host and access "
4805 "the files as a given user. Prior configuration of rhosts or RSA keys is "
4806 "recommended. The standard <command>find</command> and <command>dd</command> "
4807 "commands are used to perform the file transfers from the remote host."
4810 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
4811 #: sources.list.5.xml:198
4812 msgid "adding more recognizable URI types"
4815 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4816 #: sources.list.5.xml:200
4818 "APT can be extended with more methods shipped in other optional packages, "
4819 "which should follow the naming scheme "
4820 "<package>apt-transport-<replaceable>method</replaceable></package>. For "
4821 "instance, the APT team also maintains the package "
4822 "<package>apt-transport-https</package>, which provides access methods for "
4823 "HTTPS URIs with features similar to the http method. Methods for using "
4824 "e.g. debtorrent are also available - see &apt-transport-debtorrent;."
4827 #. type: Content of: <refentry><refsect1><para>
4828 #: sources.list.5.xml:212
4830 "Uses the archive stored locally (or NFS mounted) at /home/jason/debian for "
4831 "stable/main, stable/contrib, and stable/non-free."
4834 #. type: Content of: <refentry><refsect1><literallayout>
4835 #: sources.list.5.xml:214
4837 msgid "deb file:/home/jason/debian stable main contrib non-free"
4840 #. type: Content of: <refentry><refsect1><para>
4841 #: sources.list.5.xml:216
4842 msgid "As above, except this uses the unstable (development) distribution."
4845 #. type: Content of: <refentry><refsect1><literallayout>
4846 #: sources.list.5.xml:217
4848 msgid "deb file:/home/jason/debian unstable main contrib non-free"
4851 #. type: Content of: <refentry><refsect1><para>
4852 #: sources.list.5.xml:219
4853 msgid "Source line for the above"
4856 #. type: Content of: <refentry><refsect1><literallayout>
4857 #: sources.list.5.xml:220
4859 msgid "deb-src file:/home/jason/debian unstable main contrib non-free"
4862 #. type: Content of: <refentry><refsect1><para>
4863 #: sources.list.5.xml:222
4865 "The first line gets package information for the architectures in "
4866 "<literal>APT::Architectures</literal> while the second always retrieves "
4867 "<literal>amd64</literal> and <literal>armel</literal>."
4870 #. type: Content of: <refentry><refsect1><literallayout>
4871 #: sources.list.5.xml:224
4874 "deb http://ftp.debian.org/debian &stable-codename; main\n"
4875 "deb [ arch=amd64,armel ] http://ftp.debian.org/debian &stable-codename; main"
4878 #. type: Content of: <refentry><refsect1><para>
4879 #: sources.list.5.xml:227
4881 "Uses HTTP to access the archive at archive.debian.org, and uses only the "
4885 #. type: Content of: <refentry><refsect1><literallayout>
4886 #: sources.list.5.xml:229
4888 msgid "deb http://archive.debian.org/debian-archive hamm main"
4891 #. type: Content of: <refentry><refsect1><para>
4892 #: sources.list.5.xml:231
4894 "Uses FTP to access the archive at ftp.debian.org, under the debian "
4895 "directory, and uses only the &stable-codename;/contrib area."
4898 #. type: Content of: <refentry><refsect1><literallayout>
4899 #: sources.list.5.xml:233
4901 msgid "deb ftp://ftp.debian.org/debian &stable-codename; contrib"
4904 #. type: Content of: <refentry><refsect1><para>
4905 #: sources.list.5.xml:235
4907 "Uses FTP to access the archive at ftp.debian.org, under the debian "
4908 "directory, and uses only the unstable/contrib area. If this line appears as "
4909 "well as the one in the previous example in <filename>sources.list</filename> "
4910 "a single FTP session will be used for both resource lines."
4913 #. type: Content of: <refentry><refsect1><literallayout>
4914 #: sources.list.5.xml:239
4916 msgid "deb ftp://ftp.debian.org/debian unstable contrib"
4919 #. type: Content of: <refentry><refsect1><para><literallayout>
4920 #: sources.list.5.xml:248
4922 msgid "deb http://ftp.tlh.debian.org/universe unstable/binary-$(ARCH)/"
4925 #. type: Content of: <refentry><refsect1><para>
4926 #: sources.list.5.xml:241
4928 "Uses HTTP to access the archive at ftp.tlh.debian.org, under the universe "
4929 "directory, and uses only files found under "
4930 "<filename>unstable/binary-i386</filename> on i386 machines, "
4931 "<filename>unstable/binary-amd64</filename> on amd64, and so forth for other "
4932 "supported architectures. [Note this example only illustrates how to use the "
4933 "substitution variable; official debian archives are not structured like "
4934 "this] <placeholder type=\"literallayout\" id=\"0\"/>"
4937 #. type: Content of: <refentry><refsect1><para>
4938 #: sources.list.5.xml:253
4939 msgid "&apt-cache; &apt-conf;"
4942 #. type: Content of: <refentry><refmeta><manvolnum>
4943 #: apt-extracttemplates.1.xml:26 apt-sortpkgs.1.xml:26 apt-ftparchive.1.xml:26
4947 #. type: Content of: <refentry><refnamediv><refpurpose>
4948 #: apt-extracttemplates.1.xml:33
4950 "Utility to extract <command>debconf</command> config and templates from "
4954 #. type: Content of: <refentry><refsect1><para>
4955 #: apt-extracttemplates.1.xml:39
4957 "<command>apt-extracttemplates</command> will take one or more Debian package "
4958 "files as input and write out (to a temporary directory) all associated "
4959 "config scripts and template files. For each passed in package that contains "
4960 "config scripts and templates, one line of output will be generated in the "
4964 #. type: Content of: <refentry><refsect1><para>
4965 #: apt-extracttemplates.1.xml:44
4966 msgid "package version template-file config-script"
4969 #. type: Content of: <refentry><refsect1><para>
4970 #: apt-extracttemplates.1.xml:45
4972 "template-file and config-script are written to the temporary directory "
4973 "specified by the <option>-t</option> or <option>--tempdir</option> "
4974 "(<literal>APT::ExtractTemplates::TempDir</literal>) directory, with "
4975 "filenames of the form <filename>package.template.XXXX</filename> and "
4976 "<filename>package.config.XXXX</filename>"
4979 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4980 #: apt-extracttemplates.1.xml:58
4982 "Temporary directory in which to write extracted <command>debconf</command> "
4983 "template files and config scripts. Configuration Item: "
4984 "<literal>APT::ExtractTemplates::TempDir</literal>"
4987 #. type: Content of: <refentry><refsect1><para>
4988 #: apt-extracttemplates.1.xml:75
4990 "<command>apt-extracttemplates</command> returns zero on normal operation, "
4991 "decimal 100 on error."
4994 #. type: Content of: <refentry><refnamediv><refpurpose>
4995 #: apt-sortpkgs.1.xml:33
4996 msgid "Utility to sort package index files"
4999 #. type: Content of: <refentry><refsect1><para>
5000 #: apt-sortpkgs.1.xml:39
5002 "<command>apt-sortpkgs</command> will take an index file (source index or "
5003 "package index) and sort the records so that they are ordered by the package "
5004 "name. It will also sort the internal fields of each record according to the "
5005 "internal sorting rules."
5008 #. type: Content of: <refentry><refsect1><para>
5009 #: apt-sortpkgs.1.xml:45
5010 msgid "All output is sent to standard output; the input must be a seekable file."
5013 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5014 #: apt-sortpkgs.1.xml:54
5016 "Use source index field ordering. Configuration Item: "
5017 "<literal>APT::SortPkgs::Source</literal>."
5020 #. type: Content of: <refentry><refsect1><para>
5021 #: apt-sortpkgs.1.xml:68
5023 "<command>apt-sortpkgs</command> returns zero on normal operation, decimal "
5027 #. type: Content of: <refentry><refnamediv><refpurpose>
5028 #: apt-ftparchive.1.xml:33
5029 msgid "Utility to generate index files"
5032 #. type: Content of: <refentry><refsect1><para>
5033 #: apt-ftparchive.1.xml:39
5035 "<command>apt-ftparchive</command> is the command line tool that generates "
5036 "the index files that APT uses to access a distribution source. The index "
5037 "files should be generated on the origin site based on the content of that "
5041 #. type: Content of: <refentry><refsect1><para>
5042 #: apt-ftparchive.1.xml:43
5044 "<command>apt-ftparchive</command> is a superset of the &dpkg-scanpackages; "
5045 "program, incorporating its entire functionality via the "
5046 "<literal>packages</literal> command. It also contains a contents file "
5047 "generator, <literal>contents</literal>, and an elaborate means to 'script' "
5048 "the generation process for a complete archive."
5051 #. type: Content of: <refentry><refsect1><para>
5052 #: apt-ftparchive.1.xml:49
5054 "Internally <command>apt-ftparchive</command> can make use of binary "
5055 "databases to cache the contents of a .deb file and it does not rely on any "
5056 "external programs aside from &gzip;. When doing a full generate it "
5057 "automatically performs file-change checks and builds the desired compressed "
5061 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5062 #: apt-ftparchive.1.xml:60
5064 "The packages command generates a package file from a directory tree. It "
5065 "takes the given directory and recursively searches it for .deb files, "
5066 "emitting a package record to stdout for each. This command is approximately "
5067 "equivalent to &dpkg-scanpackages;."
5070 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5071 #: apt-ftparchive.1.xml:65 apt-ftparchive.1.xml:89
5072 msgid "The option <option>--db</option> can be used to specify a binary caching DB."
5075 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5076 #: apt-ftparchive.1.xml:70
5078 "The <literal>sources</literal> command generates a source index file from a "
5079 "directory tree. It takes the given directory and recursively searches it "
5080 "for .dsc files, emitting a source record to stdout for each. This command is "
5081 "approximately equivalent to &dpkg-scansources;."
5084 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5085 #: apt-ftparchive.1.xml:75
5087 "If an override file is specified then a source override file will be looked "
5088 "for with an extension of .src. The --source-override option can be used to "
5089 "change the source override file that will be used."
5092 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5093 #: apt-ftparchive.1.xml:82
5095 "The <literal>contents</literal> command generates a contents file from a "
5096 "directory tree. It takes the given directory and recursively searches it for "
5097 ".deb files, and reads the file list from each file. It then sorts and writes "
5098 "to stdout the list of files matched to packages. Directories are not written "
5099 "to the output. If multiple packages own the same file then each package is "
5100 "separated by a comma in the output."
5103 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5104 #: apt-ftparchive.1.xml:94
5106 "The <literal>release</literal> command generates a Release file from a "
5107 "directory tree. It recursively searches the given directory for uncompressed "
5108 "<filename>Packages</filename> and <filename>Sources</filename> files and "
5109 "ones compressed with <command>gzip</command>, <command>bzip2</command> or "
5110 "<command>lzma</command> as well as <filename>Release</filename> and "
5111 "<filename>md5sum.txt</filename> files by default "
5112 "(<literal>APT::FTPArchive::Release::Default-Patterns</literal>). Additional "
5113 "filename patterns can be added by listing them in "
5114 "<literal>APT::FTPArchive::Release::Patterns</literal>. It then writes to "
5115 "stdout a <filename>Release</filename> file containing an MD5, SHA1 and "
5116 "SHA256 digest for each file."
5119 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5120 #: apt-ftparchive.1.xml:104
5122 "Values for the additional metadata fields in the Release file are taken from "
5123 "the corresponding variables under "
5124 "<literal>APT::FTPArchive::Release</literal>, "
5125 "e.g. <literal>APT::FTPArchive::Release::Origin</literal>. The supported "
5126 "fields are: <literal>Origin</literal>, <literal>Label</literal>, "
5127 "<literal>Suite</literal>, <literal>Version</literal>, "
5128 "<literal>Codename</literal>, <literal>Date</literal>, "
5129 "<literal>Valid-Until</literal>, <literal>Architectures</literal>, "
5130 "<literal>Components</literal>, <literal>Description</literal>."
5133 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5134 #: apt-ftparchive.1.xml:117
5136 "The <literal>generate</literal> command is designed to be runnable from a "
5137 "cron script and builds indexes according to the given config file. The "
5138 "config language provides a flexible means of specifying which index files "
5139 "are built from which directories, as well as providing a simple means of "
5140 "maintaining the required settings."
5143 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5144 #: apt-ftparchive.1.xml:126
5146 "The <literal>clean</literal> command tidies the databases used by the given "
5147 "configuration file by removing any records that are no longer necessary."
5150 #. type: Content of: <refentry><refsect1><title>
5151 #: apt-ftparchive.1.xml:132
5152 msgid "The Generate Configuration"
5155 #. type: Content of: <refentry><refsect1><para>
5156 #: apt-ftparchive.1.xml:134
5158 "The <literal>generate</literal> command uses a configuration file to "
5159 "describe the archives that are going to be generated. It follows the typical "
5160 "ISC configuration format as seen in ISC tools like bind 8 and dhcpd. "
5161 "&apt-conf; contains a description of the syntax. Note that the generate "
5162 "configuration is parsed in sectional manner, but &apt-conf; is parsed in a "
5163 "tree manner. This only effects how the scope tag is handled."
5166 #. type: Content of: <refentry><refsect1><para>
5167 #: apt-ftparchive.1.xml:142
5168 msgid "The generate configuration has four separate sections, each described below."
5171 #. type: Content of: <refentry><refsect1><refsect2><title>
5172 #: apt-ftparchive.1.xml:144
5173 msgid "<literal>Dir</literal> Section"
5176 #. type: Content of: <refentry><refsect1><refsect2><para>
5177 #: apt-ftparchive.1.xml:146
5179 "The <literal>Dir</literal> section defines the standard directories needed "
5180 "to locate the files required during the generation process. These "
5181 "directories are prepended certain relative paths defined in later sections "
5182 "to produce a complete an absolute path."
5185 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5186 #: apt-ftparchive.1.xml:153
5188 "Specifies the root of the FTP archive, in a standard Debian configuration "
5189 "this is the directory that contains the <filename>ls-LR</filename> and dist "
5193 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5194 #: apt-ftparchive.1.xml:160
5195 msgid "Specifies the location of the override files."
5198 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5199 #: apt-ftparchive.1.xml:165
5200 msgid "Specifies the location of the cache files."
5203 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5204 #: apt-ftparchive.1.xml:170
5206 "Specifies the location of the file list files, if the "
5207 "<literal>FileList</literal> setting is used below."
5210 #. type: Content of: <refentry><refsect1><refsect2><title>
5211 #: apt-ftparchive.1.xml:176
5212 msgid "<literal>Default</literal> Section"
5215 #. type: Content of: <refentry><refsect1><refsect2><para>
5216 #: apt-ftparchive.1.xml:178
5218 "The <literal>Default</literal> section specifies default values, and "
5219 "settings that control the operation of the generator. Other sections may "
5220 "override these defaults with a per-section setting."
5223 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5224 #: apt-ftparchive.1.xml:184
5226 "Sets the default compression schemes to use for the package index files. It "
5227 "is a string that contains a space separated list of at least one of: '.' (no "
5228 "compression), 'gzip' and 'bzip2'. The default for all compression schemes is "
5232 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5233 #: apt-ftparchive.1.xml:192
5235 "Sets the default list of file extensions that are package files. This "
5236 "defaults to '.deb'."
5239 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5240 #: apt-ftparchive.1.xml:198
5242 "This is similar to <literal>Packages::Compress</literal> except that it "
5243 "controls the compression for the Sources files."
5246 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5247 #: apt-ftparchive.1.xml:204
5249 "Sets the default list of file extensions that are source files. This "
5250 "defaults to '.dsc'."
5253 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5254 #: apt-ftparchive.1.xml:210
5256 "This is similar to <literal>Packages::Compress</literal> except that it "
5257 "controls the compression for the Contents files."
5260 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5261 #: apt-ftparchive.1.xml:216
5263 "This is similar to <literal>Packages::Compress</literal> except that it "
5264 "controls the compression for the Translation-en master file."
5267 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5268 #: apt-ftparchive.1.xml:222
5270 "Specifies the number of kilobytes to delink (and replace with hard links) "
5271 "per run. This is used in conjunction with the per-section "
5272 "<literal>External-Links</literal> setting."
5275 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5276 #: apt-ftparchive.1.xml:229
5278 "Specifies the mode of all created index files. It defaults to 0644. All "
5279 "index files are set to this mode with no regard to the umask."
5282 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5283 #: apt-ftparchive.1.xml:236 apt-ftparchive.1.xml:382
5285 "Specifies whether long descriptions should be included in the "
5286 "<filename>Packages</filename> file or split out into a master "
5287 "<filename>Translation-en</filename> file."
5290 #. type: Content of: <refentry><refsect1><refsect2><title>
5291 #: apt-ftparchive.1.xml:242
5292 msgid "<literal>TreeDefault</literal> Section"
5295 #. type: Content of: <refentry><refsect1><refsect2><para>
5296 #: apt-ftparchive.1.xml:244
5298 "Sets defaults specific to <literal>Tree</literal> sections. All of these "
5299 "variables are substitution variables and have the strings $(DIST), "
5300 "$(SECTION) and $(ARCH) replaced with their respective values."
5303 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5304 #: apt-ftparchive.1.xml:251
5306 "Sets the number of kilobytes of contents files that are generated each "
5307 "day. The contents files are round-robined so that over several days they "
5308 "will all be rebuilt."
5311 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5312 #: apt-ftparchive.1.xml:258
5314 "Controls the number of days a contents file is allowed to be checked without "
5315 "changing. If this limit is passed the mtime of the contents file is "
5316 "updated. This case can occur if the package file is changed in such a way "
5317 "that does not result in a new contents file [override edit for instance]. A "
5318 "hold off is allowed in hopes that new .debs will be installed, requiring a "
5319 "new file anyhow. The default is 10, the units are in days."
5322 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5323 #: apt-ftparchive.1.xml:269
5325 "Sets the top of the .deb directory tree. Defaults to "
5326 "<filename>$(DIST)/$(SECTION)/binary-$(ARCH)/</filename>"
5329 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5330 #: apt-ftparchive.1.xml:275
5332 "Sets the top of the source package directory tree. Defaults to "
5333 "<filename>$(DIST)/$(SECTION)/source/</filename>"
5336 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5337 #: apt-ftparchive.1.xml:281
5339 "Sets the output Packages file. Defaults to "
5340 "<filename>$(DIST)/$(SECTION)/binary-$(ARCH)/Packages</filename>"
5343 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5344 #: apt-ftparchive.1.xml:287
5346 "Sets the output Sources file. Defaults to "
5347 "<filename>$(DIST)/$(SECTION)/source/Sources</filename>"
5350 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5351 #: apt-ftparchive.1.xml:293
5353 "Sets the output Translation-en master file with the long descriptions if "
5354 "they should be not included in the Packages file. Defaults to "
5355 "<filename>$(DIST)/$(SECTION)/i18n/Translation-en</filename>"
5358 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5359 #: apt-ftparchive.1.xml:300
5361 "Sets the path prefix that causes a symlink to be considered an internal link "
5362 "instead of an external link. Defaults to "
5363 "<filename>$(DIST)/$(SECTION)/</filename>"
5366 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5367 #: apt-ftparchive.1.xml:307
5369 "Sets the output Contents file. Defaults to "
5370 "<filename>$(DIST)/$(SECTION)/Contents-$(ARCH)</filename>. If this setting "
5371 "causes multiple Packages files to map onto a single Contents file (as is the "
5372 "default) then <command>apt-ftparchive</command> will integrate those "
5373 "package files together automatically."
5376 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5377 #: apt-ftparchive.1.xml:316
5378 msgid "Sets header file to prepend to the contents output."
5381 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5382 #: apt-ftparchive.1.xml:321
5384 "Sets the binary cache database to use for this section. Multiple sections "
5385 "can share the same database."
5388 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5389 #: apt-ftparchive.1.xml:327
5391 "Specifies that instead of walking the directory tree, "
5392 "<command>apt-ftparchive</command> should read the list of files from the "
5393 "given file. Relative files names are prefixed with the archive directory."
5396 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5397 #: apt-ftparchive.1.xml:334
5399 "Specifies that instead of walking the directory tree, "
5400 "<command>apt-ftparchive</command> should read the list of files from the "
5401 "given file. Relative files names are prefixed with the archive directory. "
5402 "This is used when processing source indexes."
5405 #. type: Content of: <refentry><refsect1><refsect2><title>
5406 #: apt-ftparchive.1.xml:342
5407 msgid "<literal>Tree</literal> Section"
5410 #. type: Content of: <refentry><refsect1><refsect2><para>
5411 #: apt-ftparchive.1.xml:344
5413 "The <literal>Tree</literal> section defines a standard Debian file tree "
5414 "which consists of a base directory, then multiple sections in that base "
5415 "directory and finally multiple Architectures in each section. The exact "
5416 "pathing used is defined by the <literal>Directory</literal> substitution "
5420 #. type: Content of: <refentry><refsect1><refsect2><para>
5421 #: apt-ftparchive.1.xml:349
5423 "The <literal>Tree</literal> section takes a scope tag which sets the "
5424 "<literal>$(DIST)</literal> variable and defines the root of the tree (the "
5425 "path is prefixed by <literal>ArchiveDir</literal>). Typically this is a "
5426 "setting such as <filename>dists/&stable-codename;</filename>."
5429 #. type: Content of: <refentry><refsect1><refsect2><para>
5430 #: apt-ftparchive.1.xml:354
5432 "All of the settings defined in the <literal>TreeDefault</literal> section "
5433 "can be used in a <literal>Tree</literal> section as well as three new "
5437 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5438 #: apt-ftparchive.1.xml:360
5441 "for i in Sections do \n"
5442 " for j in Architectures do\n"
5443 " Generate for DIST=scope SECTION=i ARCH=j\n"
5447 #. type: Content of: <refentry><refsect1><refsect2><para>
5448 #: apt-ftparchive.1.xml:357
5450 "When processing a <literal>Tree</literal> section "
5451 "<command>apt-ftparchive</command> performs an operation similar to: "
5452 "<placeholder type=\"programlisting\" id=\"0\"/>"
5455 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5456 #: apt-ftparchive.1.xml:368
5458 "This is a space separated list of sections which appear under the "
5459 "distribution; typically this is something like <literal>main contrib "
5460 "non-free</literal>"
5463 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5464 #: apt-ftparchive.1.xml:375
5466 "This is a space separated list of all the architectures that appear under "
5467 "search section. The special architecture 'source' is used to indicate that "
5468 "this tree has a source archive."
5471 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5472 #: apt-ftparchive.1.xml:388
5474 "Sets the binary override file. The override file contains section, priority "
5475 "and maintainer address information."
5478 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5479 #: apt-ftparchive.1.xml:394
5481 "Sets the source override file. The override file contains section "
5485 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5486 #: apt-ftparchive.1.xml:400 apt-ftparchive.1.xml:446
5487 msgid "Sets the binary extra override file."
5490 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5491 #: apt-ftparchive.1.xml:405 apt-ftparchive.1.xml:451
5492 msgid "Sets the source extra override file."
5495 #. type: Content of: <refentry><refsect1><refsect2><title>
5496 #: apt-ftparchive.1.xml:410
5497 msgid "<literal>BinDirectory</literal> Section"
5500 #. type: Content of: <refentry><refsect1><refsect2><para>
5501 #: apt-ftparchive.1.xml:412
5503 "The <literal>bindirectory</literal> section defines a binary directory tree "
5504 "with no special structure. The scope tag specifies the location of the "
5505 "binary directory and the settings are similar to the <literal>Tree</literal> "
5506 "section with no substitution variables or "
5507 "<literal>Section</literal><literal>Architecture</literal> settings."
5510 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5511 #: apt-ftparchive.1.xml:420
5512 msgid "Sets the Packages file output."
5515 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5516 #: apt-ftparchive.1.xml:425
5518 "Sets the Sources file output. At least one of <literal>Packages</literal> or "
5519 "<literal>Sources</literal> is required."
5522 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5523 #: apt-ftparchive.1.xml:431
5524 msgid "Sets the Contents file output (optional)."
5527 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5528 #: apt-ftparchive.1.xml:436
5529 msgid "Sets the binary override file."
5532 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5533 #: apt-ftparchive.1.xml:441
5534 msgid "Sets the source override file."
5537 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5538 #: apt-ftparchive.1.xml:456
5539 msgid "Sets the cache DB."
5542 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5543 #: apt-ftparchive.1.xml:461
5544 msgid "Appends a path to all the output paths."
5547 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5548 #: apt-ftparchive.1.xml:466
5549 msgid "Specifies the file list file."
5552 #. type: Content of: <refentry><refsect1><title>
5553 #: apt-ftparchive.1.xml:473
5554 msgid "The Binary Override File"
5557 #. type: Content of: <refentry><refsect1><para>
5558 #: apt-ftparchive.1.xml:474
5560 "The binary override file is fully compatible with &dpkg-scanpackages;. It "
5561 "contains four fields separated by spaces. The first field is the package "
5562 "name, the second is the priority to force that package to, the third is the "
5563 "section to force that package to and the final field is the maintainer "
5564 "permutation field."
5567 #. type: Content of: <refentry><refsect1><para><literallayout>
5568 #: apt-ftparchive.1.xml:480
5570 msgid "old [// oldn]* => new"
5573 #. type: Content of: <refentry><refsect1><para><literallayout>
5574 #: apt-ftparchive.1.xml:482
5579 #. type: Content of: <refentry><refsect1><para>
5580 #: apt-ftparchive.1.xml:479
5582 "The general form of the maintainer field is: <placeholder "
5583 "type=\"literallayout\" id=\"0\"/> or simply, <placeholder "
5584 "type=\"literallayout\" id=\"1\"/> The first form allows a double-slash "
5585 "separated list of old email addresses to be specified. If any of those are "
5586 "found then new is substituted for the maintainer field. The second form "
5587 "unconditionally substitutes the maintainer field."
5590 #. type: Content of: <refentry><refsect1><title>
5591 #: apt-ftparchive.1.xml:490
5592 msgid "The Source Override File"
5595 #. type: Content of: <refentry><refsect1><para>
5596 #: apt-ftparchive.1.xml:492
5598 "The source override file is fully compatible with &dpkg-scansources;. It "
5599 "contains two fields separated by spaces. The first field is the source "
5600 "package name, the second is the section to assign it."
5603 #. type: Content of: <refentry><refsect1><title>
5604 #: apt-ftparchive.1.xml:497
5605 msgid "The Extra Override File"
5608 #. type: Content of: <refentry><refsect1><para>
5609 #: apt-ftparchive.1.xml:499
5611 "The extra override file allows any arbitrary tag to be added or replaced in "
5612 "the output. It has three columns, the first is the package, the second is "
5613 "the tag and the remainder of the line is the new value."
5616 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5617 #: apt-ftparchive.1.xml:510
5619 "Generate the given checksum. These options default to on, when turned off "
5620 "the generated index files will not have the checksum fields where possible. "
5621 "Configuration Items: "
5622 "<literal>APT::FTPArchive::<replaceable>Checksum</replaceable></literal> and "
5623 "<literal>APT::FTPArchive::<replaceable>Index</replaceable>::<replaceable>Checksum</replaceable></literal> "
5624 "where <literal><replaceable>Index</replaceable></literal> can be "
5625 "<literal>Packages</literal>, <literal>Sources</literal> or "
5626 "<literal>Release</literal> and "
5627 "<literal><replaceable>Checksum</replaceable></literal> can be "
5628 "<literal>MD5</literal>, <literal>SHA1</literal> or "
5629 "<literal>SHA256</literal>."
5632 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5633 #: apt-ftparchive.1.xml:521
5635 "Use a binary caching DB. This has no effect on the generate command. "
5636 "Configuration Item: <literal>APT::FTPArchive::DB</literal>."
5639 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5640 #: apt-ftparchive.1.xml:527
5642 "Quiet; produces output suitable for logging, omitting progress indicators. "
5643 "More q's will produce more quiet up to a maximum of 2. You can also use "
5644 "<option>-q=#</option> to set the quiet level, overriding the configuration "
5645 "file. Configuration Item: <literal>quiet</literal>."
5648 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5649 #: apt-ftparchive.1.xml:535
5651 "Perform Delinking. If the <literal>External-Links</literal> setting is used "
5652 "then this option actually enables delinking of the files. It defaults to on "
5653 "and can be turned off with <option>--no-delink</option>. Configuration "
5654 "Item: <literal>APT::FTPArchive::DeLinkAct</literal>."
5657 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5658 #: apt-ftparchive.1.xml:543
5660 "Perform contents generation. When this option is set and package indexes are "
5661 "being generated with a cache DB then the file listing will also be extracted "
5662 "and stored in the DB for later use. When using the generate command this "
5663 "option also allows the creation of any Contents files. The default is on. "
5664 "Configuration Item: <literal>APT::FTPArchive::Contents</literal>."
5667 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5668 #: apt-ftparchive.1.xml:553
5670 "Select the source override file to use with the <literal>sources</literal> "
5671 "command. Configuration Item: "
5672 "<literal>APT::FTPArchive::SourceOverride</literal>."
5675 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5676 #: apt-ftparchive.1.xml:559
5678 "Make the caching databases read only. Configuration Item: "
5679 "<literal>APT::FTPArchive::ReadOnlyDB</literal>."
5682 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5683 #: apt-ftparchive.1.xml:564
5685 "Accept in the <literal>packages</literal> and <literal>contents</literal> "
5686 "commands only package files matching <literal>*_arch.deb</literal> or "
5687 "<literal>*_all.deb</literal> instead of all package files in the given "
5688 "path. Configuration Item: <literal>APT::FTPArchive::Architecture</literal>."
5691 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5692 #: apt-ftparchive.1.xml:572
5694 "&apt-ftparchive; caches as much as possible of metadata in a cachedb. If "
5695 "packages are recompiled and/or republished with the same version again, this "
5696 "will lead to problems as the now outdated cached metadata like size and "
5697 "checksums will be used. With this option enabled this will no longer happen "
5698 "as it will be checked if the file was changed. Note that this option is set "
5699 "to \"<literal>false</literal>\" by default as it is not recommend to upload "
5700 "multiply versions/builds of a package with the same versionnumber, so in "
5701 "theory nobody will have these problems and therefore all these extra checks "
5705 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5706 #: apt-ftparchive.1.xml:584
5708 "This configuration option defaults to \"<literal>true</literal>\" and should "
5709 "only be set to <literal>\"false\"</literal> if the Archive generated with "
5710 "&apt-ftparchive; also provides <filename>Translation</filename> files. Note "
5711 "that the <filename>Translation-en</filename> master file can only be created "
5712 "in the generate command."
5715 #. type: Content of: <refentry><refsect1><para><programlisting>
5716 #: apt-ftparchive.1.xml:602
5719 "<command>apt-ftparchive</command> packages "
5720 "<replaceable>directory</replaceable> | <command>gzip</command> > "
5721 "<filename>Packages.gz</filename>\n"
5724 #. type: Content of: <refentry><refsect1><para>
5725 #: apt-ftparchive.1.xml:598
5727 "To create a compressed Packages file for a directory containing binary "
5728 "packages (.deb): <placeholder type=\"programlisting\" id=\"0\"/>"
5731 #. type: Content of: <refentry><refsect1><para>
5732 #: apt-ftparchive.1.xml:612
5734 "<command>apt-ftparchive</command> returns zero on normal operation, decimal "
5747 msgid "16 June 1998"
5764 msgid "apt - Advanced Package Tool"
5787 "APT is a management system for software packages. For normal day to day "
5788 "package management there are several frontends available, such as "
5789 "B<aptitude>(8) for the command line or B<synaptic>(8) for the X Window "
5790 "System. Some options are only implemented in B<apt-get>(8) though."
5802 "B<apt-cache>(8), B<apt-get>(8), B<apt.conf>(5), B<sources.list>(5), "
5803 "B<apt_preferences>(5), B<apt-secure>(8)"
5814 msgid "apt returns zero on normal operation, decimal 100 on error."
5825 msgid "This manpage isn't even started."
5831 "See E<lt>http://bugs.debian.org/aptE<gt>. If you wish to report a bug in "
5832 "B<apt>, please see I</usr/share/doc/debian/bug-reporting.txt> or the "
5833 "B<reportbug>(1) command."
5844 msgid "apt was written by the APT team E<lt>apt@packages.debian.orgE<gt>."
5847 #. type: <title></title>
5849 msgid "APT User's Guide"
5852 #. type: <author></author>
5853 #: guide.sgml:6 offline.sgml:6
5854 msgid "<name>Jason Gunthorpe </name><email>jgg@debian.org</email>"
5857 #. type: <version></version>
5859 msgid "$Id: guide.sgml,v 1.7 2003/04/26 23:26:13 doogie Exp $"
5862 #. type: <abstract></abstract>
5865 "This document provides an overview of how to use the the APT package "
5869 #. type: <copyrightsummary></copyrightsummary>
5871 msgid "Copyright © Jason Gunthorpe, 1998."
5875 #: guide.sgml:21 offline.sgml:22
5877 "\"APT\" and this document are free software; you can redistribute them "
5878 "and/or modify them under the terms of the GNU General Public License as "
5879 "published by the Free Software Foundation; either version 2 of the License, "
5880 "or (at your option) any later version."
5884 #: guide.sgml:24 offline.sgml:25
5886 "For more details, on Debian systems, see the file "
5887 "/usr/share/common-licenses/GPL for the full license."
5890 #. type: <heading></heading>
5898 "The APT package currently contains two sections, the APT "
5899 "<prgn>dselect</prgn> method and the <prgn>apt-get</prgn> command line user "
5900 "interface. Both provide a way to install and remove packages as well as "
5901 "download new packages from the Internet."
5904 #. type: <heading></heading>
5906 msgid "Anatomy of the Package System"
5912 "The Debian packaging system has a large amount of information associated "
5913 "with each package to help assure that it integrates cleanly and easily into "
5914 "the system. The most prominent of its features is the dependency system."
5920 "The dependency system allows individual programs to make use of shared "
5921 "elements in the system such as libraries. It simplifies placing infrequently "
5922 "used portions of a program in separate packages to reduce the number of "
5923 "things the average user is required to install. Also, it allows for choices "
5924 "in mail transport agents, X servers and so on."
5930 "The first step to understanding the dependency system is to grasp the "
5931 "concept of a simple dependency. The meaning of a simple dependency is that a "
5932 "package requires another package to be installed at the same time to work "
5939 "For instance, mailcrypt is an emacs extension that aids in encrypting email "
5940 "with GPG. Without GPGP installed mailcrypt is useless, so mailcrypt has a "
5941 "simple dependency on GPG. Also, because it is an emacs extension it has a "
5942 "simple dependency on emacs, without emacs it is completely useless."
5948 "The other important dependency to understand is a conflicting dependency. It "
5949 "means that a package, when installed with another package, will not work and "
5950 "may possibly be extremely harmful to the system. As an example consider a "
5951 "mail transport agent such as sendmail, exim or qmail. It is not possible to "
5952 "have two mail transport agents installed because both need to listen to the "
5953 "network to receive mail. Attempting to install two will seriously damage the "
5954 "system so all mail transport agents have a conflicting dependency with all "
5955 "other mail transport agents."
5961 "As an added complication there is the possibility for a package to pretend "
5962 "to be another package. Consider that exim and sendmail for many intents are "
5963 "identical, they both deliver mail and understand a common interface. Hence, "
5964 "the package system has a way for them to declare that they are both "
5965 "mail-transport-agents. So, exim and sendmail both declare that they provide "
5966 "a mail-transport-agent and other packages that need a mail transport agent "
5967 "depend on mail-transport-agent. This can add a great deal of confusion when "
5968 "trying to manually fix packages."
5974 "At any given time a single dependency may be met by packages that are "
5975 "already installed or it may not be. APT attempts to help resolve dependency "
5976 "issues by providing a number of automatic algorithms that help in selecting "
5977 "packages for installation."
5980 #. type: <heading></heading>
5988 "<prgn>apt-get</prgn> provides a simple way to install packages from the "
5989 "command line. Unlike <prgn>dpkg</prgn>, <prgn>apt-get</prgn> does not "
5990 "understand .deb files, it works with the package's proper name and can only "
5991 "install .deb archives from a <em>Source</em>."
5997 "The first <footnote><p>If you are using an http proxy server you must set "
5998 "the http_proxy environment variable first, see "
5999 "sources.list(5)</p></footnote> thing that should be done before using "
6000 "<prgn>apt-get</prgn> is to fetch the package lists from the <em>Sources</em> "
6001 "so that it knows what packages are available. This is done with <tt>apt-get "
6002 "update</tt>. For instance,"
6005 #. type: <example></example>
6009 "# apt-get update\n"
6010 "Get http://ftp.de.debian.org/debian-non-US/ stable/binary-i386/ Packages\n"
6011 "Get http://llug.sep.bnl.gov/debian/ testing/contrib Packages\n"
6012 "Reading Package Lists... Done\n"
6013 "Building Dependency Tree... Done"
6016 #. type: <p><taglist>
6018 msgid "Once updated there are several commands that can be used:"
6021 #. type: <tag></tag>
6029 "Upgrade will attempt to gently upgrade the whole system. Upgrade will never "
6030 "install a new package or remove an existing package, nor will it ever "
6031 "upgrade a package that might cause some other package to break. This can be "
6032 "used daily to relatively safely upgrade the system. Upgrade will list all of "
6033 "the packages that it could not upgrade, this usually means that they depend "
6034 "on new packages or conflict with some other package. <prgn>dselect</prgn> or "
6035 "<tt>apt-get install</tt> can be used to force these packages to install."
6038 #. type: <tag></tag>
6046 "Install is used to install packages by name. The package is automatically "
6047 "fetched and installed. This can be useful if you already know the name of "
6048 "the package to install and do not want to go into a GUI to select it. Any "
6049 "number of packages may be passed to install, they will all be "
6050 "fetched. Install automatically attempts to resolve dependency problems with "
6051 "the listed packages and will print a summary and ask for confirmation if "
6052 "anything other than its arguments are changed."
6055 #. type: <tag></tag>
6057 msgid "dist-upgrade"
6063 "Dist-upgrade is a complete upgrader designed to simplify upgrading between "
6064 "releases of Debian. It uses a sophisticated algorithm to determine the best "
6065 "set of packages to install, upgrade and remove to get as much of the system "
6066 "to the newest release. In some situations it may be desired to use "
6067 "dist-upgrade rather than spend the time manually resolving dependencies in "
6068 "<prgn>dselect</prgn>. Once dist-upgrade has completed then "
6069 "<prgn>dselect</prgn> can be used to install any packages that may have been "
6076 "It is important to closely look at what dist-upgrade is going to do, its "
6077 "decisions may sometimes be quite surprising."
6083 "<prgn>apt-get</prgn> has several command line options that are detailed in "
6084 "its man page, <manref section=\"8\" name=\"apt-get\">. The most useful "
6085 "option is <tt>-d</tt> which does not install the fetched files. If the "
6086 "system has to download a large number of package it would be undesired to "
6087 "start installing them in case something goes wrong. When <tt>-d</tt> is used "
6088 "the downloaded archives can be installed by simply running the command that "
6089 "caused them to be downloaded again without <tt>-d</tt>."
6092 #. type: <heading></heading>
6100 "The APT <prgn>dselect</prgn> method provides the complete APT system with "
6101 "the <prgn>dselect</prgn> package selection GUI. <prgn>dselect</prgn> is used "
6102 "to select the packages to be installed or removed and APT actually installs "
6109 "To enable the APT method you need to select [A]ccess in <prgn>dselect</prgn> "
6110 "and then choose the APT method. You will be prompted for a set of "
6111 "<em>Sources</em> which are places to fetch archives from. These can be "
6112 "remote Internet sites, local Debian mirrors or CD-ROMs. Each source can "
6113 "provide a fragment of the total Debian archive, APT will automatically "
6114 "combine them to form a complete set of packages. If you have a CD-ROM then "
6115 "it is a good idea to specify it first and then specify a mirror so that you "
6116 "have access to the latest bug fixes. APT will automatically use packages on "
6117 "your CD-ROM before downloading from the Internet."
6120 #. type: <example></example>
6124 " Set up a list of distribution source locations\n"
6126 " Please give the base URL of the debian distribution.\n"
6127 " The access schemes I know about are: http file\n"
6130 " file:/mnt/debian,\n"
6131 " ftp://ftp.debian.org/debian,\n"
6132 " http://ftp.de.debian.org/debian,\n"
6135 " URL [http://llug.sep.bnl.gov/debian]:"
6141 "The <em>Sources</em> setup starts by asking for the base of the Debian "
6142 "archive, defaulting to a HTTP mirror. Next it asks for the distribution to "
6146 #. type: <example></example>
6150 " Please give the distribution tag to get or a path to the\n"
6151 " package file ending in a /. The distribution\n"
6152 " tags are typically something like: stable unstable testing non-US\n"
6154 " Distribution [stable]:"
6160 "The distribution refers to the Debian version in the archive, "
6161 "<em>stable</em> refers to the latest released version and <em>unstable</em> "
6162 "refers to the developmental version. <em>non-US</em> is only available on "
6163 "some mirrors and refers to packages that contain encryption technology or "
6164 "other things that cannot be exported from the United States. Importing these "
6165 "packages into the US is legal however."
6168 #. type: <example></example>
6172 " Please give the components to get\n"
6173 " The components are typically something like: main contrib non-free\n"
6175 " Components [main contrib non-free]:"
6181 "The components list refers to the list of sub distributions to fetch. The "
6182 "distribution is split up based on software licenses, main being DFSG free "
6183 "packages while contrib and non-free contain things that have various "
6184 "restrictions placed on their use and distribution."
6190 "Any number of sources can be added, the setup script will continue to prompt "
6191 "until you have specified all that you want."
6197 "Before starting to use <prgn>dselect</prgn> it is necessary to update the "
6198 "available list by selecting [U]pdate from the menu. This is a superset of "
6199 "<tt>apt-get update</tt> that makes the fetched information available to "
6200 "<prgn>dselect</prgn>. [U]pdate must be performed even if <tt>apt-get "
6201 "update</tt> has been run before."
6207 "You can then go on and make your selections using [S]elect and then perform "
6208 "the installation using [I]nstall. When using the APT method the [C]onfig and "
6209 "[R]emove commands have no meaning, the [I]nstall command performs both of "
6216 "By default APT will automatically remove the package (.deb) files once they "
6217 "have been successfully installed. To change this behavior place "
6218 "<tt>Dselect::clean \"prompt\";</tt> in /etc/apt/apt.conf."
6221 #. type: <heading></heading>
6223 msgid "The Interface"
6229 "Both that APT <prgn>dselect</prgn> method and <prgn>apt-get</prgn> share the "
6230 "same interface. It is a simple system that generally tells you what it will "
6231 "do and then goes and does it. <footnote><p>The <prgn>dselect</prgn> method "
6232 "actually is a set of wrapper scripts to <prgn>apt-get</prgn>. The method "
6233 "actually provides more functionality than is present in <prgn>apt-get</prgn> "
6234 "alone.</p></footnote> After printing out a summary of what will happen APT "
6235 "then will print out some informative status messages so that you can "
6236 "estimate how far along it is and how much is left to do."
6239 #. type: <heading></heading>
6247 "Before all operations except update, APT performs a number of actions to "
6248 "prepare its internal state. It also does some checks of the system's "
6249 "state. At any time these operations can be performed by running <tt>apt-get "
6253 #. type: <example></example>
6258 "Reading Package Lists... Done\n"
6259 "Building Dependency Tree... Done"
6265 "The first thing it does is read all the package files into memory. APT uses "
6266 "a caching scheme so this operation will be faster the second time it is "
6267 "run. If some of the package files are not found then they will be ignored "
6268 "and a warning will be printed when apt-get exits."
6274 "The final operation performs a detailed analysis of the system's "
6275 "dependencies. It checks every dependency of every installed or unpacked "
6276 "package and considers if it is OK. Should this find a problem then a report "
6277 "will be printed out and <prgn>apt-get</prgn> will refuse to run."
6280 #. type: <example></example>
6285 "Reading Package Lists... Done\n"
6286 "Building Dependency Tree... Done\n"
6287 "You might want to run apt-get -f install' to correct these.\n"
6288 "Sorry, but the following packages have unmet dependencies:\n"
6289 " 9fonts: Depends: xlib6g but it is not installed\n"
6290 " uucp: Depends: mailx but it is not installed\n"
6291 " blast: Depends: xlib6g (>= 3.3-5) but it is not installed\n"
6292 " adduser: Depends: perl-base but it is not installed\n"
6293 " aumix: Depends: libgpmg1 but it is not installed\n"
6294 " debiandoc-sgml: Depends: sgml-base but it is not installed\n"
6295 " bash-builtins: Depends: bash (>= 2.01) but 2.0-3 is installed\n"
6296 " cthugha: Depends: svgalibg1 but it is not installed\n"
6297 " Depends: xlib6g (>= 3.3-5) but it is not installed\n"
6298 " libreadlineg2: Conflicts:libreadline2 (<< 2.1-2.1)"
6304 "In this example the system has many problems, including a serious problem "
6305 "with libreadlineg2. For each package that has unmet dependencies a line is "
6306 "printed out indicating the package with the problem and the dependencies "
6307 "that are unmet. A short explanation of why the package has a dependency "
6308 "problem is also included."
6314 "There are two ways a system can get into a broken state like this. The first "
6315 "is caused by <prgn>dpkg</prgn> missing some subtle relationships between "
6316 "packages when performing upgrades. <footnote><p>APT however considers all "
6317 "known dependencies and attempts to prevent broken "
6318 "packages</p></footnote>. The second is if a package installation fails "
6319 "during an operation. In this situation a package may have been unpacked "
6320 "without its dependents being installed."
6326 "The second situation is much less serious than the first because APT places "
6327 "certain constraints on the order that packages are installed. In both cases "
6328 "supplying the <tt>-f</tt> option to <prgn>apt-get</prgn> will cause APT to "
6329 "deduce a possible solution to the problem and then continue on. The APT "
6330 "<prgn>dselect</prgn> method always supplies the <tt>-f</tt> option to allow "
6331 "for easy continuation of failed maintainer scripts."
6337 "However, if the <tt>-f</tt> option is used to correct a seriously broken "
6338 "system caused by the first case then it is possible that it will either fail "
6339 "immediately or the installation sequence will fail. In either case it is "
6340 "necessary to manually use dpkg (possibly with forcing options) to correct "
6341 "the situation enough to allow APT to proceed."
6344 #. type: <heading></heading>
6346 msgid "The Status Report"
6352 "Before proceeding <prgn>apt-get</prgn> will present a report on what will "
6353 "happen. Generally the report reflects the type of operation being performed "
6354 "but there are several common elements. In all cases the lists reflect the "
6355 "final state of things, taking into account the <tt>-f</tt> option and any "
6356 "other relevant activities to the command being executed."
6359 #. type: <heading></heading>
6361 msgid "The Extra Package list"
6364 #. type: <example></example>
6368 "The following extra packages will be installed:\n"
6369 " libdbd-mysql-perl xlib6 zlib1 xzx libreadline2 libdbd-msql-perl\n"
6370 " mailpgp xdpkg fileutils pinepgp zlib1g xlib6g perl-base\n"
6371 " bin86 libgdbm1 libgdbmg1 quake-lib gmp2 bcc xbuffy\n"
6372 " squake pgp-i python-base debmake ldso perl libreadlineg2\n"
6379 "The Extra Package list shows all of the packages that will be installed or "
6380 "upgraded in excess of the ones mentioned on the command line. It is only "
6381 "generated for an <tt>install</tt> command. The listed packages are often the "
6382 "result of an Auto Install."
6385 #. type: <heading></heading>
6387 msgid "The Packages to Remove"
6390 #. type: <example></example>
6394 "The following packages will be REMOVED:\n"
6395 " xlib6-dev xpat2 tk40-dev xkeycaps xbattle xonix\n"
6396 " xdaliclock tk40 tk41 xforms0.86 ghostview xloadimage xcolorsel\n"
6397 " xadmin xboard perl-debug tkined xtetris libreadline2-dev perl-suid\n"
6404 "The Packages to Remove list shows all of the packages that will be removed "
6405 "from the system. It can be shown for any of the operations and should be "
6406 "given a careful inspection to ensure nothing important is to be taken "
6407 "off. The <tt>-f</tt> option is especially good at generating packages to "
6408 "remove so extreme care should be used in that case. The list may contain "
6409 "packages that are going to be removed because they are only partially "
6410 "installed, possibly due to an aborted installation."
6413 #. type: <heading></heading>
6415 msgid "The New Packages list"
6418 #. type: <example></example>
6422 "The following NEW packages will installed:\n"
6423 " zlib1g xlib6g perl-base libgdbmg1 quake-lib gmp2 pgp-i python-base"
6429 "The New Packages list is simply a reminder of what will happen. The packages "
6430 "listed are not presently installed in the system but will be when APT is "
6434 #. type: <heading></heading>
6436 msgid "The Kept Back list"
6439 #. type: <example></example>
6443 "The following packages have been kept back\n"
6444 " compface man-db tetex-base msql libpaper svgalib1\n"
6445 " gs snmp arena lynx xpat2 groff xscreensaver"
6451 "Whenever the whole system is being upgraded there is the possibility that "
6452 "new versions of packages cannot be installed because they require new things "
6453 "or conflict with already installed things. In this case the package will "
6454 "appear in the Kept Back list. The best way to convince packages listed there "
6455 "to install is with <tt>apt-get install</tt> or by using <prgn>dselect</prgn> "
6456 "to resolve their problems."
6459 #. type: <heading></heading>
6461 msgid "Held Packages warning"
6464 #. type: <example></example>
6468 "The following held packages will be changed:\n"
6475 "Sometimes you can ask APT to install a package that is on hold, in such a "
6476 "case it prints out a warning that the held package is going to be "
6477 "changed. This should only happen during dist-upgrade or install."
6480 #. type: <heading></heading>
6482 msgid "Final summary"
6487 msgid "Finally, APT will print out a summary of all the changes that will occur."
6490 #. type: <example></example>
6494 "206 packages upgraded, 8 newly installed, 23 to remove and 51 not "
6496 "12 packages not fully installed or removed.\n"
6497 "Need to get 65.7M/66.7M of archives. After unpacking 26.5M will be used."
6503 "The first line of the summary simply is a reduced version of all of the "
6504 "lists and includes the number of upgrades - that is packages already "
6505 "installed that have new versions available. The second line indicates the "
6506 "number of poorly configured packages, possibly the result of an aborted "
6507 "installation. The final line shows the space requirements that the "
6508 "installation needs. The first pair of numbers refer to the size of the "
6509 "archive files. The first number indicates the number of bytes that must be "
6510 "fetched from remote locations and the second indicates the total size of all "
6511 "the archives required. The next number indicates the size difference between "
6512 "the presently installed packages and the newly installed packages. It is "
6513 "roughly equivalent to the space required in /usr after everything is "
6514 "done. If a large number of packages are being removed then the value may "
6515 "indicate the amount of space that will be freed."
6521 "Some other reports can be generated by using the -u option to show packages "
6522 "to upgrade, they are similar to the previous examples."
6525 #. type: <heading></heading>
6527 msgid "The Status Display"
6533 "During the download of archives and package files APT prints out a series of "
6537 #. type: <example></example>
6541 "# apt-get update\n"
6542 "Get:1 http://ftp.de.debian.org/debian-non-US/ stable/non-US/ Packages\n"
6543 "Get:2 http://llug.sep.bnl.gov/debian/ testing/contrib Packages\n"
6544 "Hit http://llug.sep.bnl.gov/debian/ testing/main Packages\n"
6545 "Get:4 http://ftp.de.debian.org/debian-non-US/ unstable/binary-i386/ "
6547 "Get:5 http://llug.sep.bnl.gov/debian/ testing/non-free Packages\n"
6548 "11% [5 testing/non-free `Waiting for file' 0/32.1k 0%] 2203b/s 1m52s"
6554 "The lines starting with <em>Get</em> are printed out when APT begins to "
6555 "fetch a file while the last line indicates the progress of the download. The "
6556 "first percent value on the progress line indicates the total percent done of "
6557 "all files. Unfortunately since the size of the Package files is unknown "
6558 "<tt>apt-get update</tt> estimates the percent done which causes some "
6565 "The next section of the status line is repeated once for each download "
6566 "thread and indicates the operation being performed and some useful "
6567 "information about what is happening. Sometimes this section will simply read "
6568 "<em>Forking</em> which means the OS is loading the download module. The "
6569 "first word after the [ is the fetch number as shown on the history "
6570 "lines. The next word is the short form name of the object being "
6571 "downloaded. For archives it will contain the name of the package that is "
6578 "Inside of the single quote is an informative string indicating the progress "
6579 "of the negotiation phase of the download. Typically it progresses from "
6580 "<em>Connecting</em> to <em>Waiting for file</em> to <em>Downloading</em> or "
6581 "<em>Resuming</em>. The final value is the number of bytes downloaded from "
6582 "the remote site. Once the download begins this is represented as "
6583 "<tt>102/10.2k</tt> indicating that 102 bytes have been fetched and 10.2 "
6584 "kilobytes is expected. The total size is always shown in 4 figure notation "
6585 "to preserve space. After the size display is a percent meter for the file "
6586 "itself. The second last element is the instantaneous average speed. This "
6587 "values is updated every 5 seconds and reflects the rate of data transfer for "
6588 "that period. Finally is shown the estimated transfer time. This is updated "
6589 "regularly and reflects the time to complete everything at the shown transfer "
6596 "The status display updates every half second to provide a constant feedback "
6597 "on the download progress while the Get lines scroll back whenever a new file "
6598 "is started. Since the status display is constantly updated it is unsuitable "
6599 "for logging to a file, use the <tt>-q</tt> option to remove the status "
6603 #. type: <heading></heading>
6611 "APT uses <prgn>dpkg</prgn> for installing the archives and will switch over "
6612 "to the <prgn>dpkg</prgn> interface once downloading is "
6613 "completed. <prgn>dpkg</prgn> will also ask a number of questions as it "
6614 "processes the packages and the packages themselves may also ask several "
6615 "questions. Before each question there is usually a description of what it is "
6616 "asking and the questions are too varied to discuss completely here."
6619 #. type: <title></title>
6621 msgid "Using APT Offline"
6624 #. type: <version></version>
6626 msgid "$Id: offline.sgml,v 1.8 2003/02/12 15:06:41 doogie Exp $"
6629 #. type: <abstract></abstract>
6632 "This document describes how to use APT in a non-networked environment, "
6633 "specifically a 'sneaker-net' approach for performing upgrades."
6636 #. type: <copyrightsummary></copyrightsummary>
6638 msgid "Copyright © Jason Gunthorpe, 1999."
6641 #. type: <heading></heading>
6643 msgid "Introduction"
6646 #. type: <heading></heading>
6647 #: offline.sgml:34 offline.sgml:65 offline.sgml:180
6654 "Normally APT requires direct access to a Debian archive, either from a local "
6655 "media or through a network. Another common complaint is that a Debian "
6656 "machine is on a slow link, such as a modem and another machine has a very "
6657 "fast connection but they are physically distant."
6663 "The solution to this is to use large removable media such as a Zip disc or a "
6664 "SuperDisk disc. These discs are not large enough to store the entire Debian "
6665 "archive but can easily fit a subset large enough for most users. The idea is "
6666 "to use APT to generate a list of packages that are required and then fetch "
6667 "them onto the disc using another machine with good connectivity. It is even "
6668 "possible to use another Debian machine with APT or to use a completely "
6669 "different OS and a download tool like wget. Let <em>remote host</em> mean "
6670 "the machine downloading the packages, and <em>target host</em> the one with "
6671 "bad or no connection."
6677 "This is achieved by creatively manipulating the APT configuration file. The "
6678 "essential premise to tell APT to look on a disc for it's archive files. Note "
6679 "that the disc should be formated with a filesystem that can handle long file "
6680 "names such as ext2, fat32 or vfat."
6683 #. type: <heading></heading>
6685 msgid "Using APT on both machines"
6688 #. type: <p><example>
6691 "APT being available on both machines gives the simplest configuration. The "
6692 "basic idea is to place a copy of the status file on the disc and use the "
6693 "remote machine to fetch the latest package files and decide which packages "
6694 "to download. The disk directory structure should look like:"
6697 #. type: <example></example>
6711 #. type: <heading></heading>
6713 msgid "The configuration file"
6719 "The configuration file should tell APT to store its files on the disc and to "
6720 "use the configuration files on the disc as well. The sources.list should "
6721 "contain the proper sites that you wish to use from the remote machine, and "
6722 "the status file should be a copy of <em>/var/lib/dpkg/status</em> from the "
6723 "<em>target host</em>. Please note, if you are using a local archive you must "
6724 "use copy URIs, the syntax is identical to file URIs."
6727 #. type: <p><example>
6730 "<em>apt.conf</em> must contain the necessary information to make APT use the "
6734 #. type: <example></example>
6740 " /* This is not necessary if the two machines are the same arch, it "
6742 " the remote APT what architecture the target machine is */\n"
6743 " Architecture \"i386\";\n"
6745 " Get::Download-Only \"true\";\n"
6750 " /* Use the disc for state information and redirect the status file from\n"
6751 " the /var/lib/dpkg default */\n"
6752 " State \"/disc/\";\n"
6753 " State::status \"status\";\n"
6755 " // Binary caches will be stored locally\n"
6756 " Cache::archives \"/disc/archives/\";\n"
6757 " Cache \"/tmp/\";\n"
6759 " // Location of the source list.\n"
6760 " Etc \"/disc/\";\n"
6764 #. type: </example></p>
6767 "More details can be seen by examining the apt.conf man page and the sample "
6768 "configuration file in <em>/usr/share/doc/apt/examples/apt.conf</em>."
6771 #. type: <p><example>
6774 "On the target machine the first thing to do is mount the disc and copy "
6775 "<em>/var/lib/dpkg/status</em> to it. You will also need to create the "
6776 "directories outlined in the Overview, <em>archives/partial/</em> and "
6777 "<em>lists/partial/</em>. Then take the disc to the remote machine and "
6778 "configure the sources.list. On the remote machine execute the following:"
6781 #. type: <example></example>
6785 " # export APT_CONFIG=\"/disc/apt.conf\"\n"
6786 " # apt-get update\n"
6787 " [ APT fetches the package files ]\n"
6788 " # apt-get dist-upgrade\n"
6789 " [ APT fetches all the packages needed to upgrade the target machine ]"
6792 #. type: </example></p>
6795 "The dist-upgrade command can be replaced with any other standard APT "
6796 "commands, particularly dselect-upgrade. You can even use an APT front end "
6797 "such as <em>dselect</em>. However this presents a problem in communicating "
6798 "your selections back to the local computer."
6801 #. type: <p><example>
6804 "Now the disc contains all of the index files and archives needed to upgrade "
6805 "the target machine. Take the disc back and run:"
6808 #. type: <example></example>
6812 " # export APT_CONFIG=\"/disc/apt.conf\"\n"
6813 " # apt-get check\n"
6814 " [ APT generates a local copy of the cache files ]\n"
6815 " # apt-get --no-d -o dir::state::status=/var/lib/dpkg/status dist-upgrade\n"
6816 " [ Or any other APT command ]"
6822 "It is necessary for proper function to re-specify the status file to be the "
6823 "local one. This is very important!"
6829 "If you are using dselect you can do the very risky operation of copying "
6830 "disc/status to /var/lib/dpkg/status so that any selections you made on the "
6831 "remote machine are updated. I highly recommend that people only make "
6832 "selections on the local machine - but this may not always be possible. DO "
6833 "NOT copy the status file if dpkg or APT have been run in the mean time!!"
6836 #. type: <heading></heading>
6838 msgid "Using APT and wget"
6844 "<em>wget</em> is a popular and portable download tool that can run on nearly "
6845 "any machine. Unlike the method above this requires that the Debian machine "
6846 "already has a list of available packages."
6852 "The basic idea is to create a disc that has only the archive files "
6853 "downloaded from the remote site. This is done by using the --print-uris "
6854 "option to apt-get and then preparing a wget script to actually fetch the "
6858 #. type: <heading></heading>
6863 #. type: <p><example>
6866 "Unlike the previous technique no special configuration files are "
6867 "required. We merely use the standard APT commands to generate the file list."
6870 #. type: <example></example>
6874 " # apt-get dist-upgrade \n"
6875 " [ Press no when prompted, make sure you are happy with the actions ]\n"
6876 " # apt-get -qq --print-uris dist-upgrade > uris\n"
6877 " # awk '{print \"wget -O \" $2 \" \" $1}' < uris > /disc/wget-script"
6880 #. type: </example></p>
6883 "Any command other than dist-upgrade could be used here, including "
6890 "The /disc/wget-script file will now contain a list of wget commands to "
6891 "execute in order to fetch the necessary archives. This script should be run "
6892 "with the current directory as the disc's mount point so as to save the "
6893 "output on the disc."
6896 #. type: <p><example>
6898 msgid "The remote machine would do something like"
6901 #. type: <example></example>
6906 " # sh -x ./wget-script\n"
6910 #. type: </example><example>
6913 "Once the archives are downloaded and the disc returned to the Debian machine "
6914 "installation can proceed using,"
6917 #. type: <example></example>
6920 msgid " # apt-get -o dir::cache::archives=\"/disc/\" dist-upgrade"
6923 #. type: </example></p>
6925 msgid "Which will use the already fetched archives on the disc."