1 # Translation of apt manpages and documentation to LANGUAGE
2 # This file is distributed under the same license as the apt-doc package.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
8 "Project-Id-Version: apt-doc 1.3~exp3\n"
9 "Report-Msgid-Bugs-To: APT Development Team <deity@lists.debian.org>\n"
10 "POT-Creation-Date: 2016-06-22 14:50+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
23 "<!ENTITY apt-author.team \"\n"
25 " <othername>APT team</othername>\n"
26 " <contrib></contrib>\n"
35 "<!ENTITY apt-qapage \"\n"
37 "\t\t<ulink url='http://packages.qa.debian.org/a/apt.html'>QA Page</ulink>\n"
46 "<!-- Boiler plate Bug reporting section -->\n"
47 "<!ENTITY manbugs \"\n"
48 " <refsect1><title>Bugs</title>\n"
49 " <para><ulink url='http://bugs.debian.org/src:apt'>APT bug page</ulink>.\n"
50 " If you wish to report a bug in APT, please see\n"
51 " <filename>/usr/share/doc/debian/bug-reporting.txt</filename> or the\n"
52 " &reportbug; command.\n"
62 "<!-- Boiler plate Author section -->\n"
63 "<!ENTITY manauthor \"\n"
64 " <refsect1><title>Author</title>\n"
65 " <para>APT was written by the APT team "
66 "<email>apt@packages.debian.org</email>.\n"
76 "<!-- Should be used within the option section of the text to\n"
77 " put in the blurb about -h, -v, -c and -o -->\n"
78 "<!ENTITY apt-commonoptions \"\n"
79 " <varlistentry><term><option>-h</option></term>\n"
80 " <term><option>--help</option></term>\n"
81 " <listitem><para>Show a short usage summary.\n"
92 " <term><option>-v</option></term>\n"
93 " <term><option>--version</option></term>\n"
94 " <listitem><para>Show the program version.\n"
105 " <term><option>-c</option></term>\n"
106 " <term><option>--config-file</option></term>\n"
107 " <listitem><para>Configuration File; Specify a configuration file to "
109 " The program will read the default configuration file and then this \n"
110 " configuration file. If configuration settings need to be set before "
112 " default configuration files are parsed specify a file with the "
113 "<envar>APT_CONFIG</envar>\n"
114 " environment variable. See &apt-conf; for syntax information.\n"
125 " <term><option>-o</option></term>\n"
126 " <term><option>--option</option></term>\n"
127 " <listitem><para>Set a Configuration Option; This will set an "
129 " configuration option. The syntax is <option>-o "
130 "Foo::Bar=bar</option>.\n"
131 " <option>-o</option> and <option>--option</option> can be used "
133 " times to set different options.\n"
144 "<!-- Should be used within the option section of the text to\n"
145 " put in the blurb about -h, -v, -c and -o -->\n"
146 "<!ENTITY apt-cmdblurb \"\n"
147 " <para>All command line options may be set using the configuration file, "
149 " descriptions indicate the configuration option to set. For boolean\n"
150 " options you can override the config file by using something like \n"
151 " <option>-f-</option>,<option>--no-f</option>, <option>-f=no</option>\n"
152 " or several other variations.\n"
161 "<!ENTITY file-aptconf \"\n"
162 " <varlistentry><term><filename>/etc/apt/apt.conf</filename></term>\n"
163 " <listitem><para>APT configuration file.\n"
164 " Configuration Item: "
165 "<literal>Dir::Etc::Main</literal>.</para></listitem>\n"
173 " <varlistentry><term><filename>/etc/apt/apt.conf.d/</filename></term>\n"
174 " <listitem><para>APT configuration file fragments.\n"
175 " Configuration Item: "
176 "<literal>Dir::Etc::Parts</literal>.</para></listitem>\n"
185 "<!ENTITY file-cachearchives \"\n"
186 " <varlistentry><term><filename>&cachedir;/archives/</filename></term>\n"
187 " <listitem><para>Storage area for retrieved package files.\n"
188 " Configuration Item: "
189 "<literal>Dir::Cache::Archives</literal>.</para></listitem>\n"
198 "<varlistentry><term><filename>&cachedir;/archives/partial/</filename></term>\n"
199 " <listitem><para>Storage area for package files in transit.\n"
200 " Configuration Item: <literal>Dir::Cache::Archives</literal> "
201 "(<filename>partial</filename> will be implicitly "
202 "appended)</para></listitem>\n"
211 "<!ENTITY file-preferences \"\n"
212 " <varlistentry><term><filename>/etc/apt/preferences</filename></term>\n"
213 " <listitem><para>Version preferences file.\n"
214 " This is where you would specify "pinning",\n"
215 " i.e. a preference to get certain packages\n"
216 " from a separate source\n"
217 " or from a different version of a distribution.\n"
218 " Configuration Item: "
219 "<literal>Dir::Etc::Preferences</literal>.</para></listitem>\n"
228 "<varlistentry><term><filename>/etc/apt/preferences.d/</filename></term>\n"
229 " <listitem><para>File fragments for the version preferences.\n"
230 " Configuration Item: "
231 "<literal>Dir::Etc::PreferencesParts</literal>.</para></listitem>\n"
240 "<!ENTITY file-sourceslist \"\n"
241 " <varlistentry><term><filename>/etc/apt/sources.list</filename></term>\n"
242 " <listitem><para>Locations to fetch packages from.\n"
243 " Configuration Item: "
244 "<literal>Dir::Etc::SourceList</literal>.</para></listitem>\n"
253 "<varlistentry><term><filename>/etc/apt/sources.list.d/</filename></term>\n"
254 " <listitem><para>File fragments for locations to fetch packages from.\n"
255 " Configuration Item: "
256 "<literal>Dir::Etc::SourceParts</literal>.</para></listitem>\n"
265 "<!ENTITY file-statelists \"\n"
266 " <varlistentry><term><filename>&statedir;/lists/</filename></term>\n"
267 " <listitem><para>Storage area for state information for each package "
268 "resource specified in\n"
270 " Configuration Item: "
271 "<literal>Dir::State::Lists</literal>.</para></listitem>\n"
280 "<varlistentry><term><filename>&statedir;/lists/partial/</filename></term>\n"
281 " <listitem><para>Storage area for state information in transit.\n"
282 " Configuration Item: <literal>Dir::State::Lists</literal> "
283 "(<filename>partial</filename> will be implicitly "
284 "appended)</para></listitem>\n"
293 "<!ENTITY file-trustedgpg \"\n"
294 " <varlistentry><term><filename>/etc/apt/trusted.gpg</filename></term>\n"
295 " <listitem><para>Keyring of local trusted keys, new keys will be added "
297 " Configuration Item: "
298 "<literal>Dir::Etc::Trusted</literal>.</para></listitem>\n"
307 "<varlistentry><term><filename>/etc/apt/trusted.gpg.d/</filename></term>\n"
308 " <listitem><para>File fragments for the trusted keys, additional "
310 " be stored here (by other packages or the administrator).\n"
311 " Configuration Item "
312 "<literal>Dir::Etc::TrustedParts</literal>.</para></listitem>\n"
321 "<!ENTITY file-extended_states \"\n"
323 "<varlistentry><term><filename>/var/lib/apt/extended_states</filename></term>\n"
324 " <listitem><para>Status list of auto-installed packages.\n"
325 " Configuration Item: <literal>Dir::State::extended_states</literal>.\n"
326 " </para></listitem>\n"
335 "<!-- TRANSLATOR: This is the section header for the following paragraphs - "
337 " to the other headers like NAME and DESCRIPTION and should therefore be "
339 "<!ENTITY translation-title \"TRANSLATION\">\n"
346 "<!-- TRANSLATOR: This is a placeholder. You should write here who has "
348 " to the translation in the past, who is responsible now and maybe "
349 "further information\n"
350 " specially related to your translation. -->\n"
351 "<!ENTITY translation-holder \"\n"
352 " The english translation was done by John Doe "
353 "<email>john@doe.org</email> in 2009,\n"
354 " 2010 and Daniela Acme <email>daniela@acme.us</email> in 2010 together "
356 " Debian Dummy l10n Team "
357 "<email>debian-l10n-dummy@lists.debian.org</email>.\n"
365 "<!-- TRANSLATOR: As a translation is allowed to have 20% of "
366 "untranslated/fuzzy strings\n"
367 " in a shipped manpage newer/modified paragraphs will maybe appear in "
369 " the generated manpage. This sentence is therefore here to tell the "
371 " is not a mistake by the translator - obviously the target is that at "
373 " releases this sentence is not needed. :) -->\n"
374 "<!ENTITY translation-english \"\n"
375 " Note that this translated document may contain untranslated parts.\n"
376 " This is done on purpose, to avoid losing content when the\n"
377 " translation is lagging behind the original content.\n"
384 "<!-- TRANSLATOR: used as in -o=config_string "
385 "e.g. -o=Debug::pkgProblemResolver=1 --> <!ENTITY synopsis-config-string "
392 "<!-- TRANSLATOR: used as in -c=config_file e.g. -c=./apt.conf --> <!ENTITY "
393 "synopsis-config-file \"config_file\">"
399 "<!-- TRANSLATOR: used as in -t=target_release or pkg/target_release "
400 "e.g. -t=squeeze apt/experimental --> <!ENTITY synopsis-target-release "
401 "\"target_release\">"
407 "<!-- TRANSLATOR: used as in -a=architecture e.g. -a=armel --> <!ENTITY "
408 "synopsis-architecture \"architecture\">"
414 "<!-- TRANSLATOR: used as in apt-get install pkg e.g. apt-get install awesome "
415 "--> <!ENTITY synopsis-pkg \"pkg\">"
421 "<!-- TRANSLATOR: used as in pkg=pkg_version_number e.g. apt=0.8.15 --> "
422 "<!ENTITY synopsis-pkg-ver-number \"pkg_version_number\">"
428 "<!-- TRANSLATOR: used as in apt-cache pkgnames prefix e.g. apt-cache "
429 "pkgnames apt --> <!ENTITY synopsis-prefix \"prefix\">"
435 "<!-- TRANSLATOR: used as in apt-cache search regex e.g. apt-cache search "
436 "awesome --> <!ENTITY synopsis-regex \"regex\">"
442 "<!-- TRANSLATOR: used as in apt-cdrom -d=cdrom_mount_point e.g. apt-cdrom "
443 "-d=/media/cdrom --> <!ENTITY synopsis-cdrom-mount \"cdrom_mount_point\">"
449 "<!-- TRANSLATOR: used as in apt-extracttemplates -t=temporary_directory "
450 "e.g. apt-extracttemplates -t=/tmp --> <!ENTITY synopsis-tmp-directory "
451 "\"temporary_directory\">"
457 "<!-- TRANSLATOR: used as in apt-extracttemplates filename --> <!ENTITY "
458 "synopsis-filename \"filename\">"
464 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
465 "packages path override-file pathprefix --> <!ENTITY synopsis-path \"path\">"
471 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
472 "packages path override-file pathprefix --> <!ENTITY synopsis-override "
479 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
480 "packages path override-file pathprefix --> <!ENTITY synopsis-pathprefix "
487 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
488 "generate section --> <!ENTITY synopsis-section \"section\">"
494 "<!-- TRANSLATOR: used as in apt-key export keyid e.g. apt-key export "
495 "473041FA --> <!ENTITY synopsis-keyid \"keyid\">"
498 #. type: Content of: <refentry><refmeta><manvolnum>
499 #: apt.8.xml:1 apt-get.8.xml:1 apt-cache.8.xml:1 apt-key.8.xml:1
500 #: apt-mark.8.xml:1 apt-secure.8.xml:1 apt-cdrom.8.xml:1 apt-config.8.xml:1
504 #. type: Content of: <refentry><refmeta><refmiscinfo>
505 #: apt.8.xml:1 apt-get.8.xml:1 apt-cache.8.xml:1 apt-key.8.xml:1
506 #: apt-mark.8.xml:1 apt-secure.8.xml:1 apt-cdrom.8.xml:1 apt-config.8.xml:1
507 #: apt.conf.5.xml:1 apt_preferences.5.xml:1 sources.list.5.xml:1
508 #: apt-extracttemplates.1.xml:1 apt-sortpkgs.1.xml:1 apt-ftparchive.1.xml:1
512 #. type: Content of: <refentry><refnamediv><refpurpose>
514 msgid "command-line interface"
517 #. type: Content of: <refentry><refsect1><title>
518 #: apt.8.xml:1 apt-get.8.xml:1 apt-cache.8.xml:1 apt-key.8.xml:1
519 #: apt-mark.8.xml:1 apt-secure.8.xml:1 apt-cdrom.8.xml:1 apt-config.8.xml:1
520 #: apt.conf.5.xml:1 apt_preferences.5.xml:1 sources.list.5.xml:1
521 #: apt-extracttemplates.1.xml:1 apt-sortpkgs.1.xml:1 apt-ftparchive.1.xml:1
525 #. type: Content of: <refentry><refsect1><para>
528 "<command>apt</command> provides a high-level commandline interface for the "
529 "package management system. It is intended as an end user interface and "
530 "enables some options better suited for interactive usage by default compared "
531 "to more specialized APT tools like &apt-get; and &apt-cache;."
534 #. type: Content of: <refentry><refsect1><para>
537 "Much like <command>apt</command> itself, its manpage is intended as an end "
538 "user interface and as such only mentions the most used commands and options "
539 "partly to not duplicate information in multiple places and partly to avoid "
540 "overwhelming readers with a cornucopia of options and details."
543 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
544 #: apt.8.xml:1 apt.8.xml:1 apt.8.xml:1 apt.8.xml:1 apt.8.xml:1
548 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
551 "<option>update</option> is used to download package information from all "
552 "configured sources. Other commands operate on this data to e.g. perform "
553 "package upgrades or search in and display details about all packages "
554 "available for installation."
557 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
560 "<option>upgrade</option> is used to install available upgrades of all "
561 "packages currently installed on the system from the sources configured via "
562 "&sources-list;. New packages will be installed if required to statisfy "
563 "dependencies, but existing packages will never be removed. If an upgrade for "
564 "a package requires the remove of an installed package the upgrade for this "
565 "package isn't performed."
568 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
571 "<literal>full-upgrade</literal> performs the function of upgrade but will "
572 "remove currently installed packages if this is needed to upgrade the system "
576 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
577 #: apt.8.xml:1 apt.8.xml:1
581 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
584 "Performs the requested action on one or more packages specified via ®ex;, "
585 "&glob; or exact match. The requested action can be overridden for specific "
586 "packages by append a plus (+) to the package name to install this package or "
587 "a minus (-) to remove it."
590 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
593 "A specific version of a package can be selected for installation by "
594 "following the package name with an equals (=) and the version of the package "
595 "to select. Alternatively the version from a specific release can be selected "
596 "by following the package name with a forward slash (/) and codename "
597 "(&debian-stable-codename;, &debian-testing-codename;, sid …) or suite name "
598 "(stable, testing, unstable). This will also select versions from this "
599 "release for dependencies of this package if needed to satisfy the request."
602 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
605 "Removing a package removes all packaged data, but leaves usually small "
606 "(modified) user configuration files behind, in case the remove was an "
607 "accident. Just issuing an installation request for the accidentally removed "
608 "package will restore its function as before in that case. On the other hand "
609 "you can get rid of these leftovers by calling <command>purge</command> even "
610 "on already removed packages. Note that this does not affect any data or "
611 "configuration stored in your home directory."
614 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
617 "<literal>autoremove</literal> is used to remove packages that were "
618 "automatically installed to satisfy dependencies for other packages and are "
619 "now no longer needed as dependencies changed or the package(s) needing them "
620 "were removed in the meantime."
623 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
626 "You should check that the list does not include applications you have grown "
627 "to like even though they were once installed just as a dependency of another "
628 "package. You can mark such a package as manually installed by using "
629 "&apt-mark;. Packages which you have installed explicitly via "
630 "<command>install</command> are also never proposed for automatic removal."
633 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
634 #: apt.8.xml:1 apt.8.xml:1
635 msgid "(&apt-cache;)"
638 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
641 "<option>search</option> can be used to search for the given ®ex; term(s) "
642 "in the list of available packages and display matches. This can e.g. be "
643 "useful if you are looking for packages having a specific feature. If you "
644 "are looking for a package including a specific file try &apt-file;."
647 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
650 "Show information about the given package(s) including its dependencies, "
651 "installation and download size, sources the package is available from, the "
652 "description of the packages content and much more. It can e.g. be helpful to "
653 "look at this information before allowing &apt; to remove a package or while "
654 "searching for new packages to install."
657 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
658 #: apt.8.xml:1 apt.8.xml:1
659 msgid "(work-in-progress)"
662 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
665 "<option>list</option> is somewhat similar to <command>dpkg-query "
666 "--list</command> in that it can display a list of packages satisfying "
667 "certain criteria. It supports &glob; patterns for matching package names as "
668 "well as options to list installed (<option>--installed</option>), "
669 "upgradeable (<option>--upgradeable</option>) or all available "
670 "(<option>--all-versions</option>) versions."
673 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
676 "<literal>edit-sources</literal> lets you edit your &sources-list; files in "
677 "your preferred texteditor while also providing basic sanity checks."
680 #. type: Content of: <refentry><refsect1><title>
682 msgid "Script Usage and Differences from Other APT Tools"
685 #. type: Content of: <refentry><refsect1><para>
688 "The &apt; commandline is designed as an end-user tool and it may change "
689 "behavior between versions. While it tries not to break backward "
690 "compatibility this is not guaranteed either if a change seems beneficial for "
694 #. type: Content of: <refentry><refsect1><para>
697 "All features of &apt; are available in dedicated APT tools like &apt-get; "
698 "and &apt-cache; as well. &apt; just changes the default value of some "
699 "options (see &apt-conf; and specifically the Binary scope). So you should "
700 "prefer using these commands (potentially with some additional options "
701 "enabled) in your scripts as they keep backward compatibility as much as "
705 #. type: Content of: <refentry><refsect1><title>
706 #: apt.8.xml:1 apt-get.8.xml:1 apt-cache.8.xml:1 apt-key.8.xml:1
707 #: apt-mark.8.xml:1 apt-secure.8.xml:1 apt-cdrom.8.xml:1 apt-config.8.xml:1
708 #: apt.conf.5.xml:1 apt_preferences.5.xml:1 sources.list.5.xml:1
709 #: apt-extracttemplates.1.xml:1 apt-sortpkgs.1.xml:1 apt-ftparchive.1.xml:1
713 #. type: Content of: <refentry><refsect1><para>
716 "&apt-get;, &apt-cache;, &sources-list;, &apt-conf;, &apt-config;, The APT "
717 "User's guide in &guidesdir;, &apt-preferences;, the APT Howto."
720 #. type: Content of: <refentry><refsect1><title>
721 #: apt.8.xml:1 apt-get.8.xml:1 apt-cache.8.xml:1 apt-mark.8.xml:1
722 #: apt-cdrom.8.xml:1 apt-config.8.xml:1 apt-extracttemplates.1.xml:1
723 #: apt-sortpkgs.1.xml:1 apt-ftparchive.1.xml:1
727 #. type: Content of: <refentry><refsect1><para>
730 "<command>apt</command> returns zero on normal operation, decimal 100 on "
734 #. type: Content of: <refentry><refnamediv><refpurpose>
736 msgid "APT package handling utility -- command-line interface"
739 #. type: Content of: <refentry><refsect1><para>
742 "<command>apt-get</command> is the command-line tool for handling packages, "
743 "and may be considered the user's \"back-end\" to other tools using the APT "
744 "library. Several \"front-end\" interfaces exist, such as &aptitude;, "
745 "&synaptic; and &wajig;."
748 #. type: Content of: <refentry><refsect1><para>
749 #: apt-get.8.xml:1 apt-cache.8.xml:1 apt-cdrom.8.xml:1 apt-config.8.xml:1
750 #: apt-ftparchive.1.xml:1
752 "Unless the <option>-h</option>, or <option>--help</option> option is given, "
753 "one of the commands below must be present."
756 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
759 "<literal>update</literal> is used to resynchronize the package index files "
760 "from their sources. The indexes of available packages are fetched from the "
761 "location(s) specified in <filename>/etc/apt/sources.list</filename>. For "
762 "example, when using a Debian archive, this command retrieves and scans the "
763 "<filename>Packages.gz</filename> files, so that information about new and "
764 "updated packages is available. An <literal>update</literal> should always be "
765 "performed before an <literal>upgrade</literal> or "
766 "<literal>dist-upgrade</literal>. Please be aware that the overall progress "
767 "meter will be incorrect as the size of the package files cannot be known in "
771 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
774 "<literal>upgrade</literal> is used to install the newest versions of all "
775 "packages currently installed on the system from the sources enumerated in "
776 "<filename>/etc/apt/sources.list</filename>. Packages currently installed "
777 "with new versions available are retrieved and upgraded; under no "
778 "circumstances are currently installed packages removed, or packages not "
779 "already installed retrieved and installed. New versions of currently "
780 "installed packages that cannot be upgraded without changing the install "
781 "status of another package will be left at their current version. An "
782 "<literal>update</literal> must be performed first so that "
783 "<command>apt-get</command> knows that new versions of packages are "
787 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
790 "<literal>dist-upgrade</literal> in addition to performing the function of "
791 "<literal>upgrade</literal>, also intelligently handles changing dependencies "
792 "with new versions of packages; <command>apt-get</command> has a \"smart\" "
793 "conflict resolution system, and it will attempt to upgrade the most "
794 "important packages at the expense of less important ones if necessary. The "
795 "<literal>dist-upgrade</literal> command may therefore remove some packages. "
796 "The <filename>/etc/apt/sources.list</filename> file contains a list of "
797 "locations from which to retrieve desired package files. See also "
798 "&apt-preferences; for a mechanism for overriding the general settings for "
799 "individual packages."
802 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
805 "<literal>dselect-upgrade</literal> is used in conjunction with the "
806 "traditional Debian packaging front-end, "
807 "&dselect;. <literal>dselect-upgrade</literal> follows the changes made by "
808 "&dselect; to the <literal>Status</literal> field of available packages, and "
809 "performs the actions necessary to realize that state (for instance, the "
810 "removal of old and the installation of new packages)."
813 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
816 "<literal>install</literal> is followed by one or more packages desired for "
817 "installation or upgrading. Each package is a package name, not a fully "
818 "qualified filename (for instance, in a Debian system, "
819 "<package>apt-utils</package> would be the argument provided, not "
820 "<filename>apt-utils_&apt-product-version;_amd64.deb</filename>). All "
821 "packages required by the package(s) specified for installation will also be "
822 "retrieved and installed. The <filename>/etc/apt/sources.list</filename> "
823 "file is used to locate the desired packages. If a hyphen is appended to the "
824 "package name (with no intervening space), the identified package will be "
825 "removed if it is installed. Similarly a plus sign can be used to designate "
826 "a package to install. These latter features may be used to override "
827 "decisions made by apt-get's conflict resolution system."
830 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
833 "A specific version of a package can be selected for installation by "
834 "following the package name with an equals and the version of the package to "
835 "select. This will cause that version to be located and selected for "
836 "install. Alternatively a specific distribution can be selected by following "
837 "the package name with a slash and the version of the distribution or the "
838 "Archive name (stable, testing, unstable)."
841 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
844 "Both of the version selection mechanisms can downgrade packages and must be "
848 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
851 "This is also the target to use if you want to upgrade one or more "
852 "already-installed packages without upgrading every package you have on your "
853 "system. Unlike the \"upgrade\" target, which installs the newest version of "
854 "all currently installed packages, \"install\" will install the newest "
855 "version of only the package(s) specified. Simply provide the name of the "
856 "package(s) you wish to upgrade, and if a newer version is available, it (and "
857 "its dependencies, as described above) will be downloaded and installed."
860 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
863 "Finally, the &apt-preferences; mechanism allows you to create an alternative "
864 "installation policy for individual packages."
867 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
870 "If no package matches the given expression and the expression contains one "
871 "of '.', '?' or '*' then it is assumed to be a POSIX regular expression, and "
872 "it is applied to all package names in the database. Any matches are then "
873 "installed (or removed). Note that matching is done by substring so 'lo.*' "
874 "matches 'how-lo' and 'lowest'. If this is undesired, anchor the regular "
875 "expression with a '^' or '$' character, or create a more specific regular "
879 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
882 "<literal>remove</literal> is identical to <literal>install</literal> except "
883 "that packages are removed instead of installed. Note that removing a package "
884 "leaves its configuration files on the system. If a plus sign is appended to "
885 "the package name (with no intervening space), the identified package will be "
886 "installed instead of removed."
889 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
892 "<literal>purge</literal> is identical to <literal>remove</literal> except "
893 "that packages are removed and purged (any configuration files are deleted "
897 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
900 "<literal>source</literal> causes <command>apt-get</command> to fetch source "
901 "packages. APT will examine the available packages to decide which source "
902 "package to fetch. It will then find and download into the current directory "
903 "the newest available version of that source package while respecting the "
904 "default release, set with the option "
905 "<literal>APT::Default-Release</literal>, the <option>-t</option> option or "
906 "per package with the <literal>pkg/release</literal> syntax, if possible."
909 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
912 "Source packages are tracked separately from binary packages via "
913 "<literal>deb-src</literal> lines in the &sources-list; file. This means that "
914 "you will need to add such a line for each repository you want to get sources "
915 "from; otherwise you will probably get either the wrong (too old/too new) "
916 "source versions or none at all."
919 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
922 "If the <option>--compile</option> option is specified then the package will "
923 "be compiled to a binary .deb using <command>dpkg-buildpackage</command> for "
924 "the architecture as defined by the <command>--host-architecture</command> "
925 "option. If <option>--download-only</option> is specified then the source "
926 "package will not be unpacked."
929 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
932 "A specific source version can be retrieved by postfixing the source name "
933 "with an equals and then the version to fetch, similar to the mechanism used "
934 "for the package files. This enables exact matching of the source package "
935 "name and version, implicitly enabling the "
936 "<literal>APT::Get::Only-Source</literal> option."
939 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
942 "Note that source packages are not installed and tracked in the "
943 "<command>dpkg</command> database like binary packages; they are simply "
944 "downloaded to the current directory, like source tarballs."
947 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
950 "<literal>build-dep</literal> causes apt-get to install/remove packages in an "
951 "attempt to satisfy the build dependencies for a source package. By default "
952 "the dependencies are satisfied to build the package natively. If desired a "
953 "host-architecture can be specified with the "
954 "<option>--host-architecture</option> option instead."
957 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
960 "<literal>check</literal> is a diagnostic tool; it updates the package cache "
961 "and checks for broken dependencies."
964 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
967 "<literal>download</literal> will download the given binary package into the "
971 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
974 "<literal>clean</literal> clears out the local repository of retrieved "
975 "package files. It removes everything but the lock file from "
976 "<filename>&cachedir;/archives/</filename> and "
977 "<filename>&cachedir;/archives/partial/</filename>."
980 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
981 #: apt-get.8.xml:1 apt-get.8.xml:1
985 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
986 #: apt-get.8.xml:1 apt-get.8.xml:1
987 msgid "alias since 1.1)"
990 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
993 "Like <literal>clean</literal>, <literal>autoclean</literal> clears out the "
994 "local repository of retrieved package files. The difference is that it only "
995 "removes package files that can no longer be downloaded, and are largely "
996 "useless. This allows a cache to be maintained over a long period without it "
997 "growing out of control. The configuration option "
998 "<literal>APT::Clean-Installed</literal> will prevent installed packages from "
999 "being erased if it is set to off."
1002 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1005 "<literal>autoremove</literal> is used to remove packages that were "
1006 "automatically installed to satisfy dependencies for other packages and are "
1007 "now no longer needed."
1010 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1013 "<literal>changelog</literal> tries to download the changelog of a package "
1014 "and displays it through <command>sensible-pager</command>. By default it "
1015 "displays the changelog for the version that is installed. However, you can "
1016 "specify the same options as for the <option>install</option> command."
1019 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1022 "Displays by default a deb822 formatted listing of information about all data "
1023 "files (aka index targets) <command>apt-get update</command> would "
1024 "download. Supports a <option>--format</option> option to modify the output "
1025 "format as well as accepts lines of the default output to filter the records "
1026 "by. The command is mainly used as an interface for external tools working "
1027 "with APT to get information as well as filenames for downloaded files so "
1028 "they can use them as well instead of downloading them again on their "
1029 "own. Detailed documentation is omitted here and can instead be found in the "
1030 "file &apt-acquire-additional-files; shipped by the "
1031 "<package>apt-doc</package> package."
1034 #. type: Content of: <refentry><refsect1><title>
1035 #: apt-get.8.xml:1 apt-cache.8.xml:1 apt-config.8.xml:1
1036 #: apt-extracttemplates.1.xml:1 apt-sortpkgs.1.xml:1 apt-ftparchive.1.xml:1
1040 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1043 "Do not consider recommended packages as a dependency for installing. "
1044 "Configuration Item: <literal>APT::Install-Recommends</literal>."
1047 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1050 "Consider suggested packages as a dependency for installing. Configuration "
1051 "Item: <literal>APT::Install-Suggests</literal>."
1054 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1057 "Download only; package files are only retrieved, not unpacked or installed. "
1058 "Configuration Item: <literal>APT::Get::Download-Only</literal>."
1061 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1064 "Fix; attempt to correct a system with broken dependencies in place. This "
1065 "option, when used with install/remove, can omit any packages to permit APT "
1066 "to deduce a likely solution. If packages are specified, these have to "
1067 "completely correct the problem. The option is sometimes necessary when "
1068 "running APT for the first time; APT itself does not allow broken package "
1069 "dependencies to exist on a system. It is possible that a system's dependency "
1070 "structure can be so corrupt as to require manual intervention (which usually "
1071 "means using <command>dpkg --remove</command> to eliminate some of the "
1072 "offending packages). Use of this option together with <option>-m</option> "
1073 "may produce an error in some situations. Configuration Item: "
1074 "<literal>APT::Get::Fix-Broken</literal>."
1077 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1080 "Ignore missing packages; if packages cannot be retrieved or fail the "
1081 "integrity check after retrieval (corrupted package files), hold back those "
1082 "packages and handle the result. Use of this option together with "
1083 "<option>-f</option> may produce an error in some situations. If a package is "
1084 "selected for installation (particularly if it is mentioned on the command "
1085 "line) and it could not be downloaded then it will be silently held back. "
1086 "Configuration Item: <literal>APT::Get::Fix-Missing</literal>."
1089 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1092 "Disables downloading of packages. This is best used with "
1093 "<option>--ignore-missing</option> to force APT to use only the .debs it has "
1094 "already downloaded. Configuration Item: "
1095 "<literal>APT::Get::Download</literal>."
1098 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1101 "Quiet; produces output suitable for logging, omitting progress indicators. "
1102 "More q's will produce more quiet up to a maximum of 2. You can also use "
1103 "<option>-q=#</option> to set the quiet level, overriding the configuration "
1104 "file. Note that quiet level 2 implies <option>-y</option>; you should never "
1105 "use -qq without a no-action modifier such as -d, --print-uris or -s as APT "
1106 "may decide to do something you did not expect. Configuration Item: "
1107 "<literal>quiet</literal>."
1110 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1113 "No action; perform a simulation of events that would occur based on the "
1114 "current system state but do not actually change the system. Locking will be "
1115 "disabled (<option>Debug::NoLocking</option>) so the system state could "
1116 "change while <command>apt-get</command> is running. Simulations can also be "
1117 "executed by non-root users which might not have read access to all apt "
1118 "configuration distorting the simulation. A notice expressing this warning "
1119 "is also shown by default for non-root users "
1120 "(<option>APT::Get::Show-User-Simulation-Note</option>). Configuration Item: "
1121 "<literal>APT::Get::Simulate</literal>."
1124 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1127 "Simulated runs print out a series of lines, each representing a "
1128 "<command>dpkg</command> operation: configure (<literal>Conf</literal>), "
1129 "remove (<literal>Remv</literal>) or unpack "
1130 "(<literal>Inst</literal>). Square brackets indicate broken packages, and "
1131 "empty square brackets indicate breaks that are of no consequence (rare)."
1134 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1137 "Automatic yes to prompts; assume \"yes\" as answer to all prompts and run "
1138 "non-interactively. If an undesirable situation, such as changing a held "
1139 "package, trying to install a unauthenticated package or removing an "
1140 "essential package occurs then <literal>apt-get</literal> will abort. "
1141 "Configuration Item: <literal>APT::Get::Assume-Yes</literal>."
1144 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1147 "Automatic \"no\" to all prompts. Configuration Item: "
1148 "<literal>APT::Get::Assume-No</literal>."
1151 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1154 "Do not show a list of all packages that are to be upgraded. Configuration "
1155 "Item: <literal>APT::Get::Show-Upgraded</literal>."
1158 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1161 "Show full versions for upgraded and installed packages. Configuration Item: "
1162 "<literal>APT::Get::Show-Versions</literal>."
1165 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1168 "This option controls the architecture packages are built for by "
1169 "<command>apt-get source --compile</command> and how cross-builddependencies "
1170 "are satisfied. By default is it not set which means that the host "
1171 "architecture is the same as the build architecture (which is defined by "
1172 "<literal>APT::Architecture</literal>). Configuration Item: "
1173 "<literal>APT::Get::Host-Architecture</literal>."
1176 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1179 "This option controls the activated build profiles for which a source package "
1180 "is built by <command>apt-get source --compile</command> and how build "
1181 "dependencies are satisfied. By default no build profile is active. More "
1182 "than one build profile can be activated at a time by concatenating them with "
1183 "a comma. Configuration Item: <literal>APT::Build-Profiles</literal>."
1186 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1189 "Compile source packages after downloading them. Configuration Item: "
1190 "<literal>APT::Get::Compile</literal>."
1193 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1196 "Ignore package holds; this causes <command>apt-get</command> to ignore a "
1197 "hold placed on a package. This may be useful in conjunction with "
1198 "<literal>dist-upgrade</literal> to override a large number of undesired "
1199 "holds. Configuration Item: <literal>APT::Ignore-Hold</literal>."
1202 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1205 "Allow installing new packages when used in conjunction with "
1206 "<literal>upgrade</literal>. This is useful if the update of a installed "
1207 "package requires new dependencies to be installed. Instead of holding the "
1208 "package back <literal>upgrade</literal> will upgrade the package and install "
1209 "the new dependencies. Note that <literal>upgrade</literal> with this option "
1210 "will never remove packages, only allow adding new ones. Configuration Item: "
1211 "<literal>APT::Get::Upgrade-Allow-New</literal>."
1214 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1217 "Do not upgrade packages; when used in conjunction with "
1218 "<literal>install</literal>, <literal>no-upgrade</literal> will prevent "
1219 "packages on the command line from being upgraded if they are already "
1220 "installed. Configuration Item: <literal>APT::Get::Upgrade</literal>."
1223 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1226 "Do not install new packages; when used in conjunction with "
1227 "<literal>install</literal>, <literal>only-upgrade</literal> will install "
1228 "upgrades for already installed packages only and ignore requests to install "
1229 "new packages. Configuration Item: "
1230 "<literal>APT::Get::Only-Upgrade</literal>."
1233 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1236 "This is a dangerous option that will cause apt to continue without prompting "
1237 "if it is doing downgrades. It should not be used except in very special "
1238 "situations. Using it can potentially destroy your system! Configuration "
1239 "Item: <literal>APT::Get::allow-downgrades</literal>. Introduced in APT 1.1."
1242 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1245 "Force yes; this is a dangerous option that will cause apt to continue "
1246 "without prompting if it is removing essentials. It should not be used except "
1247 "in very special situations. Using it can potentially destroy your system! "
1248 "Configuration Item: "
1249 "<literal>APT::Get::allow-remove-essential</literal>. Introduced in APT 1.1."
1252 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1255 "Force yes; this is a dangerous option that will cause apt to continue "
1256 "without prompting if it is changing held packages. It should not be used "
1257 "except in very special situations. Using it can potentially destroy your "
1258 "system! Configuration Item: "
1259 "<literal>APT::Get::allow-change-held-packages</literal>. Introduced in APT "
1263 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1266 "Force yes; this is a dangerous option that will cause apt to continue "
1267 "without prompting if it is doing something potentially harmful. It should "
1268 "not be used except in very special situations. Using "
1269 "<literal>force-yes</literal> can potentially destroy your system! "
1270 "Configuration Item: <literal>APT::Get::force-yes</literal>. This is "
1271 "deprecated and replaced by <option>--allow-downgrades</option>, "
1272 "<option>--allow-remove-essential</option>, "
1273 "<option>--allow-change-held-packages</option> in 1.1."
1276 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1279 "Instead of fetching the files to install their URIs are printed. Each URI "
1280 "will have the path, the destination file name, the size and the expected MD5 "
1281 "hash. Note that the file name to write to will not always match the file "
1282 "name on the remote site! This also works with the <literal>source</literal> "
1283 "and <literal>update</literal> commands. When used with the "
1284 "<literal>update</literal> command the MD5 and size are not included, and it "
1285 "is up to the user to decompress any compressed files. Configuration Item: "
1286 "<literal>APT::Get::Print-URIs</literal>."
1289 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1292 "Use purge instead of remove for anything that would be removed. An asterisk "
1293 "(\"*\") will be displayed next to packages which are scheduled to be "
1294 "purged. <option>remove --purge</option> is equivalent to the "
1295 "<option>purge</option> command. Configuration Item: "
1296 "<literal>APT::Get::Purge</literal>."
1299 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1302 "Re-install packages that are already installed and at the newest version. "
1303 "Configuration Item: <literal>APT::Get::ReInstall</literal>."
1306 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1309 "This option is on by default; use <literal>--no-list-cleanup</literal> to "
1310 "turn it off. When it is on, <command>apt-get</command> will automatically "
1311 "manage the contents of <filename>&statedir;/lists</filename> to ensure that "
1312 "obsolete files are erased. The only reason to turn it off is if you "
1313 "frequently change your sources list. Configuration Item: "
1314 "<literal>APT::Get::List-Cleanup</literal>."
1317 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1320 "This option controls the default input to the policy engine; it creates a "
1321 "default pin at priority 990 using the specified release string. This "
1322 "overrides the general settings in "
1323 "<filename>/etc/apt/preferences</filename>. Specifically pinned packages are "
1324 "not affected by the value of this option. In short, this option lets you "
1325 "have simple control over which distribution packages will be retrieved "
1326 "from. Some common examples might be <option>-t '2.1*'</option>, <option>-t "
1327 "unstable</option> or <option>-t sid</option>. Configuration Item: "
1328 "<literal>APT::Default-Release</literal>; see also the &apt-preferences; "
1332 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1335 "Only perform operations that are 'trivial'. Logically this can be considered "
1336 "related to <option>--assume-yes</option>; where "
1337 "<option>--assume-yes</option> will answer yes to any prompt, "
1338 "<option>--trivial-only</option> will answer no. Configuration Item: "
1339 "<literal>APT::Get::Trivial-Only</literal>."
1342 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1345 "If any packages are to be removed apt-get immediately aborts without "
1346 "prompting. Configuration Item: <literal>APT::Get::Remove</literal>."
1349 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1352 "If the command is either <literal>install</literal> or "
1353 "<literal>remove</literal>, then this option acts like running the "
1354 "<literal>autoremove</literal> command, removing unused dependency "
1355 "packages. Configuration Item: <literal>APT::Get::AutomaticRemove</literal>."
1358 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1361 "Only has meaning for the <literal>source</literal> and "
1362 "<literal>build-dep</literal> commands. Indicates that the given source "
1363 "names are not to be mapped through the binary table. This means that if "
1364 "this option is specified, these commands will only accept source package "
1365 "names as arguments, rather than accepting binary package names and looking "
1366 "up the corresponding source package. Configuration Item: "
1367 "<literal>APT::Get::Only-Source</literal>."
1370 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1373 "Download only the diff, dsc, or tar file of a source archive. Configuration "
1374 "Item: <literal>APT::Get::Diff-Only</literal>, "
1375 "<literal>APT::Get::Dsc-Only</literal>, and "
1376 "<literal>APT::Get::Tar-Only</literal>."
1379 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1382 "Only process architecture-dependent build-dependencies. Configuration Item: "
1383 "<literal>APT::Get::Arch-Only</literal>."
1386 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1389 "Ignore if packages can't be authenticated and don't prompt about it. This "
1390 "can be useful while working with local repositories, but is a huge security "
1391 "risk if data authenticity isn't ensured in another way by the user itself. "
1392 "The usage of the <option>Trusted</option> option for &sources-list; entries "
1393 "should usually be preferred over this global override. Configuration Item: "
1394 "<literal>APT::Get::AllowUnauthenticated</literal>."
1397 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1400 "Forbid the update command to acquire unverifiable data from configured "
1401 "sources. APT will fail at the update command for repositories without valid "
1402 "cryptographically signatures. See also &apt-secure; for details on the "
1403 "concept and the implications. Configuration Item: "
1404 "<literal>Acquire::AllowInsecureRepositories</literal>."
1407 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1410 "Show user friendly progress information in the terminal window when packages "
1411 "are installed, upgraded or removed. For a machine parsable version of this "
1412 "data see README.progress-reporting in the apt doc directory. Configuration "
1413 "Item: <literal>Dpkg::Progress</literal> and "
1414 "<literal>Dpkg::Progress-Fancy</literal>."
1417 #. type: Content of: <refentry><refsect1><title>
1418 #: apt-get.8.xml:1 apt-cache.8.xml:1 apt-key.8.xml:1 apt-mark.8.xml:1
1419 #: apt.conf.5.xml:1 apt_preferences.5.xml:1
1423 #. type: Content of: <refentry><refsect1><para>
1426 "&apt-cache;, &apt-cdrom;, &dpkg;, &sources-list;, &apt-conf;, &apt-config;, "
1427 "&apt-secure;, The APT User's guide in &guidesdir;, &apt-preferences;, the "
1431 #. type: Content of: <refentry><refsect1><para>
1434 "<command>apt-get</command> returns zero on normal operation, decimal 100 on "
1438 #. type: Content of: <refentry><refnamediv><refpurpose>
1439 #: apt-cache.8.xml:1
1440 msgid "query the APT cache"
1443 #. type: Content of: <refentry><refsect1><para>
1444 #: apt-cache.8.xml:1
1446 "<command>apt-cache</command> performs a variety of operations on APT's "
1447 "package cache. <command>apt-cache</command> does not manipulate the state of "
1448 "the system but does provide operations to search and generate interesting "
1449 "output from the package metadata. The metadata is acquired and updated via "
1450 "the 'update' command of e.g. <command>apt-get</command>, so that it can be "
1451 "outdated if the last update is too long ago, but in exchange "
1452 "<command>apt-cache</command> works independently of the availability of the "
1453 "configured sources (e.g. offline)."
1456 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1457 #: apt-cache.8.xml:1
1459 "<literal>gencaches</literal> creates APT's package cache. This is done "
1460 "implicitly by all commands needing this cache if it is missing or outdated."
1463 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option><replaceable>
1464 #: apt-cache.8.xml:1 apt-cache.8.xml:1 apt-cache.8.xml:1 apt-cache.8.xml:1
1465 #: apt-cache.8.xml:1 apt-cache.8.xml:1 apt-cache.8.xml:1 apt-cache.8.xml:1
1466 msgid "&synopsis-pkg;"
1469 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1470 #: apt-cache.8.xml:1
1472 "<literal>showpkg</literal> displays information about the packages listed on "
1473 "the command line. Remaining arguments are package names. The available "
1474 "versions and reverse dependencies of each package listed are listed, as well "
1475 "as forward dependencies for each version. Forward (normal) dependencies are "
1476 "those packages upon which the package in question depends; reverse "
1477 "dependencies are those packages that depend upon the package in "
1478 "question. Thus, forward dependencies must be satisfied for a package, but "
1479 "reverse dependencies need not be. For instance, <command>apt-cache showpkg "
1480 "libreadline2</command> would produce output similar to the following:"
1483 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><informalexample><programlisting>
1484 #: apt-cache.8.xml:1
1487 "Package: libreadline2\n"
1488 "Versions: 2.1-12(/var/state/apt/lists/foo_Packages),\n"
1489 "Reverse Depends: \n"
1490 " libreadlineg2,libreadline2\n"
1491 " libreadline2-altdev,libreadline2\n"
1493 "2.1-12 - libc5 (2 5.4.0-0) ncurses3.0 (0 (null))\n"
1496 "Reverse Provides: \n"
1499 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1500 #: apt-cache.8.xml:1
1502 "Thus it may be seen that libreadline2, version 2.1-12, depends on libc5 and "
1503 "ncurses3.0 which must be installed for libreadline2 to work. In turn, "
1504 "libreadlineg2 and libreadline2-altdev depend on libreadline2. If "
1505 "libreadline2 is installed, libc5 and ncurses3.0 (and ldso) must also be "
1506 "installed; libreadlineg2 and libreadline2-altdev do not have to be "
1507 "installed. For the specific meaning of the remainder of the output it is "
1508 "best to consult the apt source code."
1511 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1512 #: apt-cache.8.xml:1
1514 "<literal>stats</literal> displays some statistics about the cache. No "
1515 "further arguments are expected. Statistics reported are:"
1518 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1519 #: apt-cache.8.xml:1
1521 "<literal>Total package names</literal> is the number of package names found "
1525 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1526 #: apt-cache.8.xml:1
1528 "<literal>Normal packages</literal> is the number of regular, ordinary "
1529 "package names; these are packages that bear a one-to-one correspondence "
1530 "between their names and the names used by other packages for them in "
1531 "dependencies. The majority of packages fall into this category."
1534 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1535 #: apt-cache.8.xml:1
1537 "<literal>Pure virtual packages</literal> is the number of packages that "
1538 "exist only as a virtual package name; that is, packages only \"provide\" the "
1539 "virtual package name, and no package actually uses the name. For instance, "
1540 "\"mail-transport-agent\" in the Debian system is a pure virtual package; "
1541 "several packages provide \"mail-transport-agent\", but there is no package "
1542 "named \"mail-transport-agent\"."
1545 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1546 #: apt-cache.8.xml:1
1548 "<literal>Single virtual packages</literal> is the number of packages with "
1549 "only one package providing a particular virtual package. For example, in the "
1550 "Debian system, \"X11-text-viewer\" is a virtual package, but only one "
1551 "package, xless, provides \"X11-text-viewer\"."
1554 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1555 #: apt-cache.8.xml:1
1557 "<literal>Mixed virtual packages</literal> is the number of packages that "
1558 "either provide a particular virtual package or have the virtual package name "
1559 "as the package name. For instance, in the Debian system, \"debconf\" is both "
1560 "an actual package, and provided by the debconf-tiny package."
1563 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1564 #: apt-cache.8.xml:1
1566 "<literal>Missing</literal> is the number of package names that were "
1567 "referenced in a dependency but were not provided by any package. Missing "
1568 "packages may be an evidence if a full distribution is not accessed, or if a "
1569 "package (real or virtual) has been dropped from the distribution. Usually "
1570 "they are referenced from Conflicts or Breaks statements."
1573 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1574 #: apt-cache.8.xml:1
1576 "<literal>Total distinct</literal> versions is the number of package versions "
1577 "found in the cache. If more than one distribution is being accessed (for "
1578 "instance, \"stable\" and \"unstable\"), this value can be considerably "
1579 "larger than the number of total package names."
1582 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1583 #: apt-cache.8.xml:1
1585 "<literal>Total dependencies</literal> is the number of dependency "
1586 "relationships claimed by all of the packages in the cache."
1589 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1590 #: apt-cache.8.xml:1
1592 "<literal>showsrc</literal> displays all the source package records that "
1593 "match the given package names. All versions are shown, as well as all "
1594 "records that declare the name to be a binary package. Use "
1595 "<option>--only-source</option> to display only source package names."
1598 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1599 #: apt-cache.8.xml:1
1601 "<literal>dump</literal> shows a short listing of every package in the "
1602 "cache. It is primarily for debugging."
1605 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1606 #: apt-cache.8.xml:1
1608 "<literal>dumpavail</literal> prints out an available list to stdout. This is "
1609 "suitable for use with &dpkg; and is used by the &dselect; method."
1612 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1613 #: apt-cache.8.xml:1
1615 "<literal>unmet</literal> displays a summary of all unmet dependencies in the "
1619 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1620 #: apt-cache.8.xml:1
1622 "<literal>show</literal> performs a function similar to <command>dpkg "
1623 "--print-avail</command>; it displays the package records for the named "
1627 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option><replaceable>
1628 #: apt-cache.8.xml:1
1629 msgid "&synopsis-regex;"
1632 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1633 #: apt-cache.8.xml:1
1635 "<literal>search</literal> performs a full text search on all available "
1636 "package lists for the POSIX regex pattern given, see ®ex;. It searches "
1637 "the package names and the descriptions for an occurrence of the regular "
1638 "expression and prints out the package name and the short description, "
1639 "including virtual package names. If <option>--full</option> is given then "
1640 "output identical to <literal>show</literal> is produced for each matched "
1641 "package, and if <option>--names-only</option> is given then the long "
1642 "description is not searched, only the package name and provided packages "
1646 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1647 #: apt-cache.8.xml:1
1649 "Separate arguments can be used to specify multiple search patterns that are "
1653 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1654 #: apt-cache.8.xml:1
1656 "<literal>depends</literal> shows a listing of each dependency a package has "
1657 "and all the possible other packages that can fulfill that dependency."
1660 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1661 #: apt-cache.8.xml:1
1663 "<literal>rdepends</literal> shows a listing of each reverse dependency a "
1667 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1668 #: apt-cache.8.xml:1
1669 msgid "<optional><replaceable>&synopsis-prefix;</replaceable></optional>"
1672 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1673 #: apt-cache.8.xml:1
1675 "This command prints the name of each package APT knows. The optional "
1676 "argument is a prefix match to filter the name list. The output is suitable "
1677 "for use in a shell tab complete function and the output is generated "
1678 "extremely quickly. This command is best used with the "
1679 "<option>--generate</option> option."
1682 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1683 #: apt-cache.8.xml:1
1685 "Note that a package which APT knows of is not necessarily available to "
1686 "download, installable or installed, e.g. virtual packages are also listed in "
1687 "the generated list."
1690 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1691 #: apt-cache.8.xml:1
1693 "<literal>dotty</literal> takes a list of packages on the command line and "
1694 "generates output suitable for use by dotty from the <ulink "
1695 "url=\"http://www.research.att.com/sw/tools/graphviz/\">GraphViz</ulink> "
1696 "package. The result will be a set of nodes and edges representing the "
1697 "relationships between the packages. By default the given packages will trace "
1698 "out all dependent packages; this can produce a very large graph. To limit "
1699 "the output to only the packages listed on the command line, set the "
1700 "<literal>APT::Cache::GivenOnly</literal> option."
1703 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1704 #: apt-cache.8.xml:1
1706 "The resulting nodes will have several shapes; normal packages are boxes, "
1707 "pure virtual packages are triangles, mixed virtual packages are diamonds, "
1708 "missing packages are hexagons. Orange boxes mean recursion was stopped (leaf "
1709 "packages), blue lines are pre-depends, green lines are conflicts."
1712 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1713 #: apt-cache.8.xml:1
1714 msgid "Caution, dotty cannot graph larger sets of packages."
1717 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1718 #: apt-cache.8.xml:1
1720 "The same as <literal>dotty</literal>, only for xvcg from the <ulink "
1721 "url=\"http://rw4.cs.uni-sb.de/users/sander/html/gsvcg1.html\">VCG "
1725 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1726 #: apt-cache.8.xml:1
1727 msgid "<optional><replaceable>&synopsis-pkg;</replaceable>…</optional>"
1730 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1731 #: apt-cache.8.xml:1
1733 "<literal>policy</literal> is meant to help debug issues relating to the "
1734 "preferences file. With no arguments it will print out the priorities of each "
1735 "source. Otherwise it prints out detailed information about the priority "
1736 "selection of the named package."
1739 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1740 #: apt-cache.8.xml:1
1742 "<literal>apt-cache</literal>'s <literal>madison</literal> command attempts "
1743 "to mimic the output format and a subset of the functionality of the Debian "
1744 "archive management tool, <literal>madison</literal>. It displays available "
1745 "versions of a package in a tabular format. Unlike the original "
1746 "<literal>madison</literal>, it can only display information for the "
1747 "architecture for which APT has retrieved package lists "
1748 "(<literal>APT::Architecture</literal>)."
1751 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1752 #: apt-cache.8.xml:1
1754 "Select the file to store the package cache. The package cache is the primary "
1755 "cache used by all operations. Configuration Item: "
1756 "<literal>Dir::Cache::pkgcache</literal>."
1759 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1760 #: apt-cache.8.xml:1
1762 "Select the file to store the source cache. The source is used only by "
1763 "<literal>gencaches</literal> and it stores a parsed version of the package "
1764 "information from remote sources. When building the package cache the source "
1765 "cache is used to avoid reparsing all of the package files. Configuration "
1766 "Item: <literal>Dir::Cache::srcpkgcache</literal>."
1769 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1770 #: apt-cache.8.xml:1
1772 "Quiet; produces output suitable for logging, omitting progress indicators. "
1773 "More q's will produce more quietness up to a maximum of 2. You can also use "
1774 "<option>-q=#</option> to set the quietness level, overriding the "
1775 "configuration file. Configuration Item: <literal>quiet</literal>."
1778 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1779 #: apt-cache.8.xml:1
1781 "Print only important dependencies; for use with <literal>unmet</literal> and "
1782 "<literal>depends</literal>. Causes only Depends and Pre-Depends relations to "
1783 "be printed. Configuration Item: <literal>APT::Cache::Important</literal>."
1786 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1787 #: apt-cache.8.xml:1
1789 "Per default the <command>depends</command> and <command>rdepends</command> "
1790 "print all dependencies. This can be tweaked with these flags which will omit "
1791 "the specified dependency type. Configuration Item: "
1792 "<literal>APT::Cache::Show<replaceable>DependencyType</replaceable></literal> "
1793 "e.g. <literal>APT::Cache::ShowRecommends</literal>."
1796 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1797 #: apt-cache.8.xml:1
1799 "Per default <command>depends</command> and <command>rdepends</command> print "
1800 "only dependencies explicitly expressed in the metadata. With this flag it "
1801 "will also show dependencies implicitly added based on the encountered data. "
1802 "A <literal>Conflicts: foo</literal> e.g. expresses implicitly that this "
1803 "package also conflicts with the package foo from any other architecture. "
1804 "Configuration Item: <literal>APT::Cache::ShowImplicit</literal>."
1807 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1808 #: apt-cache.8.xml:1
1810 "Print full package records when searching. Configuration Item: "
1811 "<literal>APT::Cache::ShowFull</literal>."
1814 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1815 #: apt-cache.8.xml:1
1817 "Print full records for all available versions. This is the default; to turn "
1818 "it off, use <option>--no-all-versions</option>. If "
1819 "<option>--no-all-versions</option> is specified, only the candidate version "
1820 "will be displayed (the one which would be selected for installation). This "
1821 "option is only applicable to the <literal>show</literal> command. "
1822 "Configuration Item: <literal>APT::Cache::AllVersions</literal>."
1825 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1826 #: apt-cache.8.xml:1
1828 "Perform automatic package cache regeneration, rather than use the cache as "
1829 "it is. This is the default; to turn it off, use "
1830 "<option>--no-generate</option>. Configuration Item: "
1831 "<literal>APT::Cache::Generate</literal>."
1834 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1835 #: apt-cache.8.xml:1
1837 "Only search on the package and provided package names, not the long "
1838 "descriptions. Configuration Item: <literal>APT::Cache::NamesOnly</literal>."
1841 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1842 #: apt-cache.8.xml:1
1844 "Make <literal>pkgnames</literal> print all names, including virtual packages "
1845 "and missing dependencies. Configuration Item: "
1846 "<literal>APT::Cache::AllNames</literal>."
1849 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1850 #: apt-cache.8.xml:1
1852 "Make <literal>depends</literal> and <literal>rdepends</literal> recursive so "
1853 "that all packages mentioned are printed once. Configuration Item: "
1854 "<literal>APT::Cache::RecurseDepends</literal>."
1857 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1858 #: apt-cache.8.xml:1
1860 "Limit the output of <literal>depends</literal> and "
1861 "<literal>rdepends</literal> to packages which are currently installed. "
1862 "Configuration Item: <literal>APT::Cache::Installed</literal>."
1865 #. type: Content of: <refentry><refsect1><para>
1866 #: apt-cache.8.xml:1
1867 msgid "&apt-conf;, &sources-list;, &apt-get;"
1870 #. type: Content of: <refentry><refsect1><para>
1871 #: apt-cache.8.xml:1
1873 "<command>apt-cache</command> returns zero on normal operation, decimal 100 "
1877 #. type: Content of: <refentry><refnamediv><refpurpose>
1879 msgid "APT key management utility"
1882 #. type: Content of: <refentry><refsect1><para>
1885 "<command>apt-key</command> is used to manage the list of keys used by apt to "
1886 "authenticate packages. Packages which have been authenticated using these "
1887 "keys will be considered trusted."
1890 #. type: Content of: <refentry><refsect1><title>
1895 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1898 "Add a new key to the list of trusted keys. The key is read from the "
1899 "filename given with the parameter &synopsis-param-filename; or if the "
1900 "filename is <literal>-</literal> from standard input."
1903 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1906 "It is critical that keys added manually via <command>apt-key</command> are "
1907 "verified to belong to the owner of the repositories they claim to be for "
1908 "otherwise the &apt-secure; infrastructure is completely undermined."
1911 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1913 msgid "Remove a key from the list of trusted keys."
1916 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1918 msgid "Output the key &synopsis-param-keyid; to standard output."
1921 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1923 msgid "Output all trusted keys to standard output."
1926 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1928 msgid "List trusted keys."
1931 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1933 msgid "List fingerprints of trusted keys."
1936 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1939 "Pass advanced options to gpg. With <command>adv --recv-key</command> you can "
1940 "e.g. download key from keyservers directly into the the trusted set of "
1941 "keys. Note that there are <emphasis>no</emphasis> checks performed, so it is "
1942 "easy to completely undermine the &apt-secure; infrastructure if used without "
1946 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1949 "Update the local keyring with the archive keyring and remove from the local "
1950 "keyring the archive keys which are no longer valid. The archive keyring is "
1951 "shipped in the <literal>archive-keyring</literal> package of your "
1952 "distribution, e.g. the &keyring-package; package in &keyring-distro;."
1955 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1958 "Perform an update working similarly to the <command>update</command> command "
1959 "above, but get the archive keyring from a URI instead and validate it "
1960 "against a master key. This requires an installed &wget; and an APT build "
1961 "configured to have a server to fetch from and a master keyring to validate. "
1962 "APT in Debian does not support this command, relying on "
1963 "<command>update</command> instead, but Ubuntu's APT does."
1966 #. type: Content of: <refentry><refsect1><title>
1967 #: apt-key.8.xml:1 apt-mark.8.xml:1 apt-mark.8.xml:1 apt-cdrom.8.xml:1
1971 #. type: Content of: <refentry><refsect1><para>
1974 "Note that options need to be defined before the commands described in the "
1978 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1981 "With this option it is possible to specify a particular keyring file the "
1982 "command should operate on. The default is that a command is executed on the "
1983 "<filename>trusted.gpg</filename> file as well as on all parts in the "
1984 "<filename>trusted.gpg.d</filename> directory, though "
1985 "<filename>trusted.gpg</filename> is the primary keyring which means that "
1986 "e.g. new keys are added to this one."
1989 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1991 msgid "<filename>/etc/apt/trustdb.gpg</filename>"
1994 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1996 msgid "Local trust database of archive keys."
1999 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2001 msgid "&keyring-filename;"
2004 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2006 msgid "Keyring of &keyring-distro; archive trusted keys."
2009 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2011 msgid "&keyring-removed-filename;"
2014 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2016 msgid "Keyring of &keyring-distro; archive removed trusted keys."
2019 #. type: Content of: <refentry><refsect1><para>
2021 msgid "&apt-get;, &apt-secure;"
2024 #. type: Content of: <refentry><refnamediv><refpurpose>
2026 msgid "show, set and unset various settings for a package"
2029 #. type: Content of: <refentry><refsect1><para>
2032 "<command>apt-mark</command> can be used as a unified front-end to set "
2033 "various settings for a package, such as marking a package as being "
2034 "automatically/manually installed or changing <command>dpkg</command> "
2035 "selections such as hold, install, deinstall and purge which are respected "
2036 "e.g. by <command>apt-get dselect-upgrade</command> or "
2037 "<command>aptitude</command>."
2040 #. type: Content of: <refentry><refsect1><title>
2042 msgid "Automatically and Manually Installed Packages"
2045 #. type: Content of: <refentry><refsect1><para>
2048 "When you request that a package is installed, and as a result other packages "
2049 "are installed to satisfy its dependencies, the dependencies are marked as "
2050 "being automatically installed, while the package you installed explicitly is "
2051 "marked as manually installed. Once an automatically installed package is no "
2052 "longer depended on by any manually installed package it is considered no "
2053 "longer needed and e.g. <command>apt-get</command> or "
2054 "<command>aptitude</command> will at least suggest removing them."
2057 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2060 "<literal>auto</literal> is used to mark a package as being automatically "
2061 "installed, which will cause the package to be removed when no more manually "
2062 "installed packages depend on this package."
2065 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2068 "<literal>manual</literal> is used to mark a package as being manually "
2069 "installed, which will prevent the package from being automatically removed "
2070 "if no other packages depend on it."
2073 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2076 "<literal>showauto</literal> is used to print a list of automatically "
2077 "installed packages with each package on a new line. All automatically "
2078 "installed packages will be listed if no package is given. If packages are "
2079 "given only those which are automatically installed will be shown."
2082 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2085 "<literal>showmanual</literal> can be used in the same way as "
2086 "<literal>showauto</literal> except that it will print a list of manually "
2087 "installed packages instead."
2090 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2093 "Read/Write package stats from the filename given with the parameter "
2094 "&synopsis-param-filename; instead of from the default location, which is "
2095 "<filename>extended_status</filename> in the directory defined by the "
2096 "Configuration Item: <literal>Dir::State</literal>."
2099 #. type: Content of: <refentry><refsect1><title>
2101 msgid "Prevent Changes for a Package"
2104 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2107 "<literal>hold</literal> is used to mark a package as held back, which will "
2108 "prevent the package from being automatically installed, upgraded or removed."
2111 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2114 "<literal>unhold</literal> is used to cancel a previously set hold on a "
2115 "package to allow all actions again."
2118 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2121 "<literal>showhold</literal> is used to print a list of packages on hold in "
2122 "the same way as for the other show commands."
2125 #. type: Content of: <refentry><refsect1><title>
2127 msgid "Schedule Packages for Install, Remove and Purge"
2130 #. type: Content of: <refentry><refsect1><para>
2133 "Some front-ends like <command>apt-get dselect-upgrade</command> can be used "
2134 "to apply previously scheduled changes to the install state of packages. Such "
2135 "changes can be scheduled with the <option>install</option>, "
2136 "<option>remove</option> (also known as <option>deinstall</option>) and "
2137 "<option>purge</option> commands. Packages with a specific selection can be "
2138 "displayed with <option>showinstall</option>, <option>showremove</option> and "
2139 "<option>showpurge</option> respectively. More information about these so "
2140 "called dpkg selections can be found in &dpkg;."
2143 #. type: Content of: <refentry><refsect1><para>
2146 "<command>apt-mark</command> returns zero on normal operation, non-zero on "
2150 #. type: Content of: <refentry><refnamediv><refpurpose>
2151 #: apt-secure.8.xml:1
2152 msgid "Archive authentication support for APT"
2155 #. type: Content of: <refentry><refsect1><para>
2156 #: apt-secure.8.xml:1
2158 "Starting with version 0.6, <command>APT</command> contains code that does "
2159 "signature checking of the Release file for all repositories. This ensures "
2160 "that data like packages in the archive can't be modified by people who have "
2161 "no access to the Release file signing key. Starting with version 1.1 "
2162 "<command>APT</command> requires repositories to provide recent "
2163 "authentication information for unimpeded usage of the repository."
2166 #. type: Content of: <refentry><refsect1><para>
2167 #: apt-secure.8.xml:1
2169 "If an archive has an unsigned Release file or no Release file at all current "
2170 "APT versions will refuse to download data from them by default in "
2171 "<command>update</command> operations and even if forced to download "
2172 "front-ends like &apt-get; will require explicit confirmation if an "
2173 "installation request includes a package from such an unauthenticated "
2177 #. type: Content of: <refentry><refsect1><para>
2178 #: apt-secure.8.xml:1
2180 "As a temporary exception &apt-get; (not &apt;!) raises warnings only if it "
2181 "encounters unauthenticated archives to give a slightly longer grace period "
2182 "on this backward compatibility effecting change. This exception will be "
2183 "removed in future releases and you can opt-out of this grace period by "
2184 "setting the configuration option "
2185 "<option>Binary::apt-get::Acquire::AllowInsecureRepositories</option> to "
2186 "<literal>false</literal> or "
2187 "<option>--no-allow-insecure-repositories</option> on the command line."
2190 #. type: Content of: <refentry><refsect1><para>
2191 #: apt-secure.8.xml:1
2193 "You can force all APT clients to raise only warnings by setting the "
2194 "configuration option <option>Acquire::AllowInsecureRepositories</option> to "
2195 "<literal>true</literal>. Individual repositories can also be allowed to be "
2196 "insecure via the &sources-list; option "
2197 "<literal>allow-insecure=yes</literal>. Note that insecure repositories are "
2198 "strongly discouraged and all options to force apt to continue supporting "
2199 "them will eventually be removed. Users also have the "
2200 "<option>Trusted</option> option available to disable even the warnings, but "
2201 "be sure to understand the implications as detailed in &sources-list;."
2204 #. type: Content of: <refentry><refsect1><para>
2205 #: apt-secure.8.xml:1
2207 "A repository which previously was authentication but would loose this state "
2208 "in an <command>update</command> operation raises an error in all APT clients "
2209 "irrespective of the option to allow or forbid usage of insecure "
2210 "repositories. The error can be overcome by additionally setting "
2211 "<option>Acquire::AllowDowngradeToInsecureRepositories</option> to "
2212 "<literal>true</literal> or for Individual repositories with the "
2213 "&sources-list; option <literal>allow-downgrade-to-insecure=yes</literal>."
2216 #. type: Content of: <refentry><refsect1><para>
2217 #: apt-secure.8.xml:1
2219 "Note: All APT-based package management front-ends like &apt-get;, &aptitude; "
2220 "and &synaptic; support this authentication feature, so this manpage uses "
2221 "<literal>APT</literal> to refer to them all for simplicity only."
2224 #. type: Content of: <refentry><refsect1><title>
2225 #: apt-secure.8.xml:1
2226 msgid "Trusted Repositories"
2229 #. type: Content of: <refentry><refsect1><para>
2230 #: apt-secure.8.xml:1
2232 "The chain of trust from an APT archive to the end user is made up of several "
2233 "steps. <command>apt-secure</command> is the last step in this chain; "
2234 "trusting an archive does not mean that you trust its packages not to contain "
2235 "malicious code, but means that you trust the archive maintainer. It's the "
2236 "archive maintainer's responsibility to ensure that the archive's integrity "
2240 #. type: Content of: <refentry><refsect1><para>
2241 #: apt-secure.8.xml:1
2243 "apt-secure does not review signatures at a package level. If you require "
2244 "tools to do this you should look at <command>debsig-verify</command> and "
2245 "<command>debsign</command> (provided in the debsig-verify and devscripts "
2246 "packages respectively)."
2249 #. type: Content of: <refentry><refsect1><para>
2250 #: apt-secure.8.xml:1
2252 "The chain of trust in Debian starts (e.g.) when a maintainer uploads a new "
2253 "package or a new version of a package to the Debian archive. In order to "
2254 "become effective, this upload needs to be signed by a key contained in one "
2255 "of the Debian package maintainer keyrings (available in the debian-keyring "
2256 "package). Maintainers' keys are signed by other maintainers following "
2257 "pre-established procedures to ensure the identity of the key holder. Similar "
2258 "procedures exist in all Debian-based distributions."
2261 #. type: Content of: <refentry><refsect1><para>
2262 #: apt-secure.8.xml:1
2264 "Once the uploaded package is verified and included in the archive, the "
2265 "maintainer signature is stripped off, and checksums of the package are "
2266 "computed and put in the Packages file. The checksums of all of the Packages "
2267 "files are then computed and put into the Release file. The Release file is "
2268 "then signed by the archive key for this &keyring-distro; release, and "
2269 "distributed alongside the packages and the Packages files on "
2270 "&keyring-distro; mirrors. The keys are in the &keyring-distro; archive "
2271 "keyring available in the &keyring-package; package."
2274 #. type: Content of: <refentry><refsect1><para>
2275 #: apt-secure.8.xml:1
2277 "End users can check the signature of the Release file, extract a checksum of "
2278 "a package from it and compare it with the checksum of the package they "
2279 "downloaded by hand - or rely on APT doing this automatically."
2282 #. type: Content of: <refentry><refsect1><para>
2283 #: apt-secure.8.xml:1
2285 "Notice that this is distinct from checking signatures on a per package "
2286 "basis. It is designed to prevent two possible attacks:"
2289 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2290 #: apt-secure.8.xml:1
2292 "<literal>Network \"man in the middle\" attacks</literal>. Without signature "
2293 "checking, malicious agents can introduce themselves into the package "
2294 "download process and provide malicious software either by controlling a "
2295 "network element (router, switch, etc.) or by redirecting traffic to a rogue "
2296 "server (through ARP or DNS spoofing attacks)."
2299 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2300 #: apt-secure.8.xml:1
2302 "<literal>Mirror network compromise</literal>. Without signature checking, a "
2303 "malicious agent can compromise a mirror host and modify the files in it to "
2304 "propagate malicious software to all users downloading packages from that "
2308 #. type: Content of: <refentry><refsect1><para>
2309 #: apt-secure.8.xml:1
2311 "However, it does not defend against a compromise of the master server itself "
2312 "(which signs the packages) or against a compromise of the key used to sign "
2313 "the Release files. In any case, this mechanism can complement a per-package "
2317 #. type: Content of: <refentry><refsect1><title>
2318 #: apt-secure.8.xml:1
2319 msgid "User Configuration"
2322 #. type: Content of: <refentry><refsect1><para>
2323 #: apt-secure.8.xml:1
2325 "<command>apt-key</command> is the program that manages the list of keys used "
2326 "by APT to trust repositories. It can be used to add or remove keys as well "
2327 "as list the trusted keys. Limiting which key(s) are able to sign which "
2328 "archive is possible via the <option>Signed-By</option> in &sources-list;."
2331 #. type: Content of: <refentry><refsect1><para>
2332 #: apt-secure.8.xml:1
2334 "Note that a default installation already contains all keys to securely "
2335 "acquire packages from the default repositories, so fiddling with "
2336 "<command>apt-key</command> is only needed if third-party repositories are "
2340 #. type: Content of: <refentry><refsect1><para>
2341 #: apt-secure.8.xml:1
2343 "In order to add a new key you need to first download it (you should make "
2344 "sure you are using a trusted communication channel when retrieving it), add "
2345 "it with <command>apt-key</command> and then run <command>apt-get "
2346 "update</command> so that apt can download and verify the "
2347 "<filename>InRelease</filename> or <filename>Release.gpg</filename> files "
2348 "from the archives you have configured."
2351 #. type: Content of: <refentry><refsect1><title>
2352 #: apt-secure.8.xml:1
2353 msgid "Archive Configuration"
2356 #. type: Content of: <refentry><refsect1><para>
2357 #: apt-secure.8.xml:1
2359 "If you want to provide archive signatures in an archive under your "
2360 "maintenance you have to:"
2363 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2364 #: apt-secure.8.xml:1
2366 "<emphasis>Create a toplevel Release file</emphasis>, if it does not exist "
2367 "already. You can do this by running <command>apt-ftparchive "
2368 "release</command> (provided in apt-utils)."
2371 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2372 #: apt-secure.8.xml:1
2374 "<emphasis>Sign it</emphasis>. You can do this by running <command>gpg "
2375 "--clearsign -o InRelease Release</command> and <command>gpg -abs -o "
2376 "Release.gpg Release</command>."
2379 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2380 #: apt-secure.8.xml:1
2382 "<emphasis>Publish the key fingerprint</emphasis>, so that your users will "
2383 "know what key they need to import in order to authenticate the files in the "
2384 "archive. It is best to ship your key in its own keyring package like "
2385 "&keyring-distro; does with &keyring-package; to be able to distribute "
2386 "updates and key transitions automatically later."
2389 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2390 #: apt-secure.8.xml:1
2392 "<emphasis>Provide instructions on how to add your archive and "
2393 "key</emphasis>. If your users can't acquire your key securely the chain of "
2394 "trust described above is broken. How you can help users add your key "
2395 "depends on your archive and target audience ranging from having your keyring "
2396 "package included in another archive users already have configured (like the "
2397 "default repositories of their distribution) to leveraging the web of trust."
2400 #. type: Content of: <refentry><refsect1><para>
2401 #: apt-secure.8.xml:1
2403 "Whenever the contents of the archive change (new packages are added or "
2404 "removed) the archive maintainer has to follow the first two steps outlined "
2408 #. type: Content of: <refentry><refsect1><para>
2409 #: apt-secure.8.xml:1
2411 "&apt-conf;, &apt-get;, &sources-list;, &apt-key;, &apt-ftparchive;, "
2412 "&debsign;, &debsig-verify;, &gpg;"
2415 #. type: Content of: <refentry><refsect1><para>
2416 #: apt-secure.8.xml:1
2418 "For more background information you might want to review the <ulink "
2419 "url=\"https://www.debian.org/doc/manuals/securing-debian-howto/ch7\">Debian "
2420 "Security Infrastructure</ulink> chapter of the Securing Debian Manual (also "
2421 "available in the harden-doc package) and the <ulink "
2422 "url=\"http://www.cryptnet.net/fdp/crypto/strong_distro.html\" >Strong "
2423 "Distribution HOWTO</ulink> by V. Alex Brennen."
2426 #. type: Content of: <refentry><refsect1><title>
2427 #: apt-secure.8.xml:1
2428 msgid "Manpage Authors"
2431 #. type: Content of: <refentry><refsect1><para>
2432 #: apt-secure.8.xml:1
2434 "This man-page is based on the work of Javier Fernández-Sanguino Peña, Isaac "
2435 "Jones, Colin Walters, Florian Weimer and Michael Vogt."
2438 #. type: Content of: <refentry><refnamediv><refpurpose>
2439 #: apt-cdrom.8.xml:1
2440 msgid "APT CD-ROM management utility"
2443 #. type: Content of: <refentry><refsect1><para>
2444 #: apt-cdrom.8.xml:1
2446 "<command>apt-cdrom</command> is used to add a new CD-ROM to APT's list of "
2447 "available sources. <command>apt-cdrom</command> takes care of determining "
2448 "the structure of the disc as well as correcting for several possible "
2449 "mis-burns and verifying the index files."
2452 #. type: Content of: <refentry><refsect1><para>
2453 #: apt-cdrom.8.xml:1
2455 "It is necessary to use <command>apt-cdrom</command> to add CDs to the APT "
2456 "system; it cannot be done by hand. Furthermore each disc in a multi-CD set "
2457 "must be inserted and scanned separately to account for possible mis-burns."
2460 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2461 #: apt-cdrom.8.xml:1
2463 "<literal>add</literal> is used to add a new disc to the source list. It will "
2464 "unmount the CD-ROM device, prompt for a disc to be inserted and then proceed "
2465 "to scan it and copy the index files. If the disc does not have a proper "
2466 "<filename>.disk</filename> directory you will be prompted for a descriptive "
2470 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2471 #: apt-cdrom.8.xml:1
2473 "APT uses a CD-ROM ID to track which disc is currently in the drive and "
2474 "maintains a database of these IDs in "
2475 "<filename>&statedir;/cdroms.list</filename>"
2478 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2479 #: apt-cdrom.8.xml:1
2481 "A debugging tool to report the identity of the current disc as well as the "
2485 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2486 #: apt-cdrom.8.xml:1
2488 "Do not try to auto-detect the CD-ROM path. Usually combined with the "
2489 "<option>--cdrom</option> option. Configuration Item: "
2490 "<literal>Acquire::cdrom::AutoDetect</literal>."
2493 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2494 #: apt-cdrom.8.xml:1
2496 "Mount point; specify the location to mount the CD-ROM. This mount point must "
2497 "be listed in <filename>/etc/fstab</filename> and properly configured. "
2498 "Configuration Item: <literal>Acquire::cdrom::mount</literal>."
2501 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2502 #: apt-cdrom.8.xml:1
2504 "Rename a disc; change the label of a disc or override the disc's given "
2505 "label. This option will cause <command>apt-cdrom</command> to prompt for a "
2506 "new label. Configuration Item: <literal>APT::CDROM::Rename</literal>."
2509 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2510 #: apt-cdrom.8.xml:1
2512 "No mounting; prevent <command>apt-cdrom</command> from mounting and "
2513 "unmounting the mount point. Configuration Item: "
2514 "<literal>APT::CDROM::NoMount</literal>."
2517 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2518 #: apt-cdrom.8.xml:1
2520 "Fast Copy; Assume the package files are valid and do not check every "
2521 "package. This option should be used only if <command>apt-cdrom</command> has "
2522 "been run on this disc before and did not detect any errors. Configuration "
2523 "Item: <literal>APT::CDROM::Fast</literal>."
2526 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2527 #: apt-cdrom.8.xml:1
2529 "Thorough Package Scan; This option may be needed with some old Debian "
2530 "1.1/1.2 discs that have Package files in strange places. It takes much "
2531 "longer to scan the CD but will pick them all up."
2534 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2535 #: apt-cdrom.8.xml:1
2537 "No Changes; Do not change the &sources-list; file and do not write index "
2538 "files. Everything is still checked however. Configuration Item: "
2539 "<literal>APT::CDROM::NoAct</literal>."
2542 #. type: Content of: <refentry><refsect1><para>
2543 #: apt-cdrom.8.xml:1
2544 msgid "&apt-conf;, &apt-get;, &sources-list;"
2547 #. type: Content of: <refentry><refsect1><para>
2548 #: apt-cdrom.8.xml:1
2550 "<command>apt-cdrom</command> returns zero on normal operation, decimal 100 "
2554 #. type: Content of: <refentry><refnamediv><refpurpose>
2555 #: apt-config.8.xml:1
2556 msgid "APT Configuration Query program"
2559 #. type: Content of: <refentry><refsect1><para>
2560 #: apt-config.8.xml:1
2562 "<command>apt-config</command> is an internal program used by various "
2563 "portions of the APT suite to provide consistent configurability. It accesses "
2564 "the main configuration file <filename>/etc/apt/apt.conf</filename> in a "
2565 "manner that is easy to use for scripted applications."
2568 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2569 #: apt-config.8.xml:1
2571 "shell is used to access the configuration information from a shell "
2572 "script. It is given pairs of arguments, the first being a shell variable and "
2573 "the second the configuration value to query. As output it lists shell "
2574 "assignment commands for each value present. In a shell script it should be "
2578 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><informalexample><programlisting>
2579 #: apt-config.8.xml:1
2583 "RES=`apt-config shell OPTS MyApp::options`\n"
2587 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2588 #: apt-config.8.xml:1
2590 "This will set the shell environment variable $OPTS to the value of "
2591 "MyApp::options with a default of <option>-f</option>."
2594 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2595 #: apt-config.8.xml:1
2597 "The configuration item may be postfixed with a /[fdbi]. f returns file "
2598 "names, d returns directories, b returns true or false and i returns an "
2599 "integer. Each of the returns is normalized and verified internally."
2602 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2603 #: apt-config.8.xml:1
2604 msgid "Just show the contents of the configuration space."
2607 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2608 #: apt-config.8.xml:1
2610 "Include options which have an empty value. This is the default, so use "
2611 "--no-empty to remove them from the output."
2614 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option><replaceable>
2615 #: apt-config.8.xml:1
2616 msgid "%f "%v";%n"
2619 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2620 #: apt-config.8.xml:1
2622 "Defines the output of each config option. %t will be replaced with "
2623 "its individual name, %f with its full hierarchical name and %v "
2624 "with its value. Use uppercase letters and special characters in the value "
2625 "will be encoded to ensure that it can e.g. be safely used in a quoted-string "
2626 "as defined by RFC822. Additionally %n will be replaced by a newline, "
2627 "and %N by a tab. A % can be printed by using %%."
2630 #. type: Content of: <refentry><refsect1><para>
2631 #: apt-config.8.xml:1 apt-extracttemplates.1.xml:1 apt-sortpkgs.1.xml:1
2632 #: apt-ftparchive.1.xml:1
2636 #. type: Content of: <refentry><refsect1><para>
2637 #: apt-config.8.xml:1
2639 "<command>apt-config</command> returns zero on normal operation, decimal 100 "
2643 #. type: Content of: <refentry><refentryinfo><author><contrib>
2645 msgid "Initial documentation of Debug::*."
2648 #. type: Content of: <refentry><refentryinfo><author><email>
2650 msgid "dburrows@debian.org"
2653 #. type: Content of: <refentry><refmeta><manvolnum>
2654 #: apt.conf.5.xml:1 apt_preferences.5.xml:1 sources.list.5.xml:1
2658 #. type: Content of: <refentry><refnamediv><refpurpose>
2660 msgid "Configuration file for APT"
2663 #. type: Content of: <refentry><refsect1><para>
2666 "<filename>/etc/apt/apt.conf</filename> is the main configuration file shared "
2667 "by all the tools in the APT suite of tools, though it is by no means the "
2668 "only place options can be set. The suite also shares a common command line "
2669 "parser to provide a uniform environment."
2672 #. type: Content of: <refentry><refsect1><orderedlist><para>
2675 "When an APT tool starts up it will read the configuration files in the "
2679 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2682 "the file specified by the <envar>APT_CONFIG</envar> environment variable (if "
2686 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2689 "all files in <literal>Dir::Etc::Parts</literal> in alphanumeric ascending "
2690 "order which have either no or \"<literal>conf</literal>\" as filename "
2691 "extension and which only contain alphanumeric, hyphen (-), underscore (_) "
2692 "and period (.) characters. Otherwise APT will print a notice that it has "
2693 "ignored a file, unless that file matches a pattern in the "
2694 "<literal>Dir::Ignore-Files-Silently</literal> configuration list - in which "
2695 "case it will be silently ignored."
2698 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2700 msgid "the main configuration file specified by <literal>Dir::Etc::main</literal>"
2703 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2706 "all options set in the binary specific configuration subtree are moved into "
2707 "the root of the tree."
2710 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2713 "the command line options are applied to override the configuration "
2714 "directives or to load even more configuration files."
2717 #. type: Content of: <refentry><refsect1><title>
2722 #. type: Content of: <refentry><refsect1><para>
2725 "The configuration file is organized in a tree with options organized into "
2726 "functional groups. Option specification is given with a double colon "
2727 "notation; for instance <literal>APT::Get::Assume-Yes</literal> is an option "
2728 "within the APT tool group, for the Get tool. Options do not inherit from "
2729 "their parent groups."
2732 #. type: Content of: <refentry><refsect1><para>
2735 "Syntactically the configuration language is modeled after what the ISC tools "
2736 "such as bind and dhcp use. Lines starting with <literal>//</literal> are "
2737 "treated as comments (ignored), as well as all text between "
2738 "<literal>/*</literal> and <literal>*/</literal>, just like C/C++ comments. "
2739 "Each line is of the form <literal>APT::Get::Assume-Yes \"true\";</literal>. "
2740 "The quotation marks and trailing semicolon are required. The value must be "
2741 "on one line, and there is no kind of string concatenation. Values must not "
2742 "include backslashes or extra quotation marks. Option names are made up of "
2743 "alphanumeric characters and the characters \"/-:._+\". A new scope can be "
2744 "opened with curly braces, like this:"
2747 #. type: Content of: <refentry><refsect1><informalexample><programlisting>
2753 " Assume-Yes \"true\";\n"
2754 " Fix-Broken \"true\";\n"
2759 #. type: Content of: <refentry><refsect1><para>
2762 "with newlines placed to make it more readable. Lists can be created by "
2763 "opening a scope and including a single string enclosed in quotes followed by "
2764 "a semicolon. Multiple entries can be included, separated by a semicolon."
2767 #. type: Content of: <refentry><refsect1><informalexample><programlisting>
2770 msgid "DPkg::Pre-Install-Pkgs {\"/usr/sbin/dpkg-preconfigure --apt\";};\n"
2773 #. type: Content of: <refentry><refsect1><para>
2776 "In general the sample configuration file &configureindex; is a good guide "
2777 "for how it should look."
2780 #. type: Content of: <refentry><refsect1><para>
2783 "Case is not significant in names of configuration items, so in the previous "
2784 "example you could use <literal>dpkg::pre-install-pkgs</literal>."
2787 #. type: Content of: <refentry><refsect1><para>
2790 "Names for the configuration items are optional if a list is defined as can "
2791 "be seen in the <literal>DPkg::Pre-Install-Pkgs</literal> example above. If "
2792 "you don't specify a name a new entry will simply add a new option to the "
2793 "list. If you specify a name you can override the option in the same way as "
2794 "any other option by reassigning a new value to the option."
2797 #. type: Content of: <refentry><refsect1><para>
2800 "Two special commands are defined: <literal>#include</literal> (which is "
2801 "deprecated and not supported by alternative implementations) and "
2802 "<literal>#clear</literal>. <literal>#include</literal> will include the "
2803 "given file, unless the filename ends in a slash, in which case the whole "
2804 "directory is included. <literal>#clear</literal> is used to erase a part of "
2805 "the configuration tree. The specified element and all its descendants are "
2806 "erased. (Note that these lines also need to end with a semicolon.)"
2809 #. type: Content of: <refentry><refsect1><para>
2812 "The <literal>#clear</literal> command is the only way to delete a list or a "
2813 "complete scope. Reopening a scope (or using the syntax described below with "
2814 "an appended <literal>::</literal>) will <emphasis>not</emphasis> override "
2815 "previously written entries. Options can only be overridden by addressing a "
2816 "new value to them - lists and scopes can't be overridden, only cleared."
2819 #. type: Content of: <refentry><refsect1><para>
2822 "All of the APT tools take an -o option which allows an arbitrary "
2823 "configuration directive to be specified on the command line. The syntax is a "
2824 "full option name (<literal>APT::Get::Assume-Yes</literal> for instance) "
2825 "followed by an equals sign then the new value of the option. To append a new "
2826 "element to a list, add a trailing <literal>::</literal> to the name of the "
2827 "list. (As you might suspect, the scope syntax can't be used on the command "
2831 #. type: Content of: <refentry><refsect1><para>
2834 "Note that appending items to a list using <literal>::</literal> only works "
2835 "for one item per line, and that you should not use it in combination with "
2836 "the scope syntax (which adds <literal>::</literal> implicitly). Using both "
2837 "syntaxes together will trigger a bug which some users unfortunately depend "
2838 "on: an option with the unusual name \"<literal>::</literal>\" which acts "
2839 "like every other option with a name. This introduces many problems; for one "
2840 "thing, users who write multiple lines in this <emphasis>wrong</emphasis> "
2841 "syntax in the hope of appending to a list will achieve the opposite, as only "
2842 "the last assignment for this option \"<literal>::</literal>\" will be "
2843 "used. Future versions of APT will raise errors and stop working if they "
2844 "encounter this misuse, so please correct such statements now while APT "
2845 "doesn't explicitly complain about them."
2848 #. type: Content of: <refentry><refsect1><title>
2850 msgid "The APT Group"
2853 #. type: Content of: <refentry><refsect1><para>
2856 "This group of options controls general APT behavior as well as holding the "
2857 "options for all of the tools."
2860 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2863 "System Architecture; sets the architecture to use when fetching files and "
2864 "parsing package lists. The internal default is the architecture apt was "
2868 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2871 "All Architectures the system supports. For instance, CPUs implementing the "
2872 "<literal>amd64</literal> (also called <literal>x86-64</literal>) "
2873 "instruction set are also able to execute binaries compiled for the "
2874 "<literal>i386</literal> (<literal>x86</literal>) instruction set. This list "
2875 "is used when fetching files and parsing package lists. The initial default "
2876 "is always the system's native architecture "
2877 "(<literal>APT::Architecture</literal>), and foreign architectures are added "
2878 "to the default list when they are registered via <command>dpkg "
2879 "--add-architecture</command>."
2882 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2885 "This scope defines which compression formats are supported, how compression "
2886 "and decompression can be performed if support for this format isn't built "
2887 "into apt directly and a cost-value indicating how costly it is to compress "
2888 "something in this format. As an example the following configuration stanza "
2889 "would allow apt to download and uncompress as well as create and store files "
2890 "with the low-cost <literal>.reversed</literal> file extension which it will "
2891 "pass to the command <command>rev</command> without additional commandline "
2892 "parameters for compression and uncompression:"
2895 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><informalexample><programlisting>
2899 "APT::Compressor::rev {\n"
2901 "\tExtension \".reversed\";\n"
2902 "\tBinary \"rev\";\n"
2903 "\tCompressArg {};\n"
2904 "\tUncompressArg {};\n"
2909 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2912 "List of all build profiles enabled for build-dependency resolution, without "
2913 "the \"<literal>profile.</literal>\" namespace prefix. By default this list "
2914 "is empty. The <envar>DEB_BUILD_PROFILES</envar> as used by "
2915 "&dpkg-buildpackage; overrides the list notation."
2918 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2921 "Default release to install packages from if more than one version is "
2922 "available. Contains release name, codename or release version. Examples: "
2923 "'stable', 'testing', 'unstable', '&debian-stable-codename;', "
2924 "'&debian-testing-codename;', '4.0', '5.0*'. See also &apt-preferences;."
2927 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2930 "Ignore held packages; this global option causes the problem resolver to "
2931 "ignore held packages in its decision making."
2934 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2937 "Defaults to on. When turned on the autoclean feature will remove any "
2938 "packages which can no longer be downloaded from the cache. If turned off "
2939 "then packages that are locally installed are also excluded from cleaning - "
2940 "but note that APT provides no direct means to reinstall them."
2943 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2946 "Defaults to on, which will cause APT to install essential and important "
2947 "packages as soon as possible in an install/upgrade operation, in order to "
2948 "limit the effect of a failing &dpkg; call. If this option is disabled, APT "
2949 "treats an important package in the same way as an extra package: between the "
2950 "unpacking of the package A and its configuration there can be many other "
2951 "unpack or configuration calls for other unrelated packages B, C etc. If "
2952 "these cause the &dpkg; call to fail (e.g. because package B's maintainer "
2953 "scripts generate an error), this results in a system state in which package "
2954 "A is unpacked but unconfigured - so any package depending on A is now no "
2955 "longer guaranteed to work, as its dependency on A is no longer satisfied."
2958 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2961 "The immediate configuration marker is also applied in the potentially "
2962 "problematic case of circular dependencies, since a dependency with the "
2963 "immediate flag is equivalent to a Pre-Dependency. In theory this allows APT "
2964 "to recognise a situation in which it is unable to perform immediate "
2965 "configuration, abort, and suggest to the user that the option should be "
2966 "temporarily deactivated in order to allow the operation to proceed. Note "
2967 "the use of the word \"theory\" here; in the real world this problem has "
2968 "rarely been encountered, in non-stable distribution versions, and was caused "
2969 "by wrong dependencies of the package in question or by a system in an "
2970 "already broken state; so you should not blindly disable this option, as the "
2971 "scenario mentioned above is not the only problem it can help to prevent in "
2975 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2978 "Before a big operation like <literal>dist-upgrade</literal> is run with this "
2979 "option disabled you should try to explicitly <literal>install</literal> the "
2980 "package APT is unable to configure immediately; but please make sure you "
2981 "also report your problem to your distribution and to the APT team with the "
2982 "buglink below, so they can work on improving or correcting the upgrade "
2986 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2989 "Never enable this option unless you <emphasis>really</emphasis> know what "
2990 "you are doing. It permits APT to temporarily remove an essential package to "
2991 "break a Conflicts/Conflicts or Conflicts/Pre-Depends loop between two "
2992 "essential packages. <emphasis>Such a loop should never exist and is a grave "
2993 "bug</emphasis>. This option will work if the essential packages are not "
2994 "<command>tar</command>, <command>gzip</command>, <command>libc</command>, "
2995 "<command>dpkg</command>, <command>dash</command> or anything that those "
2996 "packages depend on."
2999 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3002 "APT uses since version 0.7.26 a resizable memory mapped cache file to store "
3003 "the available information. <literal>Cache-Start</literal> acts as a hint of "
3004 "the size the cache will grow to, and is therefore the amount of memory APT "
3005 "will request at startup. The default value is 20971520 bytes (~20 MB). Note "
3006 "that this amount of space needs to be available for APT; otherwise it will "
3007 "likely fail ungracefully, so for memory restricted devices this value should "
3008 "be lowered while on systems with a lot of configured sources it should be "
3009 "increased. <literal>Cache-Grow</literal> defines in bytes with the default "
3010 "of 1048576 (~1 MB) how much the cache size will be increased in the event "
3011 "the space defined by <literal>Cache-Start</literal> is not enough. This "
3012 "value will be applied again and again until either the cache is big enough "
3013 "to store all information or the size of the cache reaches the "
3014 "<literal>Cache-Limit</literal>. The default of "
3015 "<literal>Cache-Limit</literal> is 0 which stands for no limit. If "
3016 "<literal>Cache-Grow</literal> is set to 0 the automatic growth of the cache "
3020 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3022 msgid "Defines which packages are considered essential build dependencies."
3025 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3028 "The Get subsection controls the &apt-get; tool; please see its documentation "
3029 "for more information about the options here."
3032 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3035 "The Cache subsection controls the &apt-cache; tool; please see its "
3036 "documentation for more information about the options here."
3039 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3042 "The CDROM subsection controls the &apt-cdrom; tool; please see its "
3043 "documentation for more information about the options here."
3046 #. type: Content of: <refentry><refsect1><title>
3048 msgid "The Acquire Group"
3051 #. type: Content of: <refentry><refsect1><para>
3054 "The <literal>Acquire</literal> group of options controls the download of "
3055 "packages as well as the various \"acquire methods\" responsible for the "
3056 "download itself (see also &sources-list;)."
3059 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3062 "Security related option defaulting to true, as giving a Release file's "
3063 "validation an expiration date prevents replay attacks over a long timescale, "
3064 "and can also for example help users to identify mirrors that are no longer "
3065 "updated - but the feature depends on the correctness of the clock on the "
3066 "user system. Archive maintainers are encouraged to create Release files with "
3067 "the <literal>Valid-Until</literal> header, but if they don't or a stricter "
3068 "value is desired the <literal>Max-ValidTime</literal> option below can be "
3069 "used. The <option>Check-Valid-Until</option> option of &sources-list; "
3070 "entries should be preferred to disable the check selectively instead of "
3071 "using this global override."
3074 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3077 "Maximum time (in seconds) after its creation (as indicated by the "
3078 "<literal>Date</literal> header) that the <filename>Release</filename> file "
3079 "should be considered valid. If the Release file itself includes a "
3080 "<literal>Valid-Until</literal> header the earlier date of the two is used as "
3081 "the expiration date. The default value is <literal>0</literal> which stands "
3082 "for \"valid forever\". Archive specific settings can be made by appending "
3083 "the label of the archive to the option name. Preferably, the same can be "
3084 "achieved for specific &sources-list; entries by using the "
3085 "<option>Valid-Until-Max</option> option there."
3088 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3091 "Minimum time (in seconds) after its creation (as indicated by the "
3092 "<literal>Date</literal> header) that the <filename>Release</filename> file "
3093 "should be considered valid. Use this if you need to use a seldom updated "
3094 "(local) mirror of a more frequently updated archive with a "
3095 "<literal>Valid-Until</literal> header instead of completely disabling the "
3096 "expiration date checking. Archive specific settings can and should be used "
3097 "by appending the label of the archive to the option name. Preferably, the "
3098 "same can be achieved for specific &sources-list; entries by using the "
3099 "<option>Valid-Until-Min</option> option there."
3102 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3105 "Try to download deltas called <literal>PDiffs</literal> for indexes (like "
3106 "<filename>Packages</filename> files) instead of downloading whole ones. True "
3107 "by default. Preferably, this can be set for specific &sources-list; entries "
3108 "or index files by using the <option>PDiffs</option> option there."
3111 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3114 "Two sub-options to limit the use of PDiffs are also available: "
3115 "<literal>FileLimit</literal> can be used to specify a maximum number of "
3116 "PDiff files should be downloaded to update a "
3117 "file. <literal>SizeLimit</literal> on the other hand is the maximum "
3118 "percentage of the size of all patches compared to the size of the targeted "
3119 "file. If one of these limits is exceeded the complete file is downloaded "
3120 "instead of the patches."
3123 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3126 "Try to download indexes via an URI constructed from a hashsum of the "
3127 "expected file rather than downloaded via a well-known stable filename. True "
3128 "by default, but automatically disabled if the source indicates no support "
3129 "for it. Usage can be forced with the special value \"force\". Preferably, "
3130 "this can be set for specific &sources-list; entries or index files by using "
3131 "the <option>By-Hash</option> option there."
3134 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3137 "Queuing mode; <literal>Queue-Mode</literal> can be one of "
3138 "<literal>host</literal> or <literal>access</literal> which determines how "
3139 "APT parallelizes outgoing connections. <literal>host</literal> means that "
3140 "one connection per target host will be opened, <literal>access</literal> "
3141 "means that one connection per URI type will be opened."
3144 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3147 "Number of retries to perform. If this is non-zero APT will retry failed "
3148 "files the given number of times."
3151 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3154 "Use symlinks for source archives. If set to true then source archives will "
3155 "be symlinked when possible instead of copying. True is the default."
3158 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3161 "<literal>http::Proxy</literal> sets the default proxy to use for HTTP "
3162 "URIs. It is in the standard form of "
3163 "<literal>http://[[user][:pass]@]host[:port]/</literal>. Per host proxies "
3164 "can also be specified by using the form "
3165 "<literal>http::Proxy::<host></literal> with the special keyword "
3166 "<literal>DIRECT</literal> meaning to use no proxies. If no one of the above "
3167 "settings is specified, <envar>http_proxy</envar> environment variable will "
3171 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3174 "Three settings are provided for cache control with HTTP/1.1 compliant proxy "
3175 "caches. <literal>No-Cache</literal> tells the proxy not to use its cached "
3176 "response under any circumstances. <literal>Max-Age</literal> sets the "
3177 "allowed maximum age (in seconds) of an index file in the cache of the "
3178 "proxy. <literal>No-Store</literal> specifies that the proxy should not "
3179 "store the requested archive files in its cache, which can be used to prevent "
3180 "the proxy from polluting its cache with (big) .deb files."
3183 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3184 #: apt.conf.5.xml:1 apt.conf.5.xml:1
3186 "The option <literal>timeout</literal> sets the timeout timer used by the "
3187 "method; this value applies to the connection as well as the data timeout."
3190 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3193 "The setting <literal>Acquire::http::Pipeline-Depth</literal> can be used to "
3194 "enable HTTP pipelining (RFC 2616 section 8.1.2.2) which can be beneficial "
3195 "e.g. on high-latency connections. It specifies how many requests are sent in "
3196 "a pipeline. APT tries to detect and workaround misbehaving webservers and "
3197 "proxies at runtime, but if you know that yours does not conform to the "
3198 "HTTP/1.1 specification pipelining can be disabled by setting the value to "
3199 "0. It is enabled by default with the value 10."
3202 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3205 "<literal>Acquire::http::AllowRedirect</literal> controls whether APT will "
3206 "follow redirects, which is enabled by default."
3209 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3212 "The used bandwidth can be limited with "
3213 "<literal>Acquire::http::Dl-Limit</literal> which accepts integer values in "
3214 "kilobytes per second. The default value is 0 which deactivates the limit and "
3215 "tries to use all available bandwidth. Note that this option implicitly "
3216 "disables downloading from multiple servers at the same time."
3219 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3222 "<literal>Acquire::http::User-Agent</literal> can be used to set a different "
3223 "User-Agent for the http download method as some proxies allow access for "
3224 "clients only if the client uses a known identifier."
3227 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3230 "<literal>Acquire::http::Proxy-Auto-Detect</literal> can be used to specify "
3231 "an external command to discover the http proxy to use. The first and only "
3232 "parameter is an URI denoting the host to be contacted to allow for "
3233 "host-specific configuration. APT expects the command to output the proxy on "
3234 "stdout as a single line in the style <literal>http://proxy:port/</literal> "
3235 "or the word <literal>DIRECT</literal> if no proxy should be used. No output "
3236 "indicates that the generic proxy settings should be used. Note that "
3237 "auto-detection will not be used for a host if a host-specific proxy "
3238 "configuration is already set via "
3239 "<literal>Acquire::http::Proxy::<replaceable>HOST</replaceable></literal>. "
3240 "See the &squid-deb-proxy-client; package for an example implementation that "
3241 "uses avahi. This option takes precedence over the legacy option name "
3242 "<literal>ProxyAutoDetect</literal>."
3245 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3248 "The <literal>Cache-control</literal>, <literal>Timeout</literal>, "
3249 "<literal>AllowRedirect</literal>, <literal>Dl-Limit</literal> and "
3250 "<literal>proxy</literal> options work for HTTPS URIs in the same way as for "
3251 "the <literal>http</literal> method, and default to the same values if they "
3252 "are not explicitly set. The <literal>Pipeline-Depth</literal> option is not "
3256 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3259 "<literal>CaInfo</literal> suboption specifies place of file that holds info "
3260 "about trusted certificates. <literal><host>::CaInfo</literal> is the "
3261 "corresponding per-host option. <literal>Verify-Peer</literal> boolean "
3262 "suboption determines whether or not the server's host certificate should be "
3263 "verified against trusted certificates. "
3264 "<literal><host>::Verify-Peer</literal> is the corresponding per-host "
3265 "option. <literal>Verify-Host</literal> boolean suboption determines whether "
3266 "or not the server's hostname should be verified. "
3267 "<literal><host>::Verify-Host</literal> is the corresponding per-host "
3268 "option. <literal>SslCert</literal> determines what certificate to use for "
3269 "client authentication. <literal><host>::SslCert</literal> is the "
3270 "corresponding per-host option. <literal>SslKey</literal> determines what "
3271 "private key to use for client "
3272 "authentication. <literal><host>::SslKey</literal> is the corresponding "
3273 "per-host option. <literal>SslForceVersion</literal> overrides default SSL "
3274 "version to use. It can contain either of the strings "
3275 "'<literal>TLSv1</literal>' or '<literal>SSLv3</literal>'. "
3276 "<literal><host>::SslForceVersion</literal> is the corresponding "
3280 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3283 "<literal>ftp::Proxy</literal> sets the default proxy to use for FTP URIs. "
3284 "It is in the standard form of "
3285 "<literal>ftp://[[user][:pass]@]host[:port]/</literal>. Per host proxies can "
3286 "also be specified by using the form "
3287 "<literal>ftp::Proxy::<host></literal> with the special keyword "
3288 "<literal>DIRECT</literal> meaning to use no proxies. If no one of the above "
3289 "settings is specified, <envar>ftp_proxy</envar> environment variable will be "
3290 "used. To use an FTP proxy you will have to set the "
3291 "<literal>ftp::ProxyLogin</literal> script in the configuration file. This "
3292 "entry specifies the commands to send to tell the proxy server what to "
3293 "connect to. Please see &configureindex; for an example of how to do "
3294 "this. The substitution variables representing the corresponding URI "
3295 "component are <literal>$(PROXY_USER)</literal>, "
3296 "<literal>$(PROXY_PASS)</literal>, <literal>$(SITE_USER)</literal>, "
3297 "<literal>$(SITE_PASS)</literal>, <literal>$(SITE)</literal> and "
3298 "<literal>$(SITE_PORT)</literal>."
3301 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3304 "Several settings are provided to control passive mode. Generally it is safe "
3305 "to leave passive mode on; it works in nearly every environment. However, "
3306 "some situations require that passive mode be disabled and port mode FTP used "
3307 "instead. This can be done globally or for connections that go through a "
3308 "proxy or for a specific host (see the sample config file for examples)."
3311 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3314 "It is possible to proxy FTP over HTTP by setting the "
3315 "<envar>ftp_proxy</envar> environment variable to an HTTP URL - see the "
3316 "discussion of the http method above for syntax. You cannot set this in the "
3317 "configuration file and it is not recommended to use FTP over HTTP due to its "
3321 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3324 "The setting <literal>ForceExtended</literal> controls the use of RFC2428 "
3325 "<literal>EPSV</literal> and <literal>EPRT</literal> commands. The default is "
3326 "false, which means these commands are only used if the control connection is "
3327 "IPv6. Setting this to true forces their use even on IPv4 connections. Note "
3328 "that most FTP servers do not support RFC2428."
3331 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><literallayout>
3334 msgid "/cdrom/::Mount \"foo\";"
3337 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3340 "For URIs using the <literal>cdrom</literal> method, the only configurable "
3341 "option is the mount point, <literal>cdrom::Mount</literal>, which must be "
3342 "the mount point for the CD-ROM (or DVD, or whatever) drive as specified in "
3343 "<filename>/etc/fstab</filename>. It is possible to provide alternate mount "
3344 "and unmount commands if your mount point cannot be listed in the fstab. The "
3345 "syntax is to put <placeholder type=\"literallayout\" id=\"0\"/> within the "
3346 "<literal>cdrom</literal> block. It is important to have the trailing slash. "
3347 "Unmount commands can be specified using UMount."
3350 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3353 "For GPGV URIs the only configurable option is "
3354 "<literal>gpgv::Options</literal>, which passes additional parameters to "
3358 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><synopsis>
3362 "Acquire::CompressionTypes::<replaceable>FileExtension</replaceable> "
3363 "\"<replaceable>Methodname</replaceable>\";"
3366 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3369 "List of compression types which are understood by the acquire methods. "
3370 "Files like <filename>Packages</filename> can be available in various "
3371 "compression formats. By default the acquire methods can decompress and "
3372 "recompress many common formats like <command>xz</command> and "
3373 "<command>gzip</command>; with this scope the supported formats can be "
3374 "queried, modified as well as support for more formats added (see also "
3375 "<option>APT::Compressor</option>). The syntax for this is: <placeholder "
3376 "type=\"synopsis\" id=\"0\"/>"
3379 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><synopsis>
3382 msgid "Acquire::CompressionTypes::Order:: \"gz\";"
3385 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><synopsis>
3388 msgid "Acquire::CompressionTypes::Order { \"xz\"; \"gz\"; };"
3391 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3394 "Also, the <literal>Order</literal> subgroup can be used to define in which "
3395 "order the acquire system will try to download the compressed files. The "
3396 "acquire system will try the first and proceed with the next compression type "
3397 "in this list on error, so to prefer one over the other type simply add the "
3398 "preferred type first - types not already added will be implicitly appended "
3399 "to the end of the list, so e.g. <placeholder type=\"synopsis\" id=\"0\"/> "
3400 "can be used to prefer <command>gzip</command> compressed files over all "
3401 "other compression formats. If <command>xz</command> should be preferred "
3402 "over <command>gzip</command> and <command>bzip2</command> the configure "
3403 "setting should look like this: <placeholder type=\"synopsis\" id=\"1\"/> It "
3404 "is not needed to add <literal>bz2</literal> to the list explicitly as it "
3405 "will be added automatically."
3408 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><literallayout>
3411 msgid "Dir::Bin::bzip2 \"/bin/bzip2\";"
3414 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3418 "<literal>Dir::Bin::<replaceable>Methodname</replaceable></literal> will be "
3419 "checked at run time. If this option has been set and support for this format "
3420 "isn't directly built into apt, the method will only be used if this file "
3421 "exists; e.g. for the <literal>bzip2</literal> method (the inbuilt) setting "
3422 "is: <placeholder type=\"literallayout\" id=\"0\"/> Note also that list "
3423 "entries specified on the command line will be added at the end of the list "
3424 "specified in the configuration files, but before the default entries. To "
3425 "prefer a type in this case over the ones specified in the configuration "
3426 "files you can set the option direct - not in list style. This will not "
3427 "override the defined list; it will only prefix the list with this type."
3430 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3433 "The special type <literal>uncompressed</literal> can be used to give "
3434 "uncompressed files a preference, but note that most archives don't provide "
3435 "uncompressed files so this is mostly only useable for local mirrors."
3438 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3441 "When downloading <literal>gzip</literal> compressed indexes (Packages, "
3442 "Sources, or Translations), keep them gzip compressed locally instead of "
3443 "unpacking them. This saves quite a lot of disk space at the expense of more "
3444 "CPU requirements when building the local package caches. False by default."
3447 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3450 "The Languages subsection controls which <filename>Translation</filename> "
3451 "files are downloaded and in which order APT tries to display the "
3452 "description-translations. APT will try to display the first available "
3453 "description in the language which is listed first. Languages can be defined "
3454 "with their short or long language codes. Note that not all archives provide "
3455 "<filename>Translation</filename> files for every language - the long "
3456 "language codes are especially rare."
3459 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><programlisting>
3462 msgid "Acquire::Languages { \"environment\"; \"de\"; \"en\"; \"none\"; \"fr\"; };"
3465 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3468 "The default list includes \"environment\" and "
3469 "\"en\". \"<literal>environment</literal>\" has a special meaning here: it "
3470 "will be replaced at runtime with the language codes extracted from the "
3471 "<literal>LC_MESSAGES</literal> environment variable. It will also ensure "
3472 "that these codes are not included twice in the list. If "
3473 "<literal>LC_MESSAGES</literal> is set to \"C\" only the "
3474 "<filename>Translation-en</filename> file (if available) will be used. To "
3475 "force APT to use no Translation file use the setting "
3476 "<literal>Acquire::Languages=none</literal>. \"<literal>none</literal>\" is "
3477 "another special meaning code which will stop the search for a suitable "
3478 "<filename>Translation</filename> file. This tells APT to download these "
3479 "translations too, without actually using them unless the environment "
3480 "specifies the languages. So the following example configuration will result "
3481 "in the order \"en, de\" in an English locale or \"de, en\" in a German "
3482 "one. Note that \"fr\" is downloaded, but not used unless APT is used in a "
3483 "French locale (where the order would be \"fr, de, en\"). <placeholder "
3484 "type=\"programlisting\" id=\"0\"/>"
3487 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3490 "Note: To prevent problems resulting from APT being executed in different "
3491 "environments (e.g. by different users or by other programs) all Translation "
3492 "files which are found in <filename>/var/lib/apt/lists/</filename> will be "
3493 "added to the end of the list (after an implicit "
3494 "\"<literal>none</literal>\")."
3497 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3499 msgid "When downloading, force to use only the IPv4 protocol."
3502 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3504 msgid "When downloading, force to use only the IPv6 protocol."
3507 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3510 "The maximum file size of Release/Release.gpg/InRelease files. The default "
3514 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3517 "This option controls if apt will use the DNS SRV server record as specified "
3518 "in RFC 2782 to select an alternative server to connect to. The default is "
3522 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3525 "Allow update operations to load data files from repositories without "
3526 "sufficient security information. The default value is "
3527 "\"<literal>false</literal>\". Concept, implications as well as alternatives "
3528 "are detailed in &apt-secure;."
3531 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3534 "Allow update operations to load data files from repositories which provide "
3535 "security information, but these are deemed no longer cryptographically "
3536 "strong enough. The default value is \"<literal>false</literal>\". Concept, "
3537 "implications as well as alternatives are detailed in &apt-secure;."
3540 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3543 "Allow that a repository that was previously gpg signed to become unsigned "
3544 "during an update operation. When there is no valid signature for a "
3545 "previously trusted repository apt will refuse the update. This option can be "
3546 "used to override this protection. You almost certainly never want to enable "
3547 "this. The default is <literal>false</literal>. Concept, implications as "
3548 "well as alternatives are detailed in &apt-secure;."
3551 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3556 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3559 "Acquiring changelogs can only be done if an URI is known from where to get "
3560 "them. Preferable the Release file indicates this in a 'Changelogs' "
3561 "field. If this isn't available the Label/Origin field of the Release file is "
3562 "used to check if a "
3563 "<literal>Acquire::Changelogs::URI::Label::<replaceable>LABEL</replaceable></literal> "
3565 "<literal>Acquire::Changelogs::URI::Origin::<replaceable>ORIGIN</replaceable></literal> "
3566 "option exists and if so this value is taken. The value in the Release file "
3567 "can be overridden with "
3568 "<literal>Acquire::Changelogs::URI::Override::Label::<replaceable>LABEL</replaceable></literal> "
3570 "<literal>Acquire::Changelogs::URI::Override::Origin::<replaceable>ORIGIN</replaceable></literal>. "
3571 "The value should be a normal URI to a text file, except that package "
3572 "specific data is replaced with the placeholder "
3573 "<literal>@CHANGEPATH@</literal>. The value for it is: 1. if the package is "
3574 "from a component (e.g. <literal>main</literal>) this is the first part "
3575 "otherwise it is omitted, 2. the first letter of source package name, except "
3576 "if the source package name starts with '<literal>lib</literal>' in which "
3577 "case it will be the first four letters. 3. The complete source package "
3578 "name. 4. the complete name again and 5. the source version. The first (if "
3579 "present), second, third and fourth part are separated by a slash "
3580 "('<literal>/</literal>') and between the fourth and fifth part is an "
3581 "underscore ('<literal>_</literal>'). The special value "
3582 "'<literal>no</literal>' is available for this option indicating that this "
3583 "source can't be used to acquire changelog files from. Another source will be "
3584 "tried if available in this case."
3587 #. type: Content of: <refentry><refsect1><title>
3589 msgid "Binary specific configuration"
3592 #. type: Content of: <refentry><refsect1><para>
3595 "Especially with the introduction of the <command>apt</command> binary it can "
3596 "be useful to set certain options only for a specific binary as even options "
3597 "which look like they would effect only a certain binary like "
3598 "<option>APT::Get::Show-Versions</option> effect <command>apt-get</command> "
3599 "as well as <command>apt</command>."
3602 #. type: Content of: <refentry><refsect1><para>
3605 "Setting an option for a specific binary only can be achieved by setting the "
3606 "option inside the "
3607 "<option>Binary::<replaceable>specific-binary</replaceable></option> "
3608 "scope. Setting the option <option>APT::Get::Show-Versions</option> for the "
3609 "<command>apt</command> only can e.g. by done by setting "
3610 "<option>Binary::apt::APT::Get::Show-Versions</option> instead."
3613 #. type: Content of: <refentry><refsect1><para>
3616 "Note that as seen in the DESCRIPTION section further above you can't set "
3617 "binary-specific options on the commandline itself nor in configuration files "
3618 "loaded via the commandline."
3621 #. type: Content of: <refentry><refsect1><title>
3626 #. type: Content of: <refentry><refsect1><para>
3629 "The <literal>Dir::State</literal> section has directories that pertain to "
3630 "local state information. <literal>lists</literal> is the directory to place "
3631 "downloaded package lists in and <literal>status</literal> is the name of the "
3632 "&dpkg; status file. <literal>preferences</literal> is the name of the APT "
3633 "<filename>preferences</filename> file. <literal>Dir::State</literal> "
3634 "contains the default directory to prefix on all sub-items if they do not "
3635 "start with <filename>/</filename> or <filename>./</filename>."
3638 #. type: Content of: <refentry><refsect1><para>
3641 "<literal>Dir::Cache</literal> contains locations pertaining to local cache "
3642 "information, such as the two package caches <literal>srcpkgcache</literal> "
3643 "and <literal>pkgcache</literal> as well as the location to place downloaded "
3644 "archives, <literal>Dir::Cache::archives</literal>. Generation of caches can "
3645 "be turned off by setting <literal>pkgcache</literal> or "
3646 "<literal>srcpkgcache</literal> to <literal>\"\"</literal>. This will slow "
3647 "down startup but save disk space. It is probably preferable to turn off the "
3648 "pkgcache rather than the srcpkgcache. Like <literal>Dir::State</literal> "
3649 "the default directory is contained in <literal>Dir::Cache</literal>"
3652 #. type: Content of: <refentry><refsect1><para>
3655 "<literal>Dir::Etc</literal> contains the location of configuration files, "
3656 "<literal>sourcelist</literal> gives the location of the sourcelist and "
3657 "<literal>main</literal> is the default configuration file (setting has no "
3658 "effect, unless it is done from the config file specified by "
3659 "<envar>APT_CONFIG</envar>)."
3662 #. type: Content of: <refentry><refsect1><para>
3665 "The <literal>Dir::Parts</literal> setting reads in all the config fragments "
3666 "in lexical order from the directory specified. After this is done then the "
3667 "main config file is loaded."
3670 #. type: Content of: <refentry><refsect1><para>
3673 "Binary programs are pointed to by "
3674 "<literal>Dir::Bin</literal>. <literal>Dir::Bin::Methods</literal> specifies "
3675 "the location of the method handlers and <literal>gzip</literal>, "
3676 "<literal>bzip2</literal>, <literal>lzma</literal>, <literal>dpkg</literal>, "
3677 "<literal>apt-get</literal> <literal>dpkg-source</literal> "
3678 "<literal>dpkg-buildpackage</literal> and <literal>apt-cache</literal> "
3679 "specify the location of the respective programs."
3682 #. type: Content of: <refentry><refsect1><para>
3685 "The configuration item <literal>RootDir</literal> has a special meaning. If "
3686 "set, all paths will be relative to <literal>RootDir</literal>, "
3687 "<emphasis>even paths that are specified absolutely</emphasis>. So, for "
3688 "instance, if <literal>RootDir</literal> is set to "
3689 "<filename>/tmp/staging</filename> and <literal>Dir::State::status</literal> "
3690 "is set to <filename>/var/lib/dpkg/status</filename>, then the status file "
3691 "will be looked up in <filename>/tmp/staging/var/lib/dpkg/status</filename>. "
3692 "If you want to prefix only relative paths, set <literal>Dir</literal> "
3696 #. type: Content of: <refentry><refsect1><para>
3699 "The <literal>Ignore-Files-Silently</literal> list can be used to specify "
3700 "which files APT should silently ignore while parsing the files in the "
3701 "fragment directories. Per default a file which end with "
3702 "<literal>.disabled</literal>, <literal>~</literal>, <literal>.bak</literal> "
3703 "or <literal>.dpkg-[a-z]+</literal> is silently ignored. As seen in the last "
3704 "default value these patterns can use regular expression syntax."
3707 #. type: Content of: <refentry><refsect1><title>
3709 msgid "APT in DSelect"
3712 #. type: Content of: <refentry><refsect1><para>
3715 "When APT is used as a &dselect; method several configuration directives "
3716 "control the default behavior. These are in the <literal>DSelect</literal> "
3720 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3723 "Cache Clean mode; this value may be one of <literal>always</literal>, "
3724 "<literal>prompt</literal>, <literal>auto</literal>, "
3725 "<literal>pre-auto</literal> and <literal>never</literal>. "
3726 "<literal>always</literal> and <literal>prompt</literal> will remove all "
3727 "packages from the cache after upgrading, <literal>prompt</literal> (the "
3728 "default) does so conditionally. <literal>auto</literal> removes only those "
3729 "packages which are no longer downloadable (replaced with a new version for "
3730 "instance). <literal>pre-auto</literal> performs this action before "
3731 "downloading new packages."
3734 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3737 "The contents of this variable are passed to &apt-get; as command line "
3738 "options when it is run for the install phase."
3741 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3744 "The contents of this variable are passed to &apt-get; as command line "
3745 "options when it is run for the update phase."
3748 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3751 "If true the [U]pdate operation in &dselect; will always prompt to continue. "
3752 "The default is to prompt only on error."
3755 #. type: Content of: <refentry><refsect1><title>
3757 msgid "How APT calls &dpkg;"
3760 #. type: Content of: <refentry><refsect1><para>
3763 "Several configuration directives control how APT invokes &dpkg;. These are "
3764 "in the <literal>DPkg</literal> section."
3767 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3770 "This is a list of options to pass to &dpkg;. The options must be specified "
3771 "using the list notation and each list item is passed as a single argument to "
3775 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3778 "This is a list of shell commands to run before/after invoking &dpkg;. Like "
3779 "<literal>options</literal> this must be specified in list notation. The "
3780 "commands are invoked in order using <filename>/bin/sh</filename>; should any "
3781 "fail APT will abort."
3784 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3787 "This is a list of shell commands to run before invoking &dpkg;. Like "
3788 "<literal>options</literal> this must be specified in list notation. The "
3789 "commands are invoked in order using <filename>/bin/sh</filename>; should any "
3790 "fail APT will abort. APT will pass the filenames of all .deb files it is "
3791 "going to install to the commands, one per line on the requested file "
3792 "descriptor, defaulting to standard input."
3795 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3798 "Version 2 of this protocol sends more information through the requested file "
3799 "descriptor: a line with the text <literal>VERSION 2</literal>, the APT "
3800 "configuration space, and a list of package actions with filename and version "
3804 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3807 "Each configuration directive line has the form "
3808 "<literal>key=value</literal>. Special characters (equal signs, newlines, "
3809 "nonprintable characters, quotation marks, and percent signs in "
3810 "<literal>key</literal> and newlines, nonprintable characters, and percent "
3811 "signs in <literal>value</literal>) are %-encoded. Lists are represented by "
3812 "multiple <literal>key::=value</literal> lines with the same key. The "
3813 "configuration section ends with a blank line."
3816 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3819 "Package action lines consist of five fields in Version 2: package name "
3820 "(without architecture qualification even if foreign), old version, direction "
3821 "of version change (< for upgrades, > for downgrades, = for no change), "
3822 "new version, action. The version fields are \"-\" for no version at all (for "
3823 "example when installing a package for the first time; no version is treated "
3824 "as earlier than any real version, so that is an upgrade, indicated as "
3825 "<literal>- < 1.23.4</literal>). The action field is \"**CONFIGURE**\" if "
3826 "the package is being configured, \"**REMOVE**\" if it is being removed, or "
3827 "the filename of a .deb file if it is being unpacked."
3830 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3833 "In Version 3 after each version field follows the architecture of this "
3834 "version, which is \"-\" if there is no version, and a field showing the "
3835 "MultiArch type \"same\", \"foreign\", \"allowed\" or \"none\". Note that "
3836 "\"none\" is an incorrect typename which is just kept to remain compatible, "
3837 "it should be read as \"no\" and users are encouraged to support both."
3840 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3843 "The version of the protocol to be used for the command "
3844 "<literal><replaceable>cmd</replaceable></literal> can be chosen by setting "
3845 "<literal>DPkg::Tools::options::<replaceable>cmd</replaceable>::Version</literal> "
3846 "accordingly, the default being version 1. If APT isn't supporting the "
3847 "requested version it will send the information in the highest version it has "
3848 "support for instead."
3851 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3854 "The file descriptor to be used to send the information can be requested with "
3855 "<literal>DPkg::Tools::options::<replaceable>cmd</replaceable>::InfoFD</literal> "
3856 "which defaults to <literal>0</literal> for standard input and is available "
3857 "since version 0.9.11. Support for the option can be detected by looking for "
3858 "the environment variable <envar>APT_HOOK_INFO_FD</envar> which contains the "
3859 "number of the used file descriptor as a confirmation."
3862 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3865 "APT chdirs to this directory before invoking &dpkg;, the default is "
3866 "<filename>/</filename>."
3869 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3872 "These options are passed to &dpkg-buildpackage; when compiling packages; the "
3873 "default is to disable signing and produce all binaries."
3876 #. type: Content of: <refentry><refsect1><refsect2><title>
3878 msgid "dpkg trigger usage (and related options)"
3881 #. type: Content of: <refentry><refsect1><refsect2><para>
3884 "APT can call &dpkg; in such a way as to let it make aggressive use of "
3885 "triggers over multiple calls of &dpkg;. Without further options &dpkg; will "
3886 "use triggers once each time it runs. Activating these options can therefore "
3887 "decrease the time needed to perform the install or upgrade. Note that it is "
3888 "intended to activate these options per default in the future, but as it "
3889 "drastically changes the way APT calls &dpkg; it needs a lot more testing. "
3890 "<emphasis>These options are therefore currently experimental and should not "
3891 "be used in production environments.</emphasis> It also breaks progress "
3892 "reporting such that all front-ends will currently stay around half (or more) "
3893 "of the time in the 100% state while it actually configures all packages."
3896 #. type: Content of: <refentry><refsect1><refsect2><para><literallayout>
3900 "DPkg::NoTriggers \"true\";\n"
3901 "PackageManager::Configure \"smart\";\n"
3902 "DPkg::ConfigurePending \"true\";\n"
3903 "DPkg::TriggersPending \"true\";"
3906 #. type: Content of: <refentry><refsect1><refsect2><para>
3909 "Note that it is not guaranteed that APT will support these options or that "
3910 "these options will not cause (big) trouble in the future. If you have "
3911 "understand the current risks and problems with these options, but are brave "
3912 "enough to help testing them, create a new configuration file and test a "
3913 "combination of options. Please report any bugs, problems and improvements "
3914 "you encounter and make sure to note which options you have used in your "
3915 "reports. Asking &dpkg; for help could also be useful for debugging proposes, "
3916 "see e.g. <command>dpkg --audit</command>. A defensive option combination "
3917 "would be <placeholder type=\"literallayout\" id=\"0\"/>"
3920 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3923 "Add the no triggers flag to all &dpkg; calls (except the ConfigurePending "
3924 "call). See &dpkg; if you are interested in what this actually means. In "
3925 "short: &dpkg; will not run the triggers when this flag is present unless it "
3926 "is explicitly called to do so in an extra call. Note that this option "
3927 "exists (undocumented) also in older APT versions with a slightly different "
3928 "meaning: Previously these option only append --no-triggers to the configure "
3929 "calls to &dpkg; - now APT will also add this flag to the unpack and remove "
3933 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3936 "Valid values are \"<literal>all</literal>\", \"<literal>smart</literal>\" "
3937 "and \"<literal>no</literal>\". The default value is "
3938 "\"<literal>all</literal>\", which causes APT to configure all packages. The "
3939 "\"<literal>smart</literal>\" way is to configure only packages which need to "
3940 "be configured before another package can be unpacked (Pre-Depends), and let "
3941 "the rest be configured by &dpkg; with a call generated by the "
3942 "ConfigurePending option (see below). On the other hand, "
3943 "\"<literal>no</literal>\" will not configure anything, and totally relies on "
3944 "&dpkg; for configuration (which at the moment will fail if a Pre-Depends is "
3945 "encountered). Setting this option to any value other than "
3946 "<literal>all</literal> will implicitly also activate the next option by "
3947 "default, as otherwise the system could end in an unconfigured and "
3948 "potentially unbootable state."
3951 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3954 "If this option is set APT will call <command>dpkg --configure "
3955 "--pending</command> to let &dpkg; handle all required configurations and "
3956 "triggers. This option is activated automatically per default if the previous "
3957 "option is not set to <literal>all</literal>, but deactivating it could be "
3958 "useful if you want to run APT multiple times in a row - e.g. in an "
3959 "installer. In these sceneries you could deactivate this option in all but "
3963 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3966 "Useful for the <literal>smart</literal> configuration as a package which has "
3967 "pending triggers is not considered as <literal>installed</literal>, and "
3968 "&dpkg; treats them as <literal>unpacked</literal> currently which is a "
3969 "showstopper for Pre-Dependencies (see debbugs #526774). Note that this will "
3970 "process all triggers, not only the triggers needed to configure this "
3974 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para><literallayout>
3978 "OrderList::Score {\n"
3980 "\tEssential 200;\n"
3982 "\tPreDepends 50;\n"
3986 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3989 "Essential packages (and their dependencies) should be configured immediately "
3990 "after unpacking. It is a good idea to do this quite early in the upgrade "
3991 "process as these configure calls also currently require "
3992 "<literal>DPkg::TriggersPending</literal> which will run quite a few triggers "
3993 "(which may not be needed). Essentials get per default a high score but the "
3994 "immediate flag is relatively low (a package which has a Pre-Depends is rated "
3995 "higher). These option and the others in the same group can be used to "
3996 "change the scoring. The following example shows the settings with their "
3997 "default values. <placeholder type=\"literallayout\" id=\"0\"/>"
4000 #. type: Content of: <refentry><refsect1><title>
4002 msgid "Periodic and Archives options"
4005 #. type: Content of: <refentry><refsect1><para>
4008 "<literal>APT::Periodic</literal> and <literal>APT::Archives</literal> groups "
4009 "of options configure behavior of apt periodic updates, which is done by the "
4010 "<literal>/etc/cron.daily/apt</literal> script. See the top of this script "
4011 "for the brief documentation of these options."
4014 #. type: Content of: <refentry><refsect1><title>
4016 msgid "Debug options"
4019 #. type: Content of: <refentry><refsect1><para>
4022 "Enabling options in the <literal>Debug::</literal> section will cause "
4023 "debugging information to be sent to the standard error stream of the program "
4024 "utilizing the <literal>apt</literal> libraries, or enable special program "
4025 "modes that are primarily useful for debugging the behavior of "
4026 "<literal>apt</literal>. Most of these options are not interesting to a "
4027 "normal user, but a few may be:"
4030 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4033 "<literal>Debug::pkgProblemResolver</literal> enables output about the "
4034 "decisions made by <literal>dist-upgrade, upgrade, install, remove, "
4038 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4041 "<literal>Debug::NoLocking</literal> disables all file locking. This can be "
4042 "used to run some operations (for instance, <literal>apt-get -s "
4043 "install</literal>) as a non-root user."
4046 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4049 "<literal>Debug::pkgDPkgPM</literal> prints out the actual command line each "
4050 "time that <literal>apt</literal> invokes &dpkg;."
4054 #. motivating example, except I haven't a clue why you'd want
4056 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4059 "<literal>Debug::IdentCdrom</literal> disables the inclusion of statfs data "
4063 #. type: Content of: <refentry><refsect1><para>
4065 msgid "A full list of debugging options to apt follows."
4068 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4070 msgid "Print information related to accessing <literal>cdrom://</literal> sources."
4073 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4075 msgid "Print information related to downloading packages using FTP."
4078 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4080 msgid "Print information related to downloading packages using HTTP."
4083 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4085 msgid "Print information related to downloading packages using HTTPS."
4088 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4091 "Print information related to verifying cryptographic signatures using "
4092 "<literal>gpg</literal>."
4095 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4098 "Output information about the process of accessing collections of packages "
4099 "stored on CD-ROMs."
4102 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4104 msgid "Describes the process of resolving build-dependencies in &apt-get;."
4107 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4110 "Output each cryptographic hash that is generated by the "
4111 "<literal>apt</literal> libraries."
4114 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4117 "Do not include information from <literal>statfs</literal>, namely the number "
4118 "of used and free blocks on the CD-ROM filesystem, when generating an ID for "
4122 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4125 "Disable all file locking. For instance, this will allow two instances of "
4126 "<quote><literal>apt-get update</literal></quote> to run at the same time."
4129 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4131 msgid "Log when items are added to or removed from the global download queue."
4134 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4137 "Output status messages and errors related to verifying checksums and "
4138 "cryptographic signatures of downloaded files."
4141 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4144 "Output information about downloading and applying package index list diffs, "
4145 "and errors relating to package index list diffs."
4148 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4151 "Output information related to patching apt package lists when downloading "
4152 "index diffs instead of full indices."
4155 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4157 msgid "Log all interactions with the sub-processes that actually perform downloads."
4160 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4163 "Log events related to the automatically-installed status of packages and to "
4164 "the removal of unused packages."
4167 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4170 "Generate debug messages describing which packages are being automatically "
4171 "installed to resolve dependencies. This corresponds to the initial "
4172 "auto-install pass performed in, e.g., <literal>apt-get install</literal>, "
4173 "and not to the full <literal>apt</literal> dependency resolver; see "
4174 "<literal>Debug::pkgProblemResolver</literal> for that."
4177 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4180 "Generate debug messages describing which packages are marked as "
4181 "keep/install/remove while the ProblemResolver does his work. Each addition "
4182 "or deletion may trigger additional actions; they are shown indented two "
4183 "additional spaces under the original entry. The format for each line is "
4184 "<literal>MarkKeep</literal>, <literal>MarkDelete</literal> or "
4185 "<literal>MarkInstall</literal> followed by <literal>package-name <a.b.c "
4186 "-> d.e.f | x.y.z> (section)</literal> where <literal>a.b.c</literal> "
4187 "is the current version of the package, <literal>d.e.f</literal> is the "
4188 "version considered for installation and <literal>x.y.z</literal> is a newer "
4189 "version, but not considered for installation (because of a low pin "
4190 "score). The later two can be omitted if there is none or if it is the same "
4191 "as the installed version. <literal>section</literal> is the name of the "
4192 "section the package appears in."
4195 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4198 "When invoking &dpkg;, output the precise command line with which it is being "
4199 "invoked, with arguments separated by a single space character."
4202 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4205 "Output all the data received from &dpkg; on the status file descriptor and "
4206 "any errors encountered while parsing it."
4209 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4212 "Generate a trace of the algorithm that decides the order in which "
4213 "<literal>apt</literal> should pass packages to &dpkg;."
4216 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4218 msgid "Output status messages tracing the steps performed when invoking &dpkg;."
4221 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4223 msgid "Output the priority of each package list on startup."
4226 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4229 "Trace the execution of the dependency resolver (this applies only to what "
4230 "happens when a complex dependency problem is encountered)."
4233 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4236 "Display a list of all installed packages with their calculated score used by "
4237 "the pkgProblemResolver. The description of the package is the same as "
4238 "described in <literal>Debug::pkgDepCache::Marker</literal>"
4241 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4244 "Print information about the vendors read from "
4245 "<filename>/etc/apt/vendors.list</filename>."
4248 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4251 "Display the external commands that are called by apt hooks. This includes "
4252 "e.g. the config options <literal>DPkg::{Pre,Post}-Invoke</literal> or "
4253 "<literal>APT::Update::{Pre,Post}-Invoke</literal>."
4256 #. type: Content of: <refentry><refsect1><title>
4257 #: apt.conf.5.xml:1 apt_preferences.5.xml:1 sources.list.5.xml:1
4258 #: apt-ftparchive.1.xml:1
4262 #. type: Content of: <refentry><refsect1><para>
4265 "&configureindex; is a configuration file showing example values for all "
4269 #. ? reading apt.conf
4270 #. type: Content of: <refentry><refsect1><para>
4272 msgid "&apt-cache;, &apt-config;, &apt-preferences;."
4275 #. type: Content of: <refentry><refnamediv><refpurpose>
4276 #: apt_preferences.5.xml:1
4277 msgid "Preference control file for APT"
4280 #. type: Content of: <refentry><refsect1><para>
4281 #: apt_preferences.5.xml:1
4283 "The APT preferences file <filename>/etc/apt/preferences</filename> and the "
4284 "fragment files in the <filename>/etc/apt/preferences.d/</filename> folder "
4285 "can be used to control which versions of packages will be selected for "
4289 #. type: Content of: <refentry><refsect1><para>
4290 #: apt_preferences.5.xml:1
4292 "Several versions of a package may be available for installation when the "
4293 "&sources-list; file contains references to more than one distribution (for "
4294 "example, <literal>stable</literal> and <literal>testing</literal>). APT "
4295 "assigns a priority to each version that is available. Subject to dependency "
4296 "constraints, <command>apt-get</command> selects the version with the highest "
4297 "priority for installation. The APT preferences override the priorities that "
4298 "APT assigns to package versions by default, thus giving the user control "
4299 "over which one is selected for installation."
4302 #. type: Content of: <refentry><refsect1><para>
4303 #: apt_preferences.5.xml:1
4305 "Several instances of the same version of a package may be available when the "
4306 "&sources-list; file contains references to more than one source. In this "
4307 "case <command>apt-get</command> downloads the instance listed earliest in "
4308 "the &sources-list; file. The APT preferences do not affect the choice of "
4309 "instance, only the choice of version."
4312 #. type: Content of: <refentry><refsect1><para>
4313 #: apt_preferences.5.xml:1
4315 "Preferences are a strong power in the hands of a system administrator but "
4316 "they can become also their biggest nightmare if used without care! APT will "
4317 "not question the preferences, so wrong settings can lead to uninstallable "
4318 "packages or wrong decisions while upgrading packages. Even more problems "
4319 "will arise if multiple distribution releases are mixed without a good "
4320 "understanding of the following paragraphs. Packages included in a specific "
4321 "release aren't tested in (and therefore don't always work as expected in) "
4322 "older or newer releases, or together with other packages from different "
4323 "releases. You have been warned."
4326 #. type: Content of: <refentry><refsect1><para>
4327 #: apt_preferences.5.xml:1
4329 "Note that the files in the <filename>/etc/apt/preferences.d</filename> "
4330 "directory are parsed in alphanumeric ascending order and need to obey the "
4331 "following naming convention: The files have either no or "
4332 "\"<literal>pref</literal>\" as filename extension and only contain "
4333 "alphanumeric, hyphen (-), underscore (_) and period (.) characters. "
4334 "Otherwise APT will print a notice that it has ignored a file, unless that "
4335 "file matches a pattern in the <literal>Dir::Ignore-Files-Silently</literal> "
4336 "configuration list - in which case it will be silently ignored."
4339 #. type: Content of: <refentry><refsect1><refsect2><title>
4340 #: apt_preferences.5.xml:1
4341 msgid "APT's Default Priority Assignments"
4344 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4345 #: apt_preferences.5.xml:1
4348 "<command>apt-get install -t testing "
4349 "<replaceable>some-package</replaceable></command>\n"
4352 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4353 #: apt_preferences.5.xml:1
4355 msgid "APT::Default-Release \"stable\";\n"
4358 #. type: Content of: <refentry><refsect1><refsect2><para>
4359 #: apt_preferences.5.xml:1
4361 "If there is no preferences file or if there is no entry in the file that "
4362 "applies to a particular version then the priority assigned to that version "
4363 "is the priority of the distribution to which that version belongs. It is "
4364 "possible to single out a distribution, \"the target release\", which "
4365 "receives a higher priority than other distributions do by default. The "
4366 "target release can be set on the <command>apt-get</command> command line or "
4367 "in the APT configuration file <filename>/etc/apt/apt.conf</filename>. Note "
4368 "that this has precedence over any general priority you set in the "
4369 "<filename>/etc/apt/preferences</filename> file described later, but not over "
4370 "specifically pinned packages. For example, <placeholder "
4371 "type=\"programlisting\" id=\"0\"/> <placeholder type=\"programlisting\" "
4375 #. type: Content of: <refentry><refsect1><refsect2><para>
4376 #: apt_preferences.5.xml:1
4378 "If the target release has been specified then APT uses the following "
4379 "algorithm to set the priorities of the versions of a package. Assign:"
4382 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4383 #: apt_preferences.5.xml:1
4387 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4388 #: apt_preferences.5.xml:1
4390 "to the versions coming from archives which in their "
4391 "<filename>Release</filename> files are marked as \"NotAutomatic: yes\" but "
4392 "<emphasis>not</emphasis> as \"ButAutomaticUpgrades: yes\" like the Debian "
4393 "<literal>experimental</literal> archive."
4396 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4397 #: apt_preferences.5.xml:1
4398 msgid "priority 100"
4401 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4402 #: apt_preferences.5.xml:1
4404 "to the version that is already installed (if any) and to the versions coming "
4405 "from archives which in their <filename>Release</filename> files are marked "
4406 "as \"NotAutomatic: yes\" and \"ButAutomaticUpgrades: yes\" like the Debian "
4407 "backports archive since <literal>squeeze-backports</literal>."
4410 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4411 #: apt_preferences.5.xml:1
4412 msgid "priority 500"
4415 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4416 #: apt_preferences.5.xml:1
4417 msgid "to the versions that do not belong to the target release."
4420 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4421 #: apt_preferences.5.xml:1
4422 msgid "priority 990"
4425 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4426 #: apt_preferences.5.xml:1
4427 msgid "to the versions that belong to the target release."
4430 #. type: Content of: <refentry><refsect1><refsect2><para>
4431 #: apt_preferences.5.xml:1
4433 "The highest of those priorities whose description matches the version is "
4434 "assigned to the version."
4437 #. type: Content of: <refentry><refsect1><refsect2><para>
4438 #: apt_preferences.5.xml:1
4440 "If the target release has not been specified then APT simply assigns "
4441 "priority 100 to all installed package versions and priority 500 to all "
4442 "uninstalled package versions, except versions coming from archives which in "
4443 "their <filename>Release</filename> files are marked as \"NotAutomatic: yes\" "
4444 "- these versions get the priority 1 or priority 100 if it is additionally "
4445 "marked as \"ButAutomaticUpgrades: yes\"."
4448 #. type: Content of: <refentry><refsect1><refsect2><para>
4449 #: apt_preferences.5.xml:1
4451 "APT then applies the following rules, listed in order of precedence, to "
4452 "determine which version of a package to install."
4455 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4456 #: apt_preferences.5.xml:1
4458 "Never downgrade unless the priority of an available version exceeds 1000. "
4459 "(\"Downgrading\" is installing a less recent version of a package in place "
4460 "of a more recent version. Note that none of APT's default priorities "
4461 "exceeds 1000; such high priorities can only be set in the preferences file. "
4462 "Note also that downgrading a package can be risky.)"
4465 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4466 #: apt_preferences.5.xml:1
4467 msgid "Install the highest priority version."
4470 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4471 #: apt_preferences.5.xml:1
4473 "If two or more versions have the same priority, install the most recent one "
4474 "(that is, the one with the higher version number)."
4477 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4478 #: apt_preferences.5.xml:1
4480 "If two or more versions have the same priority and version number but either "
4481 "the packages differ in some of their metadata or the "
4482 "<literal>--reinstall</literal> option is given, install the uninstalled one."
4485 #. type: Content of: <refentry><refsect1><refsect2><para>
4486 #: apt_preferences.5.xml:1
4488 "In a typical situation, the installed version of a package (priority 100) "
4489 "is not as recent as one of the versions available from the sources listed in "
4490 "the &sources-list; file (priority 500 or 990). Then the package will be "
4491 "upgraded when <command>apt-get install "
4492 "<replaceable>some-package</replaceable></command> or <command>apt-get "
4493 "upgrade</command> is executed."
4496 #. type: Content of: <refentry><refsect1><refsect2><para>
4497 #: apt_preferences.5.xml:1
4499 "More rarely, the installed version of a package is <emphasis>more</emphasis> "
4500 "recent than any of the other available versions. The package will not be "
4501 "downgraded when <command>apt-get install "
4502 "<replaceable>some-package</replaceable></command> or <command>apt-get "
4503 "upgrade</command> is executed."
4506 #. type: Content of: <refentry><refsect1><refsect2><para>
4507 #: apt_preferences.5.xml:1
4509 "Sometimes the installed version of a package is more recent than the version "
4510 "belonging to the target release, but not as recent as a version belonging to "
4511 "some other distribution. Such a package will indeed be upgraded when "
4512 "<command>apt-get install <replaceable>some-package</replaceable></command> "
4513 "or <command>apt-get upgrade</command> is executed, because at least "
4514 "<emphasis>one</emphasis> of the available versions has a higher priority "
4515 "than the installed version."
4518 #. type: Content of: <refentry><refsect1><refsect2><title>
4519 #: apt_preferences.5.xml:1
4520 msgid "The Effect of APT Preferences"
4523 #. type: Content of: <refentry><refsect1><refsect2><para>
4524 #: apt_preferences.5.xml:1
4526 "The APT preferences file allows the system administrator to control the "
4527 "assignment of priorities. The file consists of one or more multi-line "
4528 "records separated by blank lines. Records can have one of two forms, a "
4529 "specific form and a general form."
4532 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4533 #: apt_preferences.5.xml:1
4535 "The specific form assigns a priority (a \"Pin-Priority\") to one or more "
4536 "specified packages with a specified version or version range. For example, "
4537 "the following record assigns a high priority to all versions of the "
4538 "<filename>perl</filename> package whose version number begins with "
4539 "\"<literal>&good-perl;</literal>\". Multiple packages can be separated by "
4543 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4544 #: apt_preferences.5.xml:1
4548 "Pin: version &good-perl;*\n"
4549 "Pin-Priority: 1001\n"
4552 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4553 #: apt_preferences.5.xml:1
4555 "The general form assigns a priority to all of the package versions in a "
4556 "given distribution (that is, to all the versions of packages that are listed "
4557 "in a certain <filename>Release</filename> file) or to all of the package "
4558 "versions coming from a particular Internet site, as identified by the site's "
4559 "fully qualified domain name."
4562 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4563 #: apt_preferences.5.xml:1
4565 "This general-form entry in the APT preferences file applies only to groups "
4566 "of packages. For example, the following record assigns a high priority to "
4567 "all package versions available from the local site."
4570 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4571 #: apt_preferences.5.xml:1
4575 "Pin: origin \"\"\n"
4576 "Pin-Priority: 999\n"
4579 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4580 #: apt_preferences.5.xml:1
4582 "A note of caution: the keyword used here is \"<literal>origin</literal>\" "
4583 "which can be used to match a hostname. The following record will assign a "
4584 "high priority to all versions available from the server identified by the "
4585 "hostname \"ftp.de.debian.org\""
4588 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4589 #: apt_preferences.5.xml:1
4593 "Pin: origin \"ftp.de.debian.org\"\n"
4594 "Pin-Priority: 999\n"
4597 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4598 #: apt_preferences.5.xml:1
4600 "This should <emphasis>not</emphasis> be confused with the Origin of a "
4601 "distribution as specified in a <filename>Release</filename> file. What "
4602 "follows the \"Origin:\" tag in a <filename>Release</filename> file is not an "
4603 "Internet address but an author or vendor name, such as \"Debian\" or "
4607 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4608 #: apt_preferences.5.xml:1
4610 "The following record assigns a low priority to all package versions "
4611 "belonging to any distribution whose Archive name is "
4612 "\"<literal>unstable</literal>\"."
4615 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4616 #: apt_preferences.5.xml:1
4620 "Pin: release a=unstable\n"
4621 "Pin-Priority: 50\n"
4624 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4625 #: apt_preferences.5.xml:1
4627 "The following record assigns a high priority to all package versions "
4628 "belonging to any distribution whose Codename is "
4629 "\"<literal>&debian-testing-codename;</literal>\"."
4632 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4633 #: apt_preferences.5.xml:1
4637 "Pin: release n=&debian-testing-codename;\n"
4638 "Pin-Priority: 900\n"
4641 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4642 #: apt_preferences.5.xml:1
4644 "The following record assigns a high priority to all package versions "
4645 "belonging to any release whose Archive name is \"<literal>stable</literal>\" "
4646 "and whose release Version number is "
4647 "\"<literal>&debian-stable-version;</literal>\"."
4650 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4651 #: apt_preferences.5.xml:1
4655 "Pin: release a=stable, v=&debian-stable-version;\n"
4656 "Pin-Priority: 500\n"
4659 #. type: Content of: <refentry><refsect1><refsect2><para>
4660 #: apt_preferences.5.xml:1
4662 "The effect of the comma operator is similar to an \"and\" in logic: All "
4663 "conditions must be satisfied for the pin to match. There is one exception: "
4664 "For any type of condition (such as two \"a\" conditions), only the last such "
4665 "condition is checked."
4668 #. type: Content of: <refentry><refsect1><refsect2><title>
4669 #: apt_preferences.5.xml:1
4670 msgid "Regular expressions and &glob; syntax"
4673 #. type: Content of: <refentry><refsect1><refsect2><para>
4674 #: apt_preferences.5.xml:1
4676 "APT also supports pinning by &glob; expressions, and regular expressions "
4677 "surrounded by slashes. For example, the following example assigns the "
4678 "priority 500 to all packages from experimental where the name starts with "
4679 "gnome (as a &glob;-like expression) or contains the word kde (as a POSIX "
4680 "extended regular expression surrounded by slashes)."
4683 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
4684 #: apt_preferences.5.xml:1
4687 "Package: gnome* /kde/\n"
4688 "Pin: release a=experimental\n"
4689 "Pin-Priority: 500\n"
4692 #. type: Content of: <refentry><refsect1><refsect2><para>
4693 #: apt_preferences.5.xml:1
4695 "The rule for those expressions is that they can occur anywhere where a "
4696 "string can occur. Thus, the following pin assigns the priority 990 to all "
4697 "packages from a release starting with &ubuntu-codename;."
4700 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
4701 #: apt_preferences.5.xml:1
4705 "Pin: release n=&ubuntu-codename;*\n"
4706 "Pin-Priority: 990\n"
4709 #. type: Content of: <refentry><refsect1><refsect2><para>
4710 #: apt_preferences.5.xml:1
4712 "If a regular expression occurs in a <literal>Package</literal> field, the "
4713 "behavior is the same as if this regular expression were replaced with a list "
4714 "of all package names it matches. It is undecided whether this will change in "
4715 "the future; thus you should always list wild-card pins first, so later "
4716 "specific pins override it. The pattern \"<literal>*</literal>\" in a "
4717 "Package field is not considered a &glob; expression in itself."
4720 #. type: Content of: <refentry><refsect1><refsect2><title>
4721 #: apt_preferences.5.xml:1
4722 msgid "How APT Interprets Priorities"
4725 #. type: Content of: <refentry><refsect1><refsect2><para>
4726 #: apt_preferences.5.xml:1
4728 "Priorities (P) assigned in the APT preferences file must be positive or "
4729 "negative integers. They are interpreted as follows (roughly speaking):"
4732 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4733 #: apt_preferences.5.xml:1
4734 msgid "P >= 1000"
4737 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4738 #: apt_preferences.5.xml:1
4740 "causes a version to be installed even if this constitutes a downgrade of the "
4744 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4745 #: apt_preferences.5.xml:1
4746 msgid "990 <= P < 1000"
4749 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4750 #: apt_preferences.5.xml:1
4752 "causes a version to be installed even if it does not come from the target "
4753 "release, unless the installed version is more recent"
4756 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4757 #: apt_preferences.5.xml:1
4758 msgid "500 <= P < 990"
4761 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4762 #: apt_preferences.5.xml:1
4764 "causes a version to be installed unless there is a version available "
4765 "belonging to the target release or the installed version is more recent"
4768 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4769 #: apt_preferences.5.xml:1
4770 msgid "100 <= P < 500"
4773 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4774 #: apt_preferences.5.xml:1
4776 "causes a version to be installed unless there is a version available "
4777 "belonging to some other distribution or the installed version is more recent"
4780 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4781 #: apt_preferences.5.xml:1
4782 msgid "0 < P < 100"
4785 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4786 #: apt_preferences.5.xml:1
4788 "causes a version to be installed only if there is no installed version of "
4792 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4793 #: apt_preferences.5.xml:1
4797 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4798 #: apt_preferences.5.xml:1
4799 msgid "prevents the version from being installed"
4802 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4803 #: apt_preferences.5.xml:1
4807 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4808 #: apt_preferences.5.xml:1
4809 msgid "has undefined behaviour, do not use it."
4812 #. type: Content of: <refentry><refsect1><refsect2><para>
4813 #: apt_preferences.5.xml:1
4815 "The first specific-form record matching an available package version "
4816 "determines the priority of the package version. Failing that, the priority "
4817 "of the package is defined as the maximum of all priorities defined by "
4818 "generic-form records matching the version. Records defined using patterns "
4819 "in the Pin field other than \"*\" are treated like specific-form records."
4822 #. type: Content of: <refentry><refsect1><refsect2><para>
4823 #: apt_preferences.5.xml:1
4825 "For example, suppose the APT preferences file contains the three records "
4826 "presented earlier:"
4829 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
4830 #: apt_preferences.5.xml:1
4834 "Pin: version &good-perl;*\n"
4835 "Pin-Priority: 1001\n"
4838 "Pin: origin \"\"\n"
4839 "Pin-Priority: 999\n"
4842 "Pin: release unstable\n"
4843 "Pin-Priority: 50\n"
4846 #. type: Content of: <refentry><refsect1><refsect2><para>
4847 #: apt_preferences.5.xml:1
4851 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4852 #: apt_preferences.5.xml:1
4854 "The most recent available version of the <literal>perl</literal> package "
4855 "will be installed, so long as that version's version number begins with "
4856 "\"<literal>&good-perl;</literal>\". If <emphasis>any</emphasis> "
4857 "&good-perl;* version of <literal>perl</literal> is available and the "
4858 "installed version is &bad-perl;*, then <literal>perl</literal> will be "
4862 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4863 #: apt_preferences.5.xml:1
4865 "A version of any package other than <literal>perl</literal> that is "
4866 "available from the local system has priority over other versions, even "
4867 "versions belonging to the target release."
4870 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4871 #: apt_preferences.5.xml:1
4873 "A version of a package whose origin is not the local system but some other "
4874 "site listed in &sources-list; and which belongs to an "
4875 "<literal>unstable</literal> distribution is only installed if it is selected "
4876 "for installation and no version of the package is already installed."
4879 #. type: Content of: <refentry><refsect1><refsect2><title>
4880 #: apt_preferences.5.xml:1
4881 msgid "Determination of Package Version and Distribution Properties"
4884 #. type: Content of: <refentry><refsect1><refsect2><para>
4885 #: apt_preferences.5.xml:1
4887 "The locations listed in the &sources-list; file should provide "
4888 "<filename>Packages</filename> and <filename>Release</filename> files to "
4889 "describe the packages available at that location."
4892 #. type: Content of: <refentry><refsect1><refsect2><para>
4893 #: apt_preferences.5.xml:1
4895 "The <filename>Packages</filename> file is normally found in the directory "
4896 "<filename>.../dists/<replaceable>dist-name</replaceable>/<replaceable>component</replaceable>/<replaceable>arch</replaceable></filename>: "
4898 "<filename>.../dists/stable/main/binary-i386/Packages</filename>. It "
4899 "consists of a series of multi-line records, one for each package available "
4900 "in that directory. Only two lines in each record are relevant for setting "
4904 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4905 #: apt_preferences.5.xml:1
4906 msgid "the <literal>Package:</literal> line"
4909 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4910 #: apt_preferences.5.xml:1
4911 msgid "gives the package name"
4914 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4915 #: apt_preferences.5.xml:1 apt_preferences.5.xml:1
4916 msgid "the <literal>Version:</literal> line"
4919 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4920 #: apt_preferences.5.xml:1
4921 msgid "gives the version number for the named package"
4924 #. type: Content of: <refentry><refsect1><refsect2><para>
4925 #: apt_preferences.5.xml:1
4927 "The <filename>Release</filename> file is normally found in the directory "
4928 "<filename>.../dists/<replaceable>dist-name</replaceable></filename>: for "
4929 "example, <filename>.../dists/stable/Release</filename>, or "
4930 "<filename>.../dists/&debian-stable-codename;/Release</filename>. It "
4931 "consists of a single multi-line record which applies to "
4932 "<emphasis>all</emphasis> of the packages in the directory tree below its "
4933 "parent. Unlike the <filename>Packages</filename> file, nearly all of the "
4934 "lines in a <filename>Release</filename> file are relevant for setting APT "
4938 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4939 #: apt_preferences.5.xml:1
4940 msgid "the <literal>Archive:</literal> or <literal>Suite:</literal> line"
4943 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4944 #: apt_preferences.5.xml:1
4946 "names the archive to which all the packages in the directory tree belong. "
4947 "For example, the line \"Archive: stable\" or \"Suite: stable\" specifies "
4948 "that all of the packages in the directory tree below the parent of the "
4949 "<filename>Release</filename> file are in a <literal>stable</literal> "
4950 "archive. Specifying this value in the APT preferences file would require "
4954 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
4955 #: apt_preferences.5.xml:1
4957 msgid "Pin: release a=stable\n"
4960 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4961 #: apt_preferences.5.xml:1
4962 msgid "the <literal>Codename:</literal> line"
4965 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4966 #: apt_preferences.5.xml:1
4968 "names the codename to which all the packages in the directory tree belong. "
4969 "For example, the line \"Codename: &debian-testing-codename;\" specifies that "
4970 "all of the packages in the directory tree below the parent of the "
4971 "<filename>Release</filename> file belong to a version named "
4972 "<literal>&debian-testing-codename;</literal>. Specifying this value in the "
4973 "APT preferences file would require the line:"
4976 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
4977 #: apt_preferences.5.xml:1
4979 msgid "Pin: release n=&debian-testing-codename;\n"
4982 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4983 #: apt_preferences.5.xml:1
4985 "names the release version. For example, the packages in the tree might "
4986 "belong to Debian release version &debian-stable-version;. Note that there "
4987 "is normally no version number for the <literal>testing</literal> and "
4988 "<literal>unstable</literal> distributions because they have not been "
4989 "released yet. Specifying this in the APT preferences file would require one "
4990 "of the following lines."
4993 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
4994 #: apt_preferences.5.xml:1
4997 "Pin: release v=&debian-stable-version;\n"
4998 "Pin: release a=stable, v=&debian-stable-version;\n"
4999 "Pin: release &debian-stable-version;\n"
5002 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5003 #: apt_preferences.5.xml:1
5004 msgid "the <literal>Component:</literal> line"
5007 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5008 #: apt_preferences.5.xml:1
5010 "names the licensing component associated with the packages in the directory "
5011 "tree of the <filename>Release</filename> file. For example, the line "
5012 "\"Component: main\" specifies that all the packages in the directory tree "
5013 "are from the <literal>main</literal> component, which entails that they are "
5014 "licensed under terms listed in the Debian Free Software Guidelines. "
5015 "Specifying this component in the APT preferences file would require the "
5019 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5020 #: apt_preferences.5.xml:1
5022 msgid "Pin: release c=main\n"
5025 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5026 #: apt_preferences.5.xml:1
5027 msgid "the <literal>Origin:</literal> line"
5030 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5031 #: apt_preferences.5.xml:1
5033 "names the originator of the packages in the directory tree of the "
5034 "<filename>Release</filename> file. Most commonly, this is "
5035 "<literal>Debian</literal>. Specifying this origin in the APT preferences "
5036 "file would require the line:"
5039 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5040 #: apt_preferences.5.xml:1
5042 msgid "Pin: release o=Debian\n"
5045 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5046 #: apt_preferences.5.xml:1
5047 msgid "the <literal>Label:</literal> line"
5050 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5051 #: apt_preferences.5.xml:1
5053 "names the label of the packages in the directory tree of the "
5054 "<filename>Release</filename> file. Most commonly, this is "
5055 "<literal>Debian</literal>. Specifying this label in the APT preferences "
5056 "file would require the line:"
5059 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5060 #: apt_preferences.5.xml:1
5062 msgid "Pin: release l=Debian\n"
5065 #. type: Content of: <refentry><refsect1><refsect2><para>
5066 #: apt_preferences.5.xml:1
5068 "All of the <filename>Packages</filename> and <filename>Release</filename> "
5069 "files retrieved from locations listed in the &sources-list; file are stored "
5070 "in the directory <filename>/var/lib/apt/lists</filename>, or in the file "
5071 "named by the variable <literal>Dir::State::Lists</literal> in the "
5072 "<filename>apt.conf</filename> file. For example, the file "
5073 "<filename>debian.lcs.mit.edu_debian_dists_unstable_contrib_binary-i386_Release</filename> "
5074 "contains the <filename>Release</filename> file retrieved from the site "
5075 "<literal>debian.lcs.mit.edu</literal> for <literal>binary-i386</literal> "
5076 "architecture files from the <literal>contrib</literal> component of the "
5077 "<literal>unstable</literal> distribution."
5080 #. type: Content of: <refentry><refsect1><refsect2><title>
5081 #: apt_preferences.5.xml:1
5082 msgid "Optional Lines in an APT Preferences Record"
5085 #. type: Content of: <refentry><refsect1><refsect2><para>
5086 #: apt_preferences.5.xml:1
5088 "Each record in the APT preferences file can optionally begin with one or "
5089 "more lines beginning with the word <literal>Explanation:</literal>. This "
5090 "provides a place for comments."
5093 #. type: Content of: <refentry><refsect1><refsect2><title>
5094 #: apt_preferences.5.xml:1
5095 msgid "Tracking Stable"
5098 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5099 #: apt_preferences.5.xml:1
5102 "Explanation: Uninstall or do not install any Debian-originated\n"
5103 "Explanation: package versions other than those in the stable distro\n"
5105 "Pin: release a=stable\n"
5106 "Pin-Priority: 900\n"
5109 "Pin: release o=Debian\n"
5110 "Pin-Priority: -10\n"
5113 #. type: Content of: <refentry><refsect1><refsect2><para>
5114 #: apt_preferences.5.xml:1
5116 "The following APT preferences file will cause APT to assign a priority "
5117 "higher than the default (500) to all package versions belonging to a "
5118 "<literal>stable</literal> distribution and a prohibitively low priority to "
5119 "package versions belonging to other <literal>Debian</literal> "
5120 "distributions. <placeholder type=\"programlisting\" id=\"0\"/>"
5123 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5124 #: apt_preferences.5.xml:1 apt_preferences.5.xml:1 apt_preferences.5.xml:1
5127 "apt-get install <replaceable>package-name</replaceable>\n"
5129 "apt-get dist-upgrade\n"
5132 #. type: Content of: <refentry><refsect1><refsect2><para>
5133 #: apt_preferences.5.xml:1
5135 "With a suitable &sources-list; file and the above preferences file, any of "
5136 "the following commands will cause APT to upgrade to the latest "
5137 "<literal>stable</literal> version(s). <placeholder type=\"programlisting\" "
5141 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5142 #: apt_preferences.5.xml:1
5144 msgid "apt-get install <replaceable>package</replaceable>/testing\n"
5147 #. type: Content of: <refentry><refsect1><refsect2><para>
5148 #: apt_preferences.5.xml:1
5150 "The following command will cause APT to upgrade the specified package to the "
5151 "latest version from the <literal>testing</literal> distribution; the package "
5152 "will not be upgraded again unless this command is given again. <placeholder "
5153 "type=\"programlisting\" id=\"0\"/>"
5156 #. type: Content of: <refentry><refsect1><refsect2><title>
5157 #: apt_preferences.5.xml:1
5158 msgid "Tracking Testing or Unstable"
5161 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5162 #: apt_preferences.5.xml:1
5166 "Pin: release a=testing\n"
5167 "Pin-Priority: 900\n"
5170 "Pin: release a=unstable\n"
5171 "Pin-Priority: 800\n"
5174 "Pin: release o=Debian\n"
5175 "Pin-Priority: -10\n"
5178 #. type: Content of: <refentry><refsect1><refsect2><para>
5179 #: apt_preferences.5.xml:1
5181 "The following APT preferences file will cause APT to assign a high priority "
5182 "to package versions from the <literal>testing</literal> distribution, a "
5183 "lower priority to package versions from the <literal>unstable</literal> "
5184 "distribution, and a prohibitively low priority to package versions from "
5185 "other <literal>Debian</literal> distributions. <placeholder "
5186 "type=\"programlisting\" id=\"0\"/>"
5189 #. type: Content of: <refentry><refsect1><refsect2><para>
5190 #: apt_preferences.5.xml:1
5192 "With a suitable &sources-list; file and the above preferences file, any of "
5193 "the following commands will cause APT to upgrade to the latest "
5194 "<literal>testing</literal> version(s). <placeholder type=\"programlisting\" "
5198 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5199 #: apt_preferences.5.xml:1
5201 msgid "apt-get install <replaceable>package</replaceable>/unstable\n"
5204 #. type: Content of: <refentry><refsect1><refsect2><para>
5205 #: apt_preferences.5.xml:1
5207 "The following command will cause APT to upgrade the specified package to the "
5208 "latest version from the <literal>unstable</literal> distribution. "
5209 "Thereafter, <command>apt-get upgrade</command> will upgrade the package to "
5210 "the most recent <literal>testing</literal> version if that is more recent "
5211 "than the installed version, otherwise, to the most recent "
5212 "<literal>unstable</literal> version if that is more recent than the "
5213 "installed version. <placeholder type=\"programlisting\" id=\"0\"/>"
5216 #. type: Content of: <refentry><refsect1><refsect2><title>
5217 #: apt_preferences.5.xml:1
5218 msgid "Tracking the evolution of a codename release"
5221 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5222 #: apt_preferences.5.xml:1
5225 "Explanation: Uninstall or do not install any Debian-originated package "
5227 "Explanation: other than those in the distribution codenamed with "
5228 "&debian-testing-codename; or sid\n"
5230 "Pin: release n=&debian-testing-codename;\n"
5231 "Pin-Priority: 900\n"
5233 "Explanation: Debian unstable is always codenamed with sid\n"
5235 "Pin: release n=sid\n"
5236 "Pin-Priority: 800\n"
5239 "Pin: release o=Debian\n"
5240 "Pin-Priority: -10\n"
5243 #. type: Content of: <refentry><refsect1><refsect2><para>
5244 #: apt_preferences.5.xml:1
5246 "The following APT preferences file will cause APT to assign a priority "
5247 "higher than the default (500) to all package versions belonging to a "
5248 "specified codename of a distribution and a prohibitively low priority to "
5249 "package versions belonging to other <literal>Debian</literal> distributions, "
5250 "codenames and archives. Note that with this APT preference APT will follow "
5251 "the migration of a release from the archive <literal>testing</literal> to "
5252 "<literal>stable</literal> and later <literal>oldstable</literal>. If you "
5253 "want to follow for example the progress in <literal>testing</literal> "
5254 "notwithstanding the codename changes you should use the example "
5255 "configurations above. <placeholder type=\"programlisting\" id=\"0\"/>"
5258 #. type: Content of: <refentry><refsect1><refsect2><para>
5259 #: apt_preferences.5.xml:1
5261 "With a suitable &sources-list; file and the above preferences file, any of "
5262 "the following commands will cause APT to upgrade to the latest version(s) in "
5263 "the release codenamed with <literal>&debian-testing-codename;</literal>. "
5264 "<placeholder type=\"programlisting\" id=\"0\"/>"
5267 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5268 #: apt_preferences.5.xml:1
5270 msgid "apt-get install <replaceable>package</replaceable>/sid\n"
5273 #. type: Content of: <refentry><refsect1><refsect2><para>
5274 #: apt_preferences.5.xml:1
5276 "The following command will cause APT to upgrade the specified package to the "
5277 "latest version from the <literal>sid</literal> distribution. Thereafter, "
5278 "<command>apt-get upgrade</command> will upgrade the package to the most "
5279 "recent <literal>&debian-testing-codename;</literal> version if that is more "
5280 "recent than the installed version, otherwise, to the most recent "
5281 "<literal>sid</literal> version if that is more recent than the installed "
5282 "version. <placeholder type=\"programlisting\" id=\"0\"/>"
5285 #. type: Content of: <refentry><refsect1><para>
5286 #: apt_preferences.5.xml:1
5287 msgid "&apt-get; &apt-cache; &apt-conf; &sources-list;"
5290 #. type: Content of: <refentry><refnamediv><refpurpose>
5291 #: sources.list.5.xml:1
5292 msgid "List of configured APT data sources"
5295 #. type: Content of: <refentry><refsect1><para>
5296 #: sources.list.5.xml:1
5298 "The source list <filename>/etc/apt/sources.list</filename> and the files "
5299 "contained in <filename>/etc/apt/sources.list.d/</filename> are designed to "
5300 "support any number of active sources and a variety of source media. The "
5301 "files list one source per line (one-line style) or contain multiline stanzas "
5302 "defining one or more sources per stanza (deb822 style), with the most "
5303 "preferred source listed first (in case a single version is available from "
5304 "more than one source). The information available from the configured sources "
5305 "is acquired by <command>apt-get update</command> (or by an equivalent "
5306 "command from another APT front-end)."
5309 #. type: Content of: <refentry><refsect1><title>
5310 #: sources.list.5.xml:1
5311 msgid "sources.list.d"
5314 #. type: Content of: <refentry><refsect1><para>
5315 #: sources.list.5.xml:1
5317 "The <filename>/etc/apt/sources.list.d</filename> directory provides a way to "
5318 "add sources.list entries in separate files. Two different file formats are "
5319 "allowed as described in the next two sections. Filenames need to have "
5320 "either the extension <filename>.list</filename> or "
5321 "<filename>.sources</filename> depending on the contained format. The "
5322 "filenames may only contain letters (a-z and A-Z), digits (0-9), underscore "
5323 "(_), hyphen (-) and period (.) characters. Otherwise APT will print a "
5324 "notice that it has ignored a file, unless that file matches a pattern in the "
5325 "<literal>Dir::Ignore-Files-Silently</literal> configuration list - in which "
5326 "case it will be silently ignored."
5329 #. type: Content of: <refentry><refsect1><title>
5330 #: sources.list.5.xml:1
5331 msgid "One-Line-Style Format"
5334 #. type: Content of: <refentry><refsect1><para>
5335 #: sources.list.5.xml:1
5337 "Files in this format have the extension <filename>.list</filename>. Each "
5338 "line specifying a source starts with a type "
5339 "(e.g. <literal>deb-src</literal>) followed by options and arguments for "
5340 "this type. Individual entries cannot be continued onto a following "
5341 "line. Empty lines are ignored, and a <literal>#</literal> character anywhere "
5342 "on a line marks the remainder of that line as a comment. Consequently an "
5343 "entry can be disabled by commenting out the entire line. If options should "
5344 "be provided they are separated by spaces and all of them together are "
5345 "enclosed by square brackets (<literal>[]</literal>) included in the line "
5346 "after the type separated from it with a space. If an option allows multiple "
5347 "values these are separated from each other with a comma "
5348 "(<literal>,</literal>). An option name is separated from its value(s) by an "
5349 "equals sign (<literal>=</literal>). Multivalue options also have "
5350 "<literal>-=</literal> and <literal>+=</literal> as separators, which instead "
5351 "of replacing the default with the given value(s) modify the default value(s) "
5352 "to remove or include the given values."
5355 #. type: Content of: <refentry><refsect1><para>
5356 #: sources.list.5.xml:1
5358 "This is the traditional format and supported by all apt versions. Note that "
5359 "not all options as described below are supported by all apt versions. Note "
5360 "also that some older applications parsing this format on their own might not "
5361 "expect to encounter options as they were uncommon before the introduction of "
5362 "multi-architecture support."
5365 #. type: Content of: <refentry><refsect1><title>
5366 #: sources.list.5.xml:1
5367 msgid "deb822-Style Format"
5370 #. type: Content of: <refentry><refsect1><para>
5371 #: sources.list.5.xml:1
5373 "Files in this format have the extension <filename>.sources</filename>. The "
5374 "format is similar in syntax to other files used by Debian and its "
5375 "derivatives, such as the metadata files that apt will download from the "
5376 "configured sources or the <filename>debian/control</filename> file in a "
5377 "Debian source package. Individual entries are separated by an empty line; "
5378 "additional empty lines are ignored, and a <literal>#</literal> character at "
5379 "the start of the line marks the entire line as a comment. An entry can hence "
5380 "be disabled by commenting out each line belonging to the stanza, but it is "
5381 "usually easier to add the field \"Enabled: no\" to the stanza to disable the "
5382 "entry. Removing the field or setting it to yes reenables it. Options have "
5383 "the same syntax as every other field: A fieldname separated by a colon "
5384 "(<literal>:</literal>) and optionally spaces from its value(s). Note "
5385 "especially that multiple values are separated by spaces, not by commas as in "
5386 "the one-line format. Multivalue fields like <literal>Architectures</literal> "
5387 "also have <literal>Architectures-Add</literal> and "
5388 "<literal>Architectures-Remove</literal> to modify the default value rather "
5389 "than replacing it."
5392 #. type: Content of: <refentry><refsect1><para>
5393 #: sources.list.5.xml:1
5395 "This is a new format supported by apt itself since version 1.1. Previous "
5396 "versions ignore such files with a notice message as described earlier. It "
5397 "is intended to make this format gradually the default format, deprecating "
5398 "the previously described one-line-style format, as it is easier to create, "
5399 "extend and modify for humans and machines alike especially if a lot of "
5400 "sources and/or options are involved. Developers who are working with and/or "
5401 "parsing apt sources are highly encouraged to add support for this format and "
5402 "to contact the APT team to coordinate and share this work. Users can freely "
5403 "adopt this format already, but may encounter problems with software not "
5404 "supporting the format yet."
5407 #. type: Content of: <refentry><refsect1><title>
5408 #: sources.list.5.xml:1
5409 msgid "The deb and deb-src Types: General Format"
5412 #. type: Content of: <refentry><refsect1><para>
5413 #: sources.list.5.xml:1
5415 "The <literal>deb</literal> type references a typical two-level Debian "
5416 "archive, <filename>distribution/component</filename>. The "
5417 "<literal>distribution</literal> is generally a suite name like "
5418 "<literal>stable</literal> or <literal>testing</literal> or a codename like "
5419 "<literal>&debian-stable-codename;</literal> or "
5420 "<literal>&debian-testing-codename;</literal> while component is one of "
5421 "<literal>main</literal>, <literal>contrib</literal> or "
5422 "<literal>non-free</literal>. The <literal>deb-src</literal> type references "
5423 "a Debian distribution's source code in the same form as the "
5424 "<literal>deb</literal> type. A <literal>deb-src</literal> line is required "
5425 "to fetch source indexes."
5428 #. type: Content of: <refentry><refsect1><para>
5429 #: sources.list.5.xml:1
5431 "The format for two one-line-style entries using the <literal>deb</literal> "
5432 "and <literal>deb-src</literal> types is:"
5435 #. type: Content of: <refentry><refsect1><literallayout>
5436 #: sources.list.5.xml:1
5439 "deb [ option1=value1 option2=value2 ] uri suite [component1] [component2] "
5441 "deb-src [ option1=value1 option2=value2 ] uri suite [component1] "
5442 "[component2] [...]"
5445 #. type: Content of: <refentry><refsect1><para><literallayout>
5446 #: sources.list.5.xml:1
5449 " Types: deb deb-src\n"
5452 " Components: [component1] [component2] [...]\n"
5453 " option1: value1\n"
5454 " option2: value2\n"
5458 #. type: Content of: <refentry><refsect1><para>
5459 #: sources.list.5.xml:1
5461 "Alternatively the equivalent entry in deb822 style looks like this: "
5462 "<placeholder type=\"literallayout\" id=\"0\"/>"
5465 #. type: Content of: <refentry><refsect1><para>
5466 #: sources.list.5.xml:1
5468 "The URI for the <literal>deb</literal> type must specify the base of the "
5469 "Debian distribution, from which APT will find the information it needs. "
5470 "<literal>suite</literal> can specify an exact path, in which case the "
5471 "components must be omitted and <literal>suite</literal> must end with a "
5472 "slash (<literal>/</literal>). This is useful for the case when only a "
5473 "particular sub-directory of the archive denoted by the URI is of interest. "
5474 "If <literal>suite</literal> does not specify an exact path, at least one "
5475 "<literal>component</literal> must be present."
5478 #. type: Content of: <refentry><refsect1><para>
5479 #: sources.list.5.xml:1
5481 "<literal>suite</literal> may also contain a variable, "
5482 "<literal>$(ARCH)</literal> which expands to the Debian architecture (such as "
5483 "<literal>amd64</literal> or <literal>armel</literal>) used on the "
5484 "system. This permits architecture-independent "
5485 "<filename>sources.list</filename> files to be used. In general this is only "
5486 "of interest when specifying an exact path; <literal>APT</literal> will "
5487 "automatically generate a URI with the current architecture otherwise."
5490 #. type: Content of: <refentry><refsect1><para>
5491 #: sources.list.5.xml:1
5493 "Especially in the one-line-style format since only one distribution can be "
5494 "specified per line it may be necessary to have multiple lines for the same "
5495 "URI, if a subset of all available distributions or components at that "
5496 "location is desired. APT will sort the URI list after it has generated a "
5497 "complete set internally, and will collapse multiple references to the same "
5498 "Internet host, for instance, into a single connection, so that it does not "
5499 "inefficiently establish a connection, close it, do something else, and then "
5500 "re-establish a connection to that same host. APT also parallelizes "
5501 "connections to different hosts to more effectively deal with sites with low "
5505 #. type: Content of: <refentry><refsect1><para>
5506 #: sources.list.5.xml:1
5508 "It is important to list sources in order of preference, with the most "
5509 "preferred source listed first. Typically this will result in sorting by "
5510 "speed from fastest to slowest (CD-ROM followed by hosts on a local network, "
5511 "followed by distant Internet hosts, for example)."
5514 #. type: Content of: <refentry><refsect1><para><literallayout>
5515 #: sources.list.5.xml:1
5517 msgid "&sourceslist-list-format;"
5520 #. type: Content of: <refentry><refsect1><para><literallayout>
5521 #: sources.list.5.xml:1
5523 msgid "&sourceslist-sources-format;"
5526 #. type: Content of: <refentry><refsect1><para>
5527 #: sources.list.5.xml:1
5529 "As an example, the sources for your distribution could look like this in "
5530 "one-line-style format: <placeholder type=\"literallayout\" id=\"0\"/> or "
5531 "like this in deb822 style format: <placeholder type=\"literallayout\" "
5535 #. type: Content of: <refentry><refsect1><title>
5536 #: sources.list.5.xml:1
5537 msgid "The deb and deb-src types: Options"
5540 #. type: Content of: <refentry><refsect1><para>
5541 #: sources.list.5.xml:1
5543 "Each source entry can have options specified to modify which source is "
5544 "accessed and how data is acquired from it. Format, syntax and names of the "
5545 "options vary between the one-line-style and deb822-style formats as "
5546 "described, but they both have the same options available. For simplicity we "
5547 "list the deb822 fieldname and provide the one-line name in brackets. "
5548 "Remember that besides setting multivalue options explicitly, there is also "
5549 "the option to modify them based on the default, but we aren't listing those "
5550 "names explicitly here. Unsupported options are silently ignored by all APT "
5554 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5555 #: sources.list.5.xml:1
5557 "<option>Architectures</option> (<option>arch</option>) is a multivalue "
5558 "option defining for which architectures information should be downloaded. If "
5559 "this option isn't set the default is all architectures as defined by the "
5560 "<option>APT::Architectures</option> config option."
5563 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5564 #: sources.list.5.xml:1
5566 "<option>Languages</option> (<option>lang</option>) is a multivalue option "
5567 "defining for which languages information such as translated package "
5568 "descriptions should be downloaded. If this option isn't set the default is "
5569 "all languages as defined by the <option>Acquire::Languages</option> config "
5573 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5574 #: sources.list.5.xml:1
5576 "<option>Targets</option> (<option>target</option>) is a multivalue option "
5577 "defining which download targets apt will try to acquire from this source. If "
5578 "not specified, the default set is defined by the "
5579 "<option>Acquire::IndexTargets</option> configuration scope (targets are "
5580 "specified by their name in the <literal>Created-By</literal> field). "
5581 "Additionally, targets can be enabled or disabled by using the "
5582 "<literal>Identifier</literal> field as an option with a boolean value "
5583 "instead of using this multivalue option."
5586 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5587 #: sources.list.5.xml:1
5589 "<option>PDiffs</option> (<option>pdiffs</option>) is a yes/no value which "
5590 "controls if APT should try to use PDiffs to update old indexes instead of "
5591 "downloading the new indexes entirely. The value of this option is ignored if "
5592 "the repository doesn't announce the availability of PDiffs. Defaults to the "
5593 "value of the option with the same name for a specific index file defined in "
5594 "the <option>Acquire::IndexTargets</option> scope, which itself defaults to "
5595 "the value of configuration option <option>Acquire::PDiffs</option> which "
5596 "defaults to <literal>yes</literal>."
5599 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5600 #: sources.list.5.xml:1
5602 "<option>By-Hash</option> (<option>by-hash</option>) can have the value "
5603 "<literal>yes</literal>, <literal>no</literal> or <literal>force</literal> "
5604 "and controls if APT should try to acquire indexes via a URI constructed from "
5605 "a hashsum of the expected file instead of using the well-known stable "
5606 "filename of the index. Using this can avoid hashsum mismatches, but requires "
5607 "a supporting mirror. A <literal>yes</literal> or <literal>no</literal> value "
5608 "activates/disables the use of this feature if this source indicates support "
5609 "for it, while <literal>force</literal> will enable the feature regardless of "
5610 "what the source indicates. Defaults to the value of the option of the same "
5611 "name for a specific index file defined in the "
5612 "<option>Acquire::IndexTargets</option> scope, which itself defaults to the "
5613 "value of configuration option <option>Acquire::By-Hash</option> which "
5614 "defaults to <literal>yes</literal>."
5617 #. type: Content of: <refentry><refsect1><para>
5618 #: sources.list.5.xml:1
5620 "Furthermore, there are options which if set affect <emphasis>all</emphasis> "
5621 "sources with the same URI and Suite, so they have to be set on all such "
5622 "entries and can not be varied between different components. APT will try to "
5623 "detect and error out on such anomalies."
5626 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5627 #: sources.list.5.xml:1
5629 "<option>Allow-Insecure</option> (<option>allow-insecure</option>), "
5630 "<option>Allow-Weak</option> (<option>allow-weak</option>) and "
5631 "<option>Allow-Downgrade-To-Insecure</option> "
5632 "(<option>allow-downgrade-to-insecure</option>) are boolean values which all "
5633 "default to <literal>no</literal>. If set to <literal>yes</literal> they "
5634 "circumvent parts of &apt-secure; and should therefore not be used lightly!"
5637 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5638 #: sources.list.5.xml:1
5640 "<option>Trusted</option> (<option>trusted</option>) is a tri-state value "
5641 "which defaults to APT deciding if a source is considered trusted or if "
5642 "warnings should be raised before e.g. packages are installed from this "
5643 "source. This option can be used to override that decision. The value "
5644 "<literal>yes</literal> tells APT always to consider this source as trusted, "
5645 "even if it doesn't pass authentication checks. It disables parts of "
5646 "&apt-secure;, and should therefore only be used in a local and trusted "
5647 "context (if at all) as otherwise security is breached. The value "
5648 "<literal>no</literal> does the opposite, causing the source to be handled as "
5649 "untrusted even if the authentication checks passed successfully. The default "
5650 "value can't be set explicitly."
5653 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5654 #: sources.list.5.xml:1
5656 "<option>Signed-By</option> (<option>signed-by</option>) is either an "
5657 "absolute path to a keyring file (has to be accessible and readable for the "
5658 "<literal>_apt</literal> user, so ensure everyone has read-permissions on the "
5659 "file) or one or more fingerprints of keys either in the "
5660 "<filename>trusted.gpg</filename> keyring or in the keyrings in the "
5661 "<filename>trusted.gpg.d/</filename> directory (see <command>apt-key "
5662 "fingerprint</command>). If the option is set, only the key(s) in this "
5663 "keyring or only the keys with these fingerprints are used for the "
5664 "&apt-secure; verification of this repository. Defaults to the value of the "
5665 "option with the same name if set in the previously acquired "
5666 "<filename>Release</filename> file. Otherwise all keys in the trusted "
5667 "keyrings are considered valid signers for this repository."
5670 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5671 #: sources.list.5.xml:1
5673 "<option>Check-Valid-Until</option> (<option>check-valid-until</option>) is "
5674 "a yes/no value which controls if APT should try to detect replay attacks. A "
5675 "repository creator can declare a time until which the data provided in the "
5676 "repository should be considered valid, and if this time is reached, but no "
5677 "new data is provided, the data is considered expired and an error is "
5678 "raised. Besides increasing security, as a malicious attacker can't send old "
5679 "data forever to prevent a user from upgrading to a new version, this also "
5680 "helps users identify mirrors which are no longer updated. However, some "
5681 "repositories such as historic archives are not updated any more by design, "
5682 "so this check can be disabled by setting this option to "
5683 "<literal>no</literal>. Defaults to the value of configuration option "
5684 "<option>Acquire::Check-Valid-Until</option> which itself defaults to "
5685 "<literal>yes</literal>."
5688 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5689 #: sources.list.5.xml:1
5691 "<option>Valid-Until-Min</option> (<option>valid-until-min</option>) and "
5692 "<option>Valid-Until-Max</option> (<option>valid-until-max</option>) can be "
5693 "used to raise or lower the time period in seconds in which the data from "
5694 "this repository is considered valid. -Max can be especially useful if the "
5695 "repository provides no Valid-Until field on its Release file to set your own "
5696 "value, while -Min can be used to increase the valid time on seldom updated "
5697 "(local) mirrors of a more frequently updated but less accessible archive "
5698 "(which is in the sources.list as well) instead of disabling the check "
5699 "entirely. Default to the value of the configuration options "
5700 "<option>Acquire::Min-ValidTime</option> and "
5701 "<option>Acquire::Max-ValidTime</option> which are both unset by default."
5704 #. type: Content of: <refentry><refsect1><title>
5705 #: sources.list.5.xml:1
5706 msgid "URI Specification"
5709 #. type: Content of: <refentry><refsect1><para>
5710 #: sources.list.5.xml:1
5711 msgid "The currently recognized URI types are:"
5714 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5715 #: sources.list.5.xml:1
5717 "The file scheme allows an arbitrary directory in the file system to be "
5718 "considered an archive. This is useful for NFS mounts and local mirrors or "
5722 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5723 #: sources.list.5.xml:1
5725 "The cdrom scheme allows APT to use a local CD-ROM drive with media "
5726 "swapping. Use the &apt-cdrom; program to create cdrom entries in the source "
5730 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5731 #: sources.list.5.xml:1
5733 "The http scheme specifies an HTTP server for the archive. If an environment "
5734 "variable <envar>http_proxy</envar> is set with the format "
5735 "http://server:port/, the proxy server specified in <envar>http_proxy</envar> "
5736 "will be used. Users of authenticated HTTP/1.1 proxies may use a string of "
5737 "the format http://user:pass@server:port/. Note that this is an insecure "
5738 "method of authentication."
5741 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5742 #: sources.list.5.xml:1
5744 "The ftp scheme specifies an FTP server for the archive. APT's FTP behavior "
5745 "is highly configurable; for more information see the &apt-conf; manual "
5746 "page. Please note that an FTP proxy can be specified by using the "
5747 "<envar>ftp_proxy</envar> environment variable. It is possible to specify an "
5748 "HTTP proxy (HTTP proxy servers often understand FTP URLs) using this "
5749 "environment variable and <emphasis>only</emphasis> this environment "
5750 "variable. Proxies using HTTP specified in the configuration file will be "
5754 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5755 #: sources.list.5.xml:1
5757 "The copy scheme is identical to the file scheme except that packages are "
5758 "copied into the cache directory instead of used directly at their location. "
5759 "This is useful for people using removable media to copy files around with "
5763 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5764 #: sources.list.5.xml:1
5766 "The rsh/ssh method invokes RSH/SSH to connect to a remote host and access "
5767 "the files as a given user. Prior configuration of rhosts or RSA keys is "
5768 "recommended. The standard <command>find</command> and <command>dd</command> "
5769 "commands are used to perform the file transfers from the remote host."
5772 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
5773 #: sources.list.5.xml:1
5774 msgid "adding more recognizable URI types"
5777 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5778 #: sources.list.5.xml:1
5780 "APT can be extended with more methods shipped in other optional packages, "
5781 "which should follow the naming scheme "
5782 "<package>apt-transport-<replaceable>method</replaceable></package>. For "
5783 "instance, the APT team also maintains the package "
5784 "<package>apt-transport-https</package>, which provides access methods for "
5785 "HTTPS URIs with features similar to the http method. Methods for using "
5786 "e.g. debtorrent are also available - see &apt-transport-debtorrent;."
5789 #. type: Content of: <refentry><refsect1><para>
5790 #: sources.list.5.xml:1
5792 "Uses the archive stored locally (or NFS mounted) at /home/apt/debian for "
5793 "stable/main, stable/contrib, and stable/non-free."
5796 #. type: Content of: <refentry><refsect1><literallayout>
5797 #: sources.list.5.xml:1
5799 msgid "deb file:/home/apt/debian stable main contrib non-free"
5802 #. type: Content of: <refentry><refsect1><literallayout>
5803 #: sources.list.5.xml:1
5807 "URIs: file:/home/apt/debian\n"
5809 "Components: main contrib non-free"
5812 #. type: Content of: <refentry><refsect1><para>
5813 #: sources.list.5.xml:1
5814 msgid "As above, except this uses the unstable (development) distribution."
5817 #. type: Content of: <refentry><refsect1><literallayout>
5818 #: sources.list.5.xml:1
5820 msgid "deb file:/home/apt/debian unstable main contrib non-free"
5823 #. type: Content of: <refentry><refsect1><literallayout>
5824 #: sources.list.5.xml:1
5828 "URIs: file:/home/apt/debian\n"
5829 "Suites: unstable\n"
5830 "Components: main contrib non-free"
5833 #. type: Content of: <refentry><refsect1><para>
5834 #: sources.list.5.xml:1
5835 msgid "Sources specification for the above."
5838 #. type: Content of: <refentry><refsect1><literallayout>
5839 #: sources.list.5.xml:1
5841 msgid "deb-src file:/home/apt/debian unstable main contrib non-free"
5844 #. type: Content of: <refentry><refsect1><literallayout>
5845 #: sources.list.5.xml:1
5849 "URIs: file:/home/apt/debian\n"
5850 "Suites: unstable\n"
5851 "Components: main contrib non-free"
5854 #. type: Content of: <refentry><refsect1><para>
5855 #: sources.list.5.xml:1
5857 "The first line gets package information for the architectures in "
5858 "<literal>APT::Architectures</literal> while the second always retrieves "
5859 "<literal>amd64</literal> and <literal>armel</literal>."
5862 #. type: Content of: <refentry><refsect1><literallayout>
5863 #: sources.list.5.xml:1
5866 "deb http://httpredir.debian.org/debian &debian-stable-codename; main\n"
5867 "deb [ arch=amd64,armel ] http://httpredir.debian.org/debian "
5868 "&debian-stable-codename; main"
5871 #. type: Content of: <refentry><refsect1><literallayout>
5872 #: sources.list.5.xml:1
5876 "URIs: http://httpredir.debian.org/debian\n"
5877 "Suites: &debian-stable-codename;\n"
5878 "Components: main\n"
5881 "URIs: http://httpredir.debian.org/debian\n"
5882 "Suites: &debian-stable-codename;\n"
5883 "Components: main\n"
5884 "Architectures: amd64 armel\n"
5887 #. type: Content of: <refentry><refsect1><para>
5888 #: sources.list.5.xml:1
5890 "Uses HTTP to access the archive at archive.debian.org, and uses only the "
5894 #. type: Content of: <refentry><refsect1><literallayout>
5895 #: sources.list.5.xml:1
5897 msgid "deb http://archive.debian.org/debian-archive hamm main"
5900 #. type: Content of: <refentry><refsect1><literallayout>
5901 #: sources.list.5.xml:1
5905 "URIs: http://archive.debian.org/debian-archive\n"
5910 #. type: Content of: <refentry><refsect1><para>
5911 #: sources.list.5.xml:1
5913 "Uses FTP to access the archive at ftp.debian.org, under the debian "
5914 "directory, and uses only the &debian-stable-codename;/contrib area."
5917 #. type: Content of: <refentry><refsect1><literallayout>
5918 #: sources.list.5.xml:1
5920 msgid "deb ftp://ftp.debian.org/debian &debian-stable-codename; contrib"
5923 #. type: Content of: <refentry><refsect1><literallayout>
5924 #: sources.list.5.xml:1
5928 "URIs: ftp://ftp.debian.org/debian\n"
5929 "Suites: &debian-stable-codename;\n"
5930 "Components: contrib"
5933 #. type: Content of: <refentry><refsect1><para>
5934 #: sources.list.5.xml:1
5936 "Uses FTP to access the archive at ftp.debian.org, under the debian "
5937 "directory, and uses only the unstable/contrib area. If this line appears as "
5938 "well as the one in the previous example in <filename>sources.list</filename> "
5939 "a single FTP session will be used for both resource lines."
5942 #. type: Content of: <refentry><refsect1><literallayout>
5943 #: sources.list.5.xml:1
5945 msgid "deb ftp://ftp.debian.org/debian unstable contrib"
5948 #. type: Content of: <refentry><refsect1><literallayout>
5949 #: sources.list.5.xml:1
5953 "URIs: ftp://ftp.debian.org/debian\n"
5954 "Suites: unstable\n"
5955 "Components: contrib"
5958 #. type: Content of: <refentry><refsect1><para><literallayout>
5959 #: sources.list.5.xml:1
5961 msgid "deb http://ftp.tlh.debian.org/universe unstable/binary-$(ARCH)/"
5964 #. type: Content of: <refentry><refsect1><para><literallayout>
5965 #: sources.list.5.xml:1
5969 "URIs: http://ftp.tlh.debian.org/universe\n"
5970 "Suites: unstable/binary-$(ARCH)/"
5973 #. type: Content of: <refentry><refsect1><para>
5974 #: sources.list.5.xml:1
5976 "Uses HTTP to access the archive at ftp.tlh.debian.org, under the universe "
5977 "directory, and uses only files found under "
5978 "<filename>unstable/binary-i386</filename> on i386 machines, "
5979 "<filename>unstable/binary-amd64</filename> on amd64, and so forth for other "
5980 "supported architectures. [Note this example only illustrates how to use the "
5981 "substitution variable; official debian archives are not structured like "
5982 "this] <placeholder type=\"literallayout\" id=\"0\"/> <placeholder "
5983 "type=\"literallayout\" id=\"1\"/>"
5986 #. type: Content of: <refentry><refsect1><para>
5987 #: sources.list.5.xml:1
5989 "Uses HTTP to get binary packages as well as sources from the stable, testing "
5990 "and unstable suites and the components main and contrib."
5993 #. type: Content of: <refentry><refsect1><literallayout>
5994 #: sources.list.5.xml:1
5997 "deb http://httpredir.debian.org/debian stable main contrib\n"
5998 "deb-src http://httpredir.debian.org/debian stable main contrib\n"
5999 "deb http://httpredir.debian.org/debian testing main contrib\n"
6000 "deb-src http://httpredir.debian.org/debian testing main contrib\n"
6001 "deb http://httpredir.debian.org/debian unstable main contrib\n"
6002 "deb-src http://httpredir.debian.org/debian unstable main contrib"
6005 #. type: Content of: <refentry><refsect1><literallayout>
6006 #: sources.list.5.xml:1
6009 "Types: deb deb-src\n"
6010 "URIs: http://httpredir.debian.org/debian\n"
6011 "Suites: stable testing unstable\n"
6012 "Components: main contrib\n"
6015 #. type: Content of: <refentry><refsect1><para>
6016 #: sources.list.5.xml:1
6017 msgid "&apt-get;, &apt-conf;, &apt-acquire-additional-files;"
6020 #. type: Content of: <refentry><refmeta><manvolnum>
6021 #: apt-extracttemplates.1.xml:1 apt-sortpkgs.1.xml:1 apt-ftparchive.1.xml:1
6025 #. type: Content of: <refentry><refnamediv><refpurpose>
6026 #: apt-extracttemplates.1.xml:1
6028 "Utility to extract <command>debconf</command> config and templates from "
6032 #. type: Content of: <refentry><refsect1><para>
6033 #: apt-extracttemplates.1.xml:1
6035 "<command>apt-extracttemplates</command> will take one or more Debian package "
6036 "files as input and write out (to a temporary directory) all associated "
6037 "config scripts and template files. For each passed in package that contains "
6038 "config scripts and templates, one line of output will be generated in the "
6042 #. type: Content of: <refentry><refsect1><para>
6043 #: apt-extracttemplates.1.xml:1
6044 msgid "package version template-file config-script"
6047 #. type: Content of: <refentry><refsect1><para>
6048 #: apt-extracttemplates.1.xml:1
6050 "template-file and config-script are written to the temporary directory "
6051 "specified by the <option>-t</option> or <option>--tempdir</option> "
6052 "(<literal>APT::ExtractTemplates::TempDir</literal>) directory, with "
6053 "filenames of the form <filename>package.template.XXXXXX</filename> and "
6054 "<filename>package.config.XXXXXX</filename>"
6057 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6058 #: apt-extracttemplates.1.xml:1
6060 "Temporary directory in which to write extracted <command>debconf</command> "
6061 "template files and config scripts. Configuration Item: "
6062 "<literal>APT::ExtractTemplates::TempDir</literal>"
6065 #. type: Content of: <refentry><refsect1><para>
6066 #: apt-extracttemplates.1.xml:1
6068 "<command>apt-extracttemplates</command> returns zero on normal operation, "
6069 "decimal 100 on error."
6072 #. type: Content of: <refentry><refnamediv><refpurpose>
6073 #: apt-sortpkgs.1.xml:1
6074 msgid "Utility to sort package index files"
6077 #. type: Content of: <refentry><refsect1><para>
6078 #: apt-sortpkgs.1.xml:1
6080 "<command>apt-sortpkgs</command> will take an index file (source index or "
6081 "package index) and sort the records so that they are ordered by the package "
6082 "name. It will also sort the internal fields of each record according to the "
6083 "internal sorting rules."
6086 #. type: Content of: <refentry><refsect1><para>
6087 #: apt-sortpkgs.1.xml:1
6088 msgid "All output is sent to standard output; the input must be a seekable file."
6091 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6092 #: apt-sortpkgs.1.xml:1
6094 "Use source index field ordering. Configuration Item: "
6095 "<literal>APT::SortPkgs::Source</literal>."
6098 #. type: Content of: <refentry><refsect1><para>
6099 #: apt-sortpkgs.1.xml:1
6101 "<command>apt-sortpkgs</command> returns zero on normal operation, decimal "
6105 #. type: Content of: <refentry><refnamediv><refpurpose>
6106 #: apt-ftparchive.1.xml:1
6107 msgid "Utility to generate index files"
6110 #. type: Content of: <refentry><refsect1><para>
6111 #: apt-ftparchive.1.xml:1
6113 "<command>apt-ftparchive</command> is the command line tool that generates "
6114 "the index files that APT uses to access a distribution source. The index "
6115 "files should be generated on the origin site based on the content of that "
6119 #. type: Content of: <refentry><refsect1><para>
6120 #: apt-ftparchive.1.xml:1
6122 "<command>apt-ftparchive</command> is a superset of the &dpkg-scanpackages; "
6123 "program, incorporating its entire functionality via the "
6124 "<literal>packages</literal> command. It also contains a contents file "
6125 "generator, <literal>contents</literal>, and an elaborate means to 'script' "
6126 "the generation process for a complete archive."
6129 #. type: Content of: <refentry><refsect1><para>
6130 #: apt-ftparchive.1.xml:1
6132 "Internally <command>apt-ftparchive</command> can make use of binary "
6133 "databases to cache the contents of a .deb file and it does not rely on any "
6134 "external programs aside from &gzip;. When doing a full generate it "
6135 "automatically performs file-change checks and builds the desired compressed "
6139 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6140 #: apt-ftparchive.1.xml:1
6142 "The packages command generates a package file from a directory tree. It "
6143 "takes the given directory and recursively searches it for .deb files, "
6144 "emitting a package record to stdout for each. This command is approximately "
6145 "equivalent to &dpkg-scanpackages;."
6148 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6149 #: apt-ftparchive.1.xml:1 apt-ftparchive.1.xml:1
6150 msgid "The option <option>--db</option> can be used to specify a binary caching DB."
6153 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6154 #: apt-ftparchive.1.xml:1
6156 "The <literal>sources</literal> command generates a source index file from a "
6157 "directory tree. It takes the given directory and recursively searches it "
6158 "for .dsc files, emitting a source record to stdout for each. This command is "
6159 "approximately equivalent to &dpkg-scansources;."
6162 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6163 #: apt-ftparchive.1.xml:1
6165 "If an override file is specified then a source override file will be looked "
6166 "for with an extension of .src. The --source-override option can be used to "
6167 "change the source override file that will be used."
6170 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6171 #: apt-ftparchive.1.xml:1
6173 "The <literal>contents</literal> command generates a contents file from a "
6174 "directory tree. It takes the given directory and recursively searches it for "
6175 ".deb files, and reads the file list from each file. It then sorts and writes "
6176 "to stdout the list of files matched to packages. Directories are not written "
6177 "to the output. If multiple packages own the same file then each package is "
6178 "separated by a comma in the output."
6181 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6182 #: apt-ftparchive.1.xml:1
6184 "The <literal>release</literal> command generates a Release file from a "
6185 "directory tree. It recursively searches the given directory for uncompressed "
6186 "and compressed <filename>Packages</filename>, <filename>Sources</filename>, "
6187 "<filename>Contents</filename>, <filename>Components</filename> and "
6188 "<filename>icons</filename> files as well as <filename>Release</filename>, "
6189 "<filename>Index</filename> and <filename>md5sum.txt</filename> files by "
6190 "default (<literal>APT::FTPArchive::Release::Default-Patterns</literal>). "
6191 "Additional filename patterns can be added by listing them in "
6192 "<literal>APT::FTPArchive::Release::Patterns</literal>. It then writes to "
6193 "stdout a <filename>Release</filename> file containing (by default) an MD5, "
6194 "SHA1, SHA256 and SHA512 digest for each file."
6197 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6198 #: apt-ftparchive.1.xml:1
6200 "Values for the additional metadata fields in the Release file are taken from "
6201 "the corresponding variables under "
6202 "<literal>APT::FTPArchive::Release</literal>, "
6203 "e.g. <literal>APT::FTPArchive::Release::Origin</literal>. The supported "
6204 "fields are <literal>Origin</literal>, <literal>Label</literal>, "
6205 "<literal>Suite</literal>, <literal>Version</literal>, "
6206 "<literal>Codename</literal>, <literal>Date</literal>, "
6207 "<literal>Valid-Until</literal>, <literal>Signed-By</literal>, "
6208 "<literal>Architectures</literal>, <literal>Components</literal> and "
6209 "<literal>Description</literal>."
6212 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6213 #: apt-ftparchive.1.xml:1
6215 "The <literal>generate</literal> command is designed to be runnable from a "
6216 "cron script and builds indexes according to the given config file. The "
6217 "config language provides a flexible means of specifying which index files "
6218 "are built from which directories, as well as providing a simple means of "
6219 "maintaining the required settings."
6222 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6223 #: apt-ftparchive.1.xml:1
6225 "The <literal>clean</literal> command tidies the databases used by the given "
6226 "configuration file by removing any records that are no longer necessary."
6229 #. type: Content of: <refentry><refsect1><title>
6230 #: apt-ftparchive.1.xml:1
6231 msgid "The Generate Configuration"
6234 #. type: Content of: <refentry><refsect1><para>
6235 #: apt-ftparchive.1.xml:1
6237 "The <literal>generate</literal> command uses a configuration file to "
6238 "describe the archives that are going to be generated. It follows the typical "
6239 "ISC configuration format as seen in ISC tools like bind 8 and dhcpd. "
6240 "&apt-conf; contains a description of the syntax. Note that the generate "
6241 "configuration is parsed in sectional manner, but &apt-conf; is parsed in a "
6242 "tree manner. This only effects how the scope tag is handled."
6245 #. type: Content of: <refentry><refsect1><para>
6246 #: apt-ftparchive.1.xml:1
6247 msgid "The generate configuration has four separate sections, each described below."
6250 #. type: Content of: <refentry><refsect1><refsect2><title>
6251 #: apt-ftparchive.1.xml:1
6252 msgid "<literal>Dir</literal> Section"
6255 #. type: Content of: <refentry><refsect1><refsect2><para>
6256 #: apt-ftparchive.1.xml:1
6258 "The <literal>Dir</literal> section defines the standard directories needed "
6259 "to locate the files required during the generation process. These "
6260 "directories are prepended certain relative paths defined in later sections "
6261 "to produce a complete an absolute path."
6264 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6265 #: apt-ftparchive.1.xml:1
6267 "Specifies the root of the FTP archive, in a standard Debian configuration "
6268 "this is the directory that contains the <filename>ls-LR</filename> and dist "
6272 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6273 #: apt-ftparchive.1.xml:1
6274 msgid "Specifies the location of the override files."
6277 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6278 #: apt-ftparchive.1.xml:1
6279 msgid "Specifies the location of the cache files."
6282 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6283 #: apt-ftparchive.1.xml:1
6285 "Specifies the location of the file list files, if the "
6286 "<literal>FileList</literal> setting is used below."
6289 #. type: Content of: <refentry><refsect1><refsect2><title>
6290 #: apt-ftparchive.1.xml:1
6291 msgid "<literal>Default</literal> Section"
6294 #. type: Content of: <refentry><refsect1><refsect2><para>
6295 #: apt-ftparchive.1.xml:1
6297 "The <literal>Default</literal> section specifies default values, and "
6298 "settings that control the operation of the generator. Other sections may "
6299 "override these defaults with a per-section setting."
6302 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6303 #: apt-ftparchive.1.xml:1
6305 "Sets the default compression schemes to use for the package index files. It "
6306 "is a string that contains a space separated list of at least one of the "
6307 "compressors configured via the <option>APT::Compressor</option> "
6308 "configuration scope. The default for all compression schemes is '. gzip'."
6311 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6312 #: apt-ftparchive.1.xml:1
6314 "Sets the default list of file extensions that are package files. This "
6315 "defaults to '.deb'."
6318 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6319 #: apt-ftparchive.1.xml:1
6321 "This is similar to <literal>Packages::Compress</literal> except that it "
6322 "controls the compression for the Sources files."
6325 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6326 #: apt-ftparchive.1.xml:1
6328 "Sets the default list of file extensions that are source files. This "
6329 "defaults to '.dsc'."
6332 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6333 #: apt-ftparchive.1.xml:1
6335 "This is similar to <literal>Packages::Compress</literal> except that it "
6336 "controls the compression for the Contents files."
6339 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6340 #: apt-ftparchive.1.xml:1
6342 "This is similar to <literal>Packages::Compress</literal> except that it "
6343 "controls the compression for the Translation-en master file."
6346 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6347 #: apt-ftparchive.1.xml:1
6349 "Specifies the number of kilobytes to delink (and replace with hard links) "
6350 "per run. This is used in conjunction with the per-section "
6351 "<literal>External-Links</literal> setting."
6354 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6355 #: apt-ftparchive.1.xml:1
6357 "Specifies the mode of all created index files. It defaults to 0644. All "
6358 "index files are set to this mode with no regard to the umask."
6361 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6362 #: apt-ftparchive.1.xml:1 apt-ftparchive.1.xml:1
6364 "Specifies whether long descriptions should be included in the "
6365 "<filename>Packages</filename> file or split out into a master "
6366 "<filename>Translation-en</filename> file."
6369 #. type: Content of: <refentry><refsect1><refsect2><title>
6370 #: apt-ftparchive.1.xml:1
6371 msgid "<literal>TreeDefault</literal> Section"
6374 #. type: Content of: <refentry><refsect1><refsect2><para>
6375 #: apt-ftparchive.1.xml:1
6377 "Sets defaults specific to <literal>Tree</literal> sections. All of these "
6378 "variables are substitution variables and have the strings $(DIST), "
6379 "$(SECTION) and $(ARCH) replaced with their respective values."
6382 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6383 #: apt-ftparchive.1.xml:1
6385 "Sets the number of kilobytes of contents files that are generated each "
6386 "day. The contents files are round-robined so that over several days they "
6387 "will all be rebuilt."
6390 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6391 #: apt-ftparchive.1.xml:1
6393 "Controls the number of days a contents file is allowed to be checked without "
6394 "changing. If this limit is passed the mtime of the contents file is "
6395 "updated. This case can occur if the package file is changed in such a way "
6396 "that does not result in a new contents file [override edit for instance]. A "
6397 "hold off is allowed in hopes that new .debs will be installed, requiring a "
6398 "new file anyhow. The default is 10, the units are in days."
6401 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6402 #: apt-ftparchive.1.xml:1
6404 "Sets the top of the .deb directory tree. Defaults to "
6405 "<filename>$(DIST)/$(SECTION)/binary-$(ARCH)/</filename>"
6408 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6409 #: apt-ftparchive.1.xml:1
6411 "Sets the top of the source package directory tree. Defaults to "
6412 "<filename>$(DIST)/$(SECTION)/source/</filename>"
6415 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6416 #: apt-ftparchive.1.xml:1
6418 "Sets the output Packages file. Defaults to "
6419 "<filename>$(DIST)/$(SECTION)/binary-$(ARCH)/Packages</filename>"
6422 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6423 #: apt-ftparchive.1.xml:1
6425 "Sets the output Sources file. Defaults to "
6426 "<filename>$(DIST)/$(SECTION)/source/Sources</filename>"
6429 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6430 #: apt-ftparchive.1.xml:1
6432 "Sets the output Translation-en master file with the long descriptions if "
6433 "they should be not included in the Packages file. Defaults to "
6434 "<filename>$(DIST)/$(SECTION)/i18n/Translation-en</filename>"
6437 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6438 #: apt-ftparchive.1.xml:1
6440 "Sets the path prefix that causes a symlink to be considered an internal link "
6441 "instead of an external link. Defaults to "
6442 "<filename>$(DIST)/$(SECTION)/</filename>"
6445 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6446 #: apt-ftparchive.1.xml:1
6448 "Sets the output Contents file. Defaults to "
6449 "<filename>$(DIST)/$(SECTION)/Contents-$(ARCH)</filename>. If this setting "
6450 "causes multiple Packages files to map onto a single Contents file (as is the "
6451 "default) then <command>apt-ftparchive</command> will integrate those "
6452 "package files together automatically."
6455 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6456 #: apt-ftparchive.1.xml:1
6457 msgid "Sets header file to prepend to the contents output."
6460 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6461 #: apt-ftparchive.1.xml:1
6463 "Sets the binary cache database to use for this section. Multiple sections "
6464 "can share the same database."
6467 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6468 #: apt-ftparchive.1.xml:1
6470 "Specifies that instead of walking the directory tree, "
6471 "<command>apt-ftparchive</command> should read the list of files from the "
6472 "given file. Relative files names are prefixed with the archive directory."
6475 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6476 #: apt-ftparchive.1.xml:1
6478 "Specifies that instead of walking the directory tree, "
6479 "<command>apt-ftparchive</command> should read the list of files from the "
6480 "given file. Relative files names are prefixed with the archive directory. "
6481 "This is used when processing source indexes."
6484 #. type: Content of: <refentry><refsect1><refsect2><title>
6485 #: apt-ftparchive.1.xml:1
6486 msgid "<literal>Tree</literal> Section"
6489 #. type: Content of: <refentry><refsect1><refsect2><para>
6490 #: apt-ftparchive.1.xml:1
6492 "The <literal>Tree</literal> section defines a standard Debian file tree "
6493 "which consists of a base directory, then multiple sections in that base "
6494 "directory and finally multiple Architectures in each section. The exact "
6495 "pathing used is defined by the <literal>Directory</literal> substitution "
6499 #. type: Content of: <refentry><refsect1><refsect2><para>
6500 #: apt-ftparchive.1.xml:1
6502 "The <literal>Tree</literal> section takes a scope tag which sets the "
6503 "<literal>$(DIST)</literal> variable and defines the root of the tree (the "
6504 "path is prefixed by <literal>ArchiveDir</literal>). Typically this is a "
6505 "setting such as <filename>dists/&debian-stable-codename;</filename>."
6508 #. type: Content of: <refentry><refsect1><refsect2><para>
6509 #: apt-ftparchive.1.xml:1
6511 "All of the settings defined in the <literal>TreeDefault</literal> section "
6512 "can be used in a <literal>Tree</literal> section as well as three new "
6516 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
6517 #: apt-ftparchive.1.xml:1
6520 "for i in Sections do \n"
6521 " for j in Architectures do\n"
6522 " Generate for DIST=scope SECTION=i ARCH=j\n"
6526 #. type: Content of: <refentry><refsect1><refsect2><para>
6527 #: apt-ftparchive.1.xml:1
6529 "When processing a <literal>Tree</literal> section "
6530 "<command>apt-ftparchive</command> performs an operation similar to: "
6531 "<placeholder type=\"programlisting\" id=\"0\"/>"
6534 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6535 #: apt-ftparchive.1.xml:1
6537 "This is a space separated list of sections which appear under the "
6538 "distribution; typically this is something like <literal>main contrib "
6539 "non-free</literal>"
6542 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6543 #: apt-ftparchive.1.xml:1
6545 "This is a space separated list of all the architectures that appear under "
6546 "search section. The special architecture 'source' is used to indicate that "
6547 "this tree has a source archive. The architecture 'all' signals that "
6548 "architecture specific files like <filename>Packages</filename> should not "
6549 "include information about architecture <literal>all</literal> packages in "
6550 "all files as they will be available in a dedicated file."
6553 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6554 #: apt-ftparchive.1.xml:1
6556 "Sets the binary override file. The override file contains section, priority "
6557 "and maintainer address information."
6560 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6561 #: apt-ftparchive.1.xml:1
6563 "Sets the source override file. The override file contains section "
6567 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6568 #: apt-ftparchive.1.xml:1 apt-ftparchive.1.xml:1
6569 msgid "Sets the binary extra override file."
6572 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6573 #: apt-ftparchive.1.xml:1 apt-ftparchive.1.xml:1
6574 msgid "Sets the source extra override file."
6577 #. type: Content of: <refentry><refsect1><refsect2><title>
6578 #: apt-ftparchive.1.xml:1
6579 msgid "<literal>BinDirectory</literal> Section"
6582 #. type: Content of: <refentry><refsect1><refsect2><para>
6583 #: apt-ftparchive.1.xml:1
6585 "The <literal>bindirectory</literal> section defines a binary directory tree "
6586 "with no special structure. The scope tag specifies the location of the "
6587 "binary directory and the settings are similar to the <literal>Tree</literal> "
6588 "section with no substitution variables or "
6589 "<literal>Section</literal><literal>Architecture</literal> settings."
6592 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6593 #: apt-ftparchive.1.xml:1
6594 msgid "Sets the Packages file output."
6597 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6598 #: apt-ftparchive.1.xml:1
6600 "Sets the Sources file output. At least one of <literal>Packages</literal> or "
6601 "<literal>Sources</literal> is required."
6604 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6605 #: apt-ftparchive.1.xml:1
6606 msgid "Sets the Contents file output (optional)."
6609 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6610 #: apt-ftparchive.1.xml:1
6611 msgid "Sets the binary override file."
6614 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6615 #: apt-ftparchive.1.xml:1
6616 msgid "Sets the source override file."
6619 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6620 #: apt-ftparchive.1.xml:1
6621 msgid "Sets the cache DB."
6624 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6625 #: apt-ftparchive.1.xml:1
6626 msgid "Appends a path to all the output paths."
6629 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6630 #: apt-ftparchive.1.xml:1
6631 msgid "Specifies the file list file."
6634 #. type: Content of: <refentry><refsect1><title>
6635 #: apt-ftparchive.1.xml:1
6636 msgid "The Binary Override File"
6639 #. type: Content of: <refentry><refsect1><para>
6640 #: apt-ftparchive.1.xml:1
6642 "The binary override file is fully compatible with &dpkg-scanpackages;. It "
6643 "contains four fields separated by spaces. The first field is the package "
6644 "name, the second is the priority to force that package to, the third is the "
6645 "section to force that package to and the final field is the maintainer "
6646 "permutation field."
6649 #. type: Content of: <refentry><refsect1><para><literallayout>
6650 #: apt-ftparchive.1.xml:1
6652 msgid "old [// oldn]* => new"
6655 #. type: Content of: <refentry><refsect1><para><literallayout>
6656 #: apt-ftparchive.1.xml:1
6661 #. type: Content of: <refentry><refsect1><para>
6662 #: apt-ftparchive.1.xml:1
6664 "The general form of the maintainer field is: <placeholder "
6665 "type=\"literallayout\" id=\"0\"/> or simply, <placeholder "
6666 "type=\"literallayout\" id=\"1\"/> The first form allows a double-slash "
6667 "separated list of old email addresses to be specified. If any of those are "
6668 "found then new is substituted for the maintainer field. The second form "
6669 "unconditionally substitutes the maintainer field."
6672 #. type: Content of: <refentry><refsect1><title>
6673 #: apt-ftparchive.1.xml:1
6674 msgid "The Source Override File"
6677 #. type: Content of: <refentry><refsect1><para>
6678 #: apt-ftparchive.1.xml:1
6680 "The source override file is fully compatible with &dpkg-scansources;. It "
6681 "contains two fields separated by spaces. The first field is the source "
6682 "package name, the second is the section to assign it."
6685 #. type: Content of: <refentry><refsect1><title>
6686 #: apt-ftparchive.1.xml:1
6687 msgid "The Extra Override File"
6690 #. type: Content of: <refentry><refsect1><para>
6691 #: apt-ftparchive.1.xml:1
6693 "The extra override file allows any arbitrary tag to be added or replaced in "
6694 "the output. It has three columns, the first is the package, the second is "
6695 "the tag and the remainder of the line is the new value."
6698 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6699 #: apt-ftparchive.1.xml:1
6701 "Generate the given checksum. These options default to on, when turned off "
6702 "the generated index files will not have the checksum fields where possible. "
6703 "Configuration Items: "
6704 "<literal>APT::FTPArchive::<replaceable>Checksum</replaceable></literal> and "
6705 "<literal>APT::FTPArchive::<replaceable>Index</replaceable>::<replaceable>Checksum</replaceable></literal> "
6706 "where <literal><replaceable>Index</replaceable></literal> can be "
6707 "<literal>Packages</literal>, <literal>Sources</literal> or "
6708 "<literal>Release</literal> and "
6709 "<literal><replaceable>Checksum</replaceable></literal> can be "
6710 "<literal>MD5</literal>, <literal>SHA1</literal>, <literal>SHA256</literal> "
6711 "or <literal>SHA512</literal>."
6714 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6715 #: apt-ftparchive.1.xml:1
6717 "Use a binary caching DB. This has no effect on the generate command. "
6718 "Configuration Item: <literal>APT::FTPArchive::DB</literal>."
6721 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6722 #: apt-ftparchive.1.xml:1
6724 "Quiet; produces output suitable for logging, omitting progress indicators. "
6725 "More q's will produce more quiet up to a maximum of 2. You can also use "
6726 "<option>-q=#</option> to set the quiet level, overriding the configuration "
6727 "file. Configuration Item: <literal>quiet</literal>."
6730 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6731 #: apt-ftparchive.1.xml:1
6733 "Perform Delinking. If the <literal>External-Links</literal> setting is used "
6734 "then this option actually enables delinking of the files. It defaults to on "
6735 "and can be turned off with <option>--no-delink</option>. Configuration "
6736 "Item: <literal>APT::FTPArchive::DeLinkAct</literal>."
6739 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6740 #: apt-ftparchive.1.xml:1
6742 "Perform contents generation. When this option is set and package indexes are "
6743 "being generated with a cache DB then the file listing will also be extracted "
6744 "and stored in the DB for later use. When using the generate command this "
6745 "option also allows the creation of any Contents files. The default is on. "
6746 "Configuration Item: <literal>APT::FTPArchive::Contents</literal>."
6749 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6750 #: apt-ftparchive.1.xml:1
6752 "Select the source override file to use with the <literal>sources</literal> "
6753 "command. Configuration Item: "
6754 "<literal>APT::FTPArchive::SourceOverride</literal>."
6757 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6758 #: apt-ftparchive.1.xml:1
6760 "Make the caching databases read only. Configuration Item: "
6761 "<literal>APT::FTPArchive::ReadOnlyDB</literal>."
6764 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6765 #: apt-ftparchive.1.xml:1
6767 "Accept in the <literal>packages</literal> and <literal>contents</literal> "
6768 "commands only package files matching <literal>*_arch.deb</literal> or "
6769 "<literal>*_all.deb</literal> instead of all package files in the given "
6770 "path. Configuration Item: <literal>APT::FTPArchive::Architecture</literal>."
6773 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6774 #: apt-ftparchive.1.xml:1
6776 "&apt-ftparchive; caches as much as possible of metadata in a cachedb. If "
6777 "packages are recompiled and/or republished with the same version again, this "
6778 "will lead to problems as the now outdated cached metadata like size and "
6779 "checksums will be used. With this option enabled this will no longer happen "
6780 "as it will be checked if the file was changed. Note that this option is set "
6781 "to \"<literal>false</literal>\" by default as it is not recommend to upload "
6782 "multiply versions/builds of a package with the same versionnumber, so in "
6783 "theory nobody will have these problems and therefore all these extra checks "
6787 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6788 #: apt-ftparchive.1.xml:1
6790 "This configuration option defaults to \"<literal>true</literal>\" and should "
6791 "only be set to <literal>\"false\"</literal> if the Archive generated with "
6792 "&apt-ftparchive; also provides <filename>Translation</filename> files. Note "
6793 "that the <filename>Translation-en</filename> master file can only be created "
6794 "in the generate command."
6797 #. type: Content of: <refentry><refsect1><para><programlisting>
6798 #: apt-ftparchive.1.xml:1
6801 "<command>apt-ftparchive</command> packages "
6802 "<replaceable>directory</replaceable> | <command>gzip</command> > "
6803 "<filename>Packages.gz</filename>\n"
6806 #. type: Content of: <refentry><refsect1><para>
6807 #: apt-ftparchive.1.xml:1
6809 "To create a compressed Packages file for a directory containing binary "
6810 "packages (.deb): <placeholder type=\"programlisting\" id=\"0\"/>"
6813 #. type: Content of: <refentry><refsect1><para>
6814 #: apt-ftparchive.1.xml:1
6816 "<command>apt-ftparchive</command> returns zero on normal operation, decimal "
6820 #. type: Attribute 'lang' of: <book>
6821 #: guide.dbk:1 offline.dbk:1
6825 #. type: Content of: <book><title>
6827 msgid "APT User's Guide"
6830 #. type: Content of: <book><bookinfo><authorgroup><author><personname>
6831 #: guide.dbk:1 offline.dbk:1
6832 msgid "Jason Gunthorpe"
6835 #. type: Content of: <book><bookinfo><authorgroup><author><email>
6836 #: guide.dbk:1 offline.dbk:1
6837 msgid "jgg@debian.org"
6840 #. type: Content of: <book><bookinfo><releaseinfo>
6841 #: guide.dbk:1 offline.dbk:1
6842 msgid "Version &apt-product-version;"
6845 #. type: Content of: <book><bookinfo><abstract><para>
6848 "This document provides an overview of how to use the the APT package "
6852 #. type: Content of: <book><bookinfo>
6854 msgid "<copyright><year>1998</year><holder>Jason Gunthorpe</holder></copyright>"
6857 #. type: Content of: <book><bookinfo><legalnotice><title>
6858 #: guide.dbk:1 offline.dbk:1
6859 msgid "License Notice"
6862 #. type: Content of: <book><bookinfo><legalnotice><para>
6863 #: guide.dbk:1 offline.dbk:1
6865 "\"APT\" and this document are free software; you can redistribute them "
6866 "and/or modify them under the terms of the GNU General Public License as "
6867 "published by the Free Software Foundation; either version 2 of the License, "
6868 "or (at your option) any later version."
6871 #. type: Content of: <book><bookinfo><legalnotice><para>
6872 #: guide.dbk:1 offline.dbk:1
6874 "For more details, on Debian systems, see the file "
6875 "/usr/share/common-licenses/GPL for the full license."
6878 #. type: Content of: <book><chapter><title>
6883 #. type: Content of: <book><chapter><para>
6886 "The APT package currently contains two sections, the APT "
6887 "<command>dselect</command> method and the <command>apt-get</command> command "
6888 "line user interface. Both provide a way to install and remove packages as "
6889 "well as download new packages from the Internet."
6892 #. type: Content of: <book><chapter><section><title>
6894 msgid "Anatomy of the Package System"
6897 #. type: Content of: <book><chapter><section><para>
6900 "The Debian packaging system has a large amount of information associated "
6901 "with each package to help assure that it integrates cleanly and easily into "
6902 "the system. The most prominent of its features is the dependency system."
6905 #. type: Content of: <book><chapter><section><para>
6908 "The dependency system allows individual programs to make use of shared "
6909 "elements in the system such as libraries. It simplifies placing infrequently "
6910 "used portions of a program in separate packages to reduce the number of "
6911 "things the average user is required to install. Also, it allows for choices "
6912 "in mail transport agents, X servers and so on."
6915 #. type: Content of: <book><chapter><section><para>
6918 "The first step to understanding the dependency system is to grasp the "
6919 "concept of a simple dependency. The meaning of a simple dependency is that a "
6920 "package requires another package to be installed at the same time to work "
6924 #. type: Content of: <book><chapter><section><para>
6927 "For instance, mailcrypt is an emacs extension that aids in encrypting email "
6928 "with GPG. Without GPGP installed mailcrypt is useless, so mailcrypt has a "
6929 "simple dependency on GPG. Also, because it is an emacs extension it has a "
6930 "simple dependency on emacs, without emacs it is completely useless."
6933 #. type: Content of: <book><chapter><section><para>
6936 "The other important dependency to understand is a conflicting dependency. It "
6937 "means that a package, when installed with another package, will not work and "
6938 "may possibly be extremely harmful to the system. As an example consider a "
6939 "mail transport agent such as sendmail, exim or qmail. It is not possible to "
6940 "have two mail transport agents installed because both need to listen to the "
6941 "network to receive mail. Attempting to install two will seriously damage the "
6942 "system so all mail transport agents have a conflicting dependency with all "
6943 "other mail transport agents."
6946 #. type: Content of: <book><chapter><section><para>
6949 "As an added complication there is the possibility for a package to pretend "
6950 "to be another package. Consider that exim and sendmail for many intents are "
6951 "identical, they both deliver mail and understand a common interface. Hence, "
6952 "the package system has a way for them to declare that they are both "
6953 "mail-transport-agents. So, exim and sendmail both declare that they provide "
6954 "a mail-transport-agent and other packages that need a mail transport agent "
6955 "depend on mail-transport-agent. This can add a great deal of confusion when "
6956 "trying to manually fix packages."
6959 #. type: Content of: <book><chapter><section><para>
6962 "At any given time a single dependency may be met by packages that are "
6963 "already installed or it may not be. APT attempts to help resolve dependency "
6964 "issues by providing a number of automatic algorithms that help in selecting "
6965 "packages for installation."
6968 #. type: Content of: <book><chapter><title>
6973 #. type: Content of: <book><chapter><para>
6976 "<command>apt-get</command> provides a simple way to install packages from "
6977 "the command line. Unlike <command>dpkg</command>, <command>apt-get</command> "
6978 "does not understand .deb files, it works with the package's proper name and "
6979 "can only install .deb archives from a <emphasis>Source</emphasis>."
6982 #. type: Content of: <book><chapter><para><footnote><para>
6985 "If you are using an http proxy server you must set the http_proxy "
6986 "environment variable first, see sources.list(5)"
6989 #. type: Content of: <book><chapter><para>
6992 "The first <placeholder type=\"footnote\" id=\"0\"/> thing that should be "
6993 "done before using <command>apt-get</command> is to fetch the package lists "
6994 "from the <emphasis>Sources</emphasis> so that it knows what packages are "
6995 "available. This is done with <literal>apt-get update</literal>. For "
6999 #. type: Content of: <book><chapter><screen>
7003 "# apt-get update\n"
7004 "Get http://ftp.de.debian.org/debian-non-US/ stable/binary-i386/ Packages\n"
7005 "Get http://llug.sep.bnl.gov/debian/ testing/contrib Packages\n"
7006 "Reading Package Lists... Done\n"
7007 "Building Dependency Tree... Done\n"
7010 #. type: Content of: <book><chapter><para>
7012 msgid "Once updated there are several commands that can be used:"
7015 #. type: Content of: <book><chapter><variablelist><varlistentry><term>
7020 #. type: Content of: <book><chapter><variablelist><varlistentry><listitem><para>
7023 "Upgrade will attempt to gently upgrade the whole system. Upgrade will never "
7024 "install a new package or remove an existing package, nor will it ever "
7025 "upgrade a package that might cause some other package to break. This can be "
7026 "used daily to relatively safely upgrade the system. Upgrade will list all of "
7027 "the packages that it could not upgrade, this usually means that they depend "
7028 "on new packages or conflict with some other "
7029 "package. <command>dselect</command> or <literal>apt-get install</literal> "
7030 "can be used to force these packages to install."
7033 #. type: Content of: <book><chapter><variablelist><varlistentry><term>
7038 #. type: Content of: <book><chapter><variablelist><varlistentry><listitem><para>
7041 "Install is used to install packages by name. The package is automatically "
7042 "fetched and installed. This can be useful if you already know the name of "
7043 "the package to install and do not want to go into a GUI to select it. Any "
7044 "number of packages may be passed to install, they will all be "
7045 "fetched. Install automatically attempts to resolve dependency problems with "
7046 "the listed packages and will print a summary and ask for confirmation if "
7047 "anything other than its arguments are changed."
7050 #. type: Content of: <book><chapter><variablelist><varlistentry><term>
7052 msgid "dist-upgrade"
7055 #. type: Content of: <book><chapter><variablelist><varlistentry><listitem><para>
7058 "Dist-upgrade is a complete upgrader designed to simplify upgrading between "
7059 "releases of Debian. It uses a sophisticated algorithm to determine the best "
7060 "set of packages to install, upgrade and remove to get as much of the system "
7061 "to the newest release. In some situations it may be desired to use "
7062 "dist-upgrade rather than spend the time manually resolving dependencies in "
7063 "<command>dselect</command>. Once dist-upgrade has completed then "
7064 "<command>dselect</command> can be used to install any packages that may have "
7068 #. type: Content of: <book><chapter><variablelist><varlistentry><listitem><para>
7071 "It is important to closely look at what dist-upgrade is going to do, its "
7072 "decisions may sometimes be quite surprising."
7075 #. type: Content of: <book><chapter><para>
7078 "<command>apt-get</command> has several command line options that are "
7079 "detailed in its man page, "
7080 "<citerefentry><refentrytitle>apt-get</refentrytitle><manvolnum>8</manvolnum></citerefentry>. "
7081 "The most useful option is <literal>-d</literal> which does not install the "
7082 "fetched files. If the system has to download a large number of package it "
7083 "would be undesired to start installing them in case something goes "
7084 "wrong. When <literal>-d</literal> is used the downloaded archives can be "
7085 "installed by simply running the command that caused them to be downloaded "
7086 "again without <literal>-d</literal>."
7089 #. type: Content of: <book><chapter><title>
7094 #. type: Content of: <book><chapter><para>
7097 "The APT <command>dselect</command> method provides the complete APT system "
7098 "with the <command>dselect</command> package selection "
7099 "GUI. <command>dselect</command> is used to select the packages to be "
7100 "installed or removed and APT actually installs them."
7103 #. type: Content of: <book><chapter><para>
7106 "To enable the APT method you need to select [A]ccess in "
7107 "<command>dselect</command> and then choose the APT method. You will be "
7108 "prompted for a set of <emphasis>Sources</emphasis> which are places to fetch "
7109 "archives from. These can be remote Internet sites, local Debian mirrors or "
7110 "CD-ROMs. Each source can provide a fragment of the total Debian archive, APT "
7111 "will automatically combine them to form a complete set of packages. If you "
7112 "have a CD-ROM then it is a good idea to specify it first and then specify a "
7113 "mirror so that you have access to the latest bug fixes. APT will "
7114 "automatically use packages on your CD-ROM before downloading from the "
7118 #. type: Content of: <book><chapter><screen>
7122 " Set up a list of distribution source locations\n"
7124 " Please give the base URL of the debian distribution.\n"
7125 " The access schemes I know about are: http file\n"
7128 " file:/mnt/debian,\n"
7129 " ftp://ftp.debian.org/debian,\n"
7130 " http://ftp.de.debian.org/debian,\n"
7133 " URL [http://llug.sep.bnl.gov/debian]:\n"
7136 #. type: Content of: <book><chapter><para>
7139 "The <emphasis>Sources</emphasis> setup starts by asking for the base of the "
7140 "Debian archive, defaulting to a HTTP mirror. Next it asks for the "
7141 "distribution to get."
7144 #. type: Content of: <book><chapter><screen>
7148 " Please give the distribution tag to get or a path to the\n"
7149 " package file ending in a /. The distribution\n"
7150 " tags are typically something like: stable unstable testing non-US\n"
7152 " Distribution [stable]:\n"
7155 #. type: Content of: <book><chapter><para>
7158 "The distribution refers to the Debian version in the archive, "
7159 "<emphasis>stable</emphasis> refers to the latest released version and "
7160 "<emphasis>unstable</emphasis> refers to the developmental "
7161 "version. <emphasis>non-US</emphasis> is only available on some mirrors and "
7162 "refers to packages that contain encryption technology or other things that "
7163 "cannot be exported from the United States. Importing these packages into the "
7164 "US is legal however."
7167 #. type: Content of: <book><chapter><screen>
7171 " Please give the components to get\n"
7172 " The components are typically something like: main contrib non-free\n"
7174 " Components [main contrib non-free]:\n"
7177 #. type: Content of: <book><chapter><para>
7180 "The components list refers to the list of sub distributions to fetch. The "
7181 "distribution is split up based on software licenses, main being DFSG free "
7182 "packages while contrib and non-free contain things that have various "
7183 "restrictions placed on their use and distribution."
7186 #. type: Content of: <book><chapter><para>
7189 "Any number of sources can be added, the setup script will continue to prompt "
7190 "until you have specified all that you want."
7193 #. type: Content of: <book><chapter><para>
7196 "Before starting to use <command>dselect</command> it is necessary to update "
7197 "the available list by selecting [U]pdate from the menu. This is a superset "
7198 "of <literal>apt-get update</literal> that makes the fetched information "
7199 "available to <command>dselect</command>. [U]pdate must be performed even if "
7200 "<literal>apt-get update</literal> has been run before."
7203 #. type: Content of: <book><chapter><para>
7206 "You can then go on and make your selections using [S]elect and then perform "
7207 "the installation using [I]nstall. When using the APT method the [C]onfig and "
7208 "[R]emove commands have no meaning, the [I]nstall command performs both of "
7212 #. type: Content of: <book><chapter><para>
7215 "By default APT will automatically remove the package (.deb) files once they "
7216 "have been successfully installed. To change this behavior place "
7217 "<literal>Dselect::clean \"prompt\";</literal> in /etc/apt/apt.conf."
7220 #. type: Content of: <book><chapter><title>
7222 msgid "The Interface"
7225 #. type: Content of: <book><chapter><para><footnote><para>
7228 "The <command>dselect</command> method actually is a set of wrapper scripts "
7229 "to <command>apt-get</command>. The method actually provides more "
7230 "functionality than is present in <command>apt-get</command> alone."
7233 #. type: Content of: <book><chapter><para>
7236 "Both that APT <command>dselect</command> method and "
7237 "<command>apt-get</command> share the same interface. It is a simple system "
7238 "that generally tells you what it will do and then goes and does "
7239 "it. <placeholder type=\"footnote\" id=\"0\"/> After printing out a summary "
7240 "of what will happen APT then will print out some informative status messages "
7241 "so that you can estimate how far along it is and how much is left to do."
7244 #. type: Content of: <book><chapter><section><title>
7249 #. type: Content of: <book><chapter><section><para>
7252 "Before all operations except update, APT performs a number of actions to "
7253 "prepare its internal state. It also does some checks of the system's "
7254 "state. At any time these operations can be performed by running "
7255 "<literal>apt-get check</literal>."
7258 #. type: Content of: <book><chapter><section><screen>
7263 "Reading Package Lists... Done\n"
7264 "Building Dependency Tree... Done\n"
7267 #. type: Content of: <book><chapter><section><para>
7270 "The first thing it does is read all the package files into memory. APT uses "
7271 "a caching scheme so this operation will be faster the second time it is "
7272 "run. If some of the package files are not found then they will be ignored "
7273 "and a warning will be printed when apt-get exits."
7276 #. type: Content of: <book><chapter><section><para>
7279 "The final operation performs a detailed analysis of the system's "
7280 "dependencies. It checks every dependency of every installed or unpacked "
7281 "package and considers if it is OK. Should this find a problem then a report "
7282 "will be printed out and <command>apt-get</command> will refuse to run."
7285 #. type: Content of: <book><chapter><section><screen>
7290 "Reading Package Lists... Done\n"
7291 "Building Dependency Tree... Done\n"
7292 "You might want to run apt-get -f install' to correct these.\n"
7293 "Sorry, but the following packages have unmet dependencies:\n"
7294 " 9fonts: Depends: xlib6g but it is not installed\n"
7295 " uucp: Depends: mailx but it is not installed\n"
7296 " blast: Depends: xlib6g (>= 3.3-5) but it is not installed\n"
7297 " adduser: Depends: perl-base but it is not installed\n"
7298 " aumix: Depends: libgpmg1 but it is not installed\n"
7299 " debiandoc-sgml: Depends: sgml-base but it is not installed\n"
7300 " bash-builtins: Depends: bash (>= 2.01) but 2.0-3 is installed\n"
7301 " cthugha: Depends: svgalibg1 but it is not installed\n"
7302 " Depends: xlib6g (>= 3.3-5) but it is not installed\n"
7303 " libreadlineg2: Conflicts:libreadline2 (<< 2.1-2.1)\n"
7306 #. type: Content of: <book><chapter><section><para>
7309 "In this example the system has many problems, including a serious problem "
7310 "with libreadlineg2. For each package that has unmet dependencies a line is "
7311 "printed out indicating the package with the problem and the dependencies "
7312 "that are unmet. A short explanation of why the package has a dependency "
7313 "problem is also included."
7316 #. type: Content of: <book><chapter><section><para><footnote><para>
7319 "APT however considers all known dependencies and attempts to prevent broken "
7323 #. type: Content of: <book><chapter><section><para>
7326 "There are two ways a system can get into a broken state like this. The first "
7327 "is caused by <command>dpkg</command> missing some subtle relationships "
7328 "between packages when performing upgrades. <placeholder type=\"footnote\" "
7329 "id=\"0\"/>. The second is if a package installation fails during an "
7330 "operation. In this situation a package may have been unpacked without its "
7331 "dependents being installed."
7334 #. type: Content of: <book><chapter><section><para>
7337 "The second situation is much less serious than the first because APT places "
7338 "certain constraints on the order that packages are installed. In both cases "
7339 "supplying the <literal>-f</literal> option to <command>apt-get</command> "
7340 "will cause APT to deduce a possible solution to the problem and then "
7341 "continue on. The APT <command>dselect</command> method always supplies the "
7342 "<literal>-f</literal> option to allow for easy continuation of failed "
7343 "maintainer scripts."
7346 #. type: Content of: <book><chapter><section><para>
7349 "However, if the <literal>-f</literal> option is used to correct a seriously "
7350 "broken system caused by the first case then it is possible that it will "
7351 "either fail immediately or the installation sequence will fail. In either "
7352 "case it is necessary to manually use dpkg (possibly with forcing options) to "
7353 "correct the situation enough to allow APT to proceed."
7356 #. type: Content of: <book><chapter><section><title>
7358 msgid "The Status Report"
7361 #. type: Content of: <book><chapter><section><para>
7364 "Before proceeding <command>apt-get</command> will present a report on what "
7365 "will happen. Generally the report reflects the type of operation being "
7366 "performed but there are several common elements. In all cases the lists "
7367 "reflect the final state of things, taking into account the "
7368 "<literal>-f</literal> option and any other relevant activities to the "
7369 "command being executed."
7372 #. type: Content of: <book><chapter><section><section><title>
7374 msgid "The Extra Package list"
7377 #. type: Content of: <book><chapter><section><section><screen>
7381 "The following extra packages will be installed:\n"
7382 " libdbd-mysql-perl xlib6 zlib1 xzx libreadline2 libdbd-msql-perl\n"
7383 " mailpgp xdpkg fileutils pinepgp zlib1g xlib6g perl-base\n"
7384 " bin86 libgdbm1 libgdbmg1 quake-lib gmp2 bcc xbuffy\n"
7385 " squake pgp-i python-base debmake ldso perl libreadlineg2\n"
7389 #. type: Content of: <book><chapter><section><section><para>
7392 "The Extra Package list shows all of the packages that will be installed or "
7393 "upgraded in excess of the ones mentioned on the command line. It is only "
7394 "generated for an <literal>install</literal> command. The listed packages are "
7395 "often the result of an Auto Install."
7398 #. type: Content of: <book><chapter><section><section><title>
7400 msgid "The Packages to Remove"
7403 #. type: Content of: <book><chapter><section><section><screen>
7407 "The following packages will be REMOVED:\n"
7408 " xlib6-dev xpat2 tk40-dev xkeycaps xbattle xonix\n"
7409 " xdaliclock tk40 tk41 xforms0.86 ghostview xloadimage xcolorsel\n"
7410 " xadmin xboard perl-debug tkined xtetris libreadline2-dev perl-suid\n"
7411 " nas xpilot xfig\n"
7414 #. type: Content of: <book><chapter><section><section><para>
7417 "The Packages to Remove list shows all of the packages that will be removed "
7418 "from the system. It can be shown for any of the operations and should be "
7419 "given a careful inspection to ensure nothing important is to be taken "
7420 "off. The <literal>-f</literal> option is especially good at generating "
7421 "packages to remove so extreme care should be used in that case. The list may "
7422 "contain packages that are going to be removed because they are only "
7423 "partially installed, possibly due to an aborted installation."
7426 #. type: Content of: <book><chapter><section><section><title>
7428 msgid "The New Packages list"
7431 #. type: Content of: <book><chapter><section><section><screen>
7435 "The following NEW packages will installed:\n"
7436 " zlib1g xlib6g perl-base libgdbmg1 quake-lib gmp2 pgp-i python-base\n"
7439 #. type: Content of: <book><chapter><section><section><para>
7442 "The New Packages list is simply a reminder of what will happen. The packages "
7443 "listed are not presently installed in the system but will be when APT is "
7447 #. type: Content of: <book><chapter><section><section><title>
7449 msgid "The Kept Back list"
7452 #. type: Content of: <book><chapter><section><section><screen>
7456 "The following packages have been kept back\n"
7457 " compface man-db tetex-base msql libpaper svgalib1\n"
7458 " gs snmp arena lynx xpat2 groff xscreensaver\n"
7461 #. type: Content of: <book><chapter><section><section><para>
7464 "Whenever the whole system is being upgraded there is the possibility that "
7465 "new versions of packages cannot be installed because they require new things "
7466 "or conflict with already installed things. In this case the package will "
7467 "appear in the Kept Back list. The best way to convince packages listed there "
7468 "to install is with <literal>apt-get install</literal> or by using "
7469 "<command>dselect</command> to resolve their problems."
7472 #. type: Content of: <book><chapter><section><section><title>
7474 msgid "Held Packages warning"
7477 #. type: Content of: <book><chapter><section><section><screen>
7481 "The following held packages will be changed:\n"
7485 #. type: Content of: <book><chapter><section><section><para>
7488 "Sometimes you can ask APT to install a package that is on hold, in such a "
7489 "case it prints out a warning that the held package is going to be "
7490 "changed. This should only happen during dist-upgrade or install."
7493 #. type: Content of: <book><chapter><section><section><title>
7495 msgid "Final summary"
7498 #. type: Content of: <book><chapter><section><section><para>
7500 msgid "Finally, APT will print out a summary of all the changes that will occur."
7503 #. type: Content of: <book><chapter><section><section><screen>
7507 "206 packages upgraded, 8 newly installed, 23 to remove and 51 not "
7509 "12 packages not fully installed or removed.\n"
7510 "Need to get 65.7M/66.7M of archives. After unpacking 26.5M will be used.\n"
7513 #. type: Content of: <book><chapter><section><section><para>
7516 "The first line of the summary simply is a reduced version of all of the "
7517 "lists and includes the number of upgrades - that is packages already "
7518 "installed that have new versions available. The second line indicates the "
7519 "number of poorly configured packages, possibly the result of an aborted "
7520 "installation. The final line shows the space requirements that the "
7521 "installation needs. The first pair of numbers refer to the size of the "
7522 "archive files. The first number indicates the number of bytes that must be "
7523 "fetched from remote locations and the second indicates the total size of all "
7524 "the archives required. The next number indicates the size difference between "
7525 "the presently installed packages and the newly installed packages. It is "
7526 "roughly equivalent to the space required in /usr after everything is "
7527 "done. If a large number of packages are being removed then the value may "
7528 "indicate the amount of space that will be freed."
7531 #. type: Content of: <book><chapter><section><section><para>
7534 "Some other reports can be generated by using the -u option to show packages "
7535 "to upgrade, they are similar to the previous examples."
7538 #. type: Content of: <book><chapter><section><title>
7540 msgid "The Status Display"
7543 #. type: Content of: <book><chapter><section><para>
7546 "During the download of archives and package files APT prints out a series of "
7550 #. type: Content of: <book><chapter><section><screen>
7554 "# apt-get update\n"
7555 "Get:1 http://ftp.de.debian.org/debian-non-US/ stable/non-US/ Packages\n"
7556 "Get:2 http://llug.sep.bnl.gov/debian/ testing/contrib Packages\n"
7557 "Hit http://llug.sep.bnl.gov/debian/ testing/main Packages\n"
7558 "Get:4 http://ftp.de.debian.org/debian-non-US/ unstable/binary-i386/ "
7560 "Get:5 http://llug.sep.bnl.gov/debian/ testing/non-free Packages\n"
7561 "11% [5 testing/non-free `Waiting for file' 0/32.1k 0%] 2203b/s 1m52s\n"
7564 #. type: Content of: <book><chapter><section><para>
7567 "The lines starting with <emphasis>Get</emphasis> are printed out when APT "
7568 "begins to fetch a file while the last line indicates the progress of the "
7569 "download. The first percent value on the progress line indicates the total "
7570 "percent done of all files. Unfortunately since the size of the Package files "
7571 "is unknown <literal>apt-get update</literal> estimates the percent done "
7572 "which causes some inaccuracies."
7575 #. type: Content of: <book><chapter><section><para>
7578 "The next section of the status line is repeated once for each download "
7579 "thread and indicates the operation being performed and some useful "
7580 "information about what is happening. Sometimes this section will simply read "
7581 "<emphasis>Forking</emphasis> which means the OS is loading the download "
7582 "module. The first word after the [ is the fetch number as shown on the "
7583 "history lines. The next word is the short form name of the object being "
7584 "downloaded. For archives it will contain the name of the package that is "
7588 #. type: Content of: <book><chapter><section><para>
7591 "Inside of the single quote is an informative string indicating the progress "
7592 "of the negotiation phase of the download. Typically it progresses from "
7593 "<emphasis>Connecting</emphasis> to <emphasis>Waiting for file</emphasis> to "
7594 "<emphasis>Downloading</emphasis> or <emphasis>Resuming</emphasis>. The final "
7595 "value is the number of bytes downloaded from the remote site. Once the "
7596 "download begins this is represented as <literal>102/10.2k</literal> "
7597 "indicating that 102 bytes have been fetched and 10.2 kilobytes is "
7598 "expected. The total size is always shown in 4 figure notation to preserve "
7599 "space. After the size display is a percent meter for the file itself. The "
7600 "second last element is the instantaneous average speed. This values is "
7601 "updated every 5 seconds and reflects the rate of data transfer for that "
7602 "period. Finally is shown the estimated transfer time. This is updated "
7603 "regularly and reflects the time to complete everything at the shown transfer "
7607 #. type: Content of: <book><chapter><section><para>
7610 "The status display updates every half second to provide a constant feedback "
7611 "on the download progress while the Get lines scroll back whenever a new file "
7612 "is started. Since the status display is constantly updated it is unsuitable "
7613 "for logging to a file, use the <literal>-q</literal> option to remove the "
7617 #. type: Content of: <book><chapter><section><title>
7622 #. type: Content of: <book><chapter><section><para>
7625 "APT uses <command>dpkg</command> for installing the archives and will switch "
7626 "over to the <command>dpkg</command> interface once downloading is "
7627 "completed. <command>dpkg</command> will also ask a number of questions as it "
7628 "processes the packages and the packages themselves may also ask several "
7629 "questions. Before each question there is usually a description of what it is "
7630 "asking and the questions are too varied to discuss completely here."
7633 #. type: Content of: <book><title>
7635 msgid "Using APT Offline"
7638 #. type: Content of: <book><bookinfo><abstract><para>
7641 "This document describes how to use APT in a non-networked environment, "
7642 "specifically a 'sneaker-net' approach for performing upgrades."
7645 #. type: Content of: <book><bookinfo>
7647 msgid "<copyright><year>1999</year><holder>Jason Gunthorpe</holder></copyright>"
7650 #. type: Content of: <book><chapter><title>
7652 msgid "Introduction"
7655 #. type: Content of: <book><chapter><section><title>
7656 #: offline.dbk:1 offline.dbk:1 offline.dbk:1
7660 #. type: Content of: <book><chapter><section><para>
7663 "Normally APT requires direct access to a Debian archive, either from a local "
7664 "media or through a network. Another common complaint is that a Debian "
7665 "machine is on a slow link, such as a modem and another machine has a very "
7666 "fast connection but they are physically distant."
7669 #. type: Content of: <book><chapter><section><para>
7672 "The solution to this is to use large removable media such as a Zip disc or a "
7673 "SuperDisk disc. These discs are not large enough to store the entire Debian "
7674 "archive but can easily fit a subset large enough for most users. The idea is "
7675 "to use APT to generate a list of packages that are required and then fetch "
7676 "them onto the disc using another machine with good connectivity. It is even "
7677 "possible to use another Debian machine with APT or to use a completely "
7678 "different OS and a download tool like wget. Let <emphasis>remote "
7679 "host</emphasis> mean the machine downloading the packages, and "
7680 "<emphasis>target host</emphasis> the one with bad or no connection."
7683 #. type: Content of: <book><chapter><section><para>
7686 "This is achieved by creatively manipulating the APT configuration file. The "
7687 "essential premise to tell APT to look on a disc for it's archive files. Note "
7688 "that the disc should be formatted with a filesystem that can handle long "
7689 "file names such as ext2, fat32 or vfat."
7692 #. type: Content of: <book><chapter><title>
7694 msgid "Using APT on both machines"
7697 #. type: Content of: <book><chapter><section><para>
7700 "APT being available on both machines gives the simplest configuration. The "
7701 "basic idea is to place a copy of the status file on the disc and use the "
7702 "remote machine to fetch the latest package files and decide which packages "
7703 "to download. The disk directory structure should look like:"
7706 #. type: Content of: <book><chapter><section><screen>
7720 #. type: Content of: <book><chapter><section><title>
7722 msgid "The configuration file"
7725 #. type: Content of: <book><chapter><section><para>
7728 "The configuration file should tell APT to store its files on the disc and to "
7729 "use the configuration files on the disc as well. The sources.list should "
7730 "contain the proper sites that you wish to use from the remote machine, and "
7731 "the status file should be a copy of "
7732 "<emphasis>/var/lib/dpkg/status</emphasis> from the <emphasis>target "
7733 "host</emphasis>. Please note, if you are using a local archive you must use "
7734 "copy URIs, the syntax is identical to file URIs."
7737 #. type: Content of: <book><chapter><section><para>
7740 "<emphasis>apt.conf</emphasis> must contain the necessary information to make "
7744 #. type: Content of: <book><chapter><section><screen>
7750 " /* This is not necessary if the two machines are the same arch, it "
7752 " the remote APT what architecture the target machine is */\n"
7753 " Architecture \"i386\";\n"
7755 " Get::Download-Only \"true\";\n"
7760 " /* Use the disc for state information and redirect the status file from\n"
7761 " the /var/lib/dpkg default */\n"
7762 " State \"/disc/\";\n"
7763 " State::status \"status\";\n"
7765 " // Binary caches will be stored locally\n"
7766 " Cache::archives \"/disc/archives/\";\n"
7767 " Cache \"/tmp/\";\n"
7769 " // Location of the source list.\n"
7770 " Etc \"/disc/\";\n"
7774 #. type: Content of: <book><chapter><section><para>
7777 "More details can be seen by examining the apt.conf man page and the sample "
7778 "configuration file in "
7779 "<emphasis>/usr/share/doc/apt/examples/apt.conf</emphasis>."
7782 #. type: Content of: <book><chapter><section><para>
7785 "On the target machine the first thing to do is mount the disc and copy "
7786 "<emphasis>/var/lib/dpkg/status</emphasis> to it. You will also need to "
7787 "create the directories outlined in the Overview, "
7788 "<emphasis>archives/partial/</emphasis> and "
7789 "<emphasis>lists/partial/</emphasis>. Then take the disc to the remote "
7790 "machine and configure the sources.list. On the remote machine execute the "
7794 #. type: Content of: <book><chapter><section><screen>
7798 " # export APT_CONFIG=\"/disc/apt.conf\"\n"
7799 " # apt-get update\n"
7800 " [ APT fetches the package files ]\n"
7801 " # apt-get dist-upgrade\n"
7802 " [ APT fetches all the packages needed to upgrade the target machine ]\n"
7805 #. type: Content of: <book><chapter><section><para>
7808 "The dist-upgrade command can be replaced with any other standard APT "
7809 "commands, particularly dselect-upgrade. You can even use an APT front end "
7810 "such as <emphasis>dselect</emphasis>. However this presents a problem in "
7811 "communicating your selections back to the local computer."
7814 #. type: Content of: <book><chapter><section><para>
7817 "Now the disc contains all of the index files and archives needed to upgrade "
7818 "the target machine. Take the disc back and run:"
7821 #. type: Content of: <book><chapter><section><screen>
7825 " # export APT_CONFIG=\"/disc/apt.conf\"\n"
7826 " # apt-get check\n"
7827 " [ APT generates a local copy of the cache files ]\n"
7828 " # apt-get --no-d -o dir::state::status=/var/lib/dpkg/status dist-upgrade\n"
7829 " [ Or any other APT command ]\n"
7832 #. type: Content of: <book><chapter><section><para>
7835 "It is necessary for proper function to re-specify the status file to be the "
7836 "local one. This is very important!"
7839 #. type: Content of: <book><chapter><section><para>
7842 "If you are using dselect you can do the very risky operation of copying "
7843 "disc/status to /var/lib/dpkg/status so that any selections you made on the "
7844 "remote machine are updated. I highly recommend that people only make "
7845 "selections on the local machine - but this may not always be possible. DO "
7846 "NOT copy the status file if dpkg or APT have been run in the mean time!!"
7849 #. type: Content of: <book><chapter><title>
7851 msgid "Using APT and wget"
7854 #. type: Content of: <book><chapter><section><para>
7857 "<emphasis>wget</emphasis> is a popular and portable download tool that can "
7858 "run on nearly any machine. Unlike the method above this requires that the "
7859 "Debian machine already has a list of available packages."
7862 #. type: Content of: <book><chapter><section><para>
7865 "The basic idea is to create a disc that has only the archive files "
7866 "downloaded from the remote site. This is done by using the --print-uris "
7867 "option to apt-get and then preparing a wget script to actually fetch the "
7871 #. type: Content of: <book><chapter><section><title>
7876 #. type: Content of: <book><chapter><section><para>
7879 "Unlike the previous technique no special configuration files are "
7880 "required. We merely use the standard APT commands to generate the file list."
7883 #. type: Content of: <book><chapter><section><screen>
7887 " # apt-get dist-upgrade\n"
7888 " [ Press no when prompted, make sure you are happy with the actions ]\n"
7889 " # apt-get -qq --print-uris dist-upgrade > uris\n"
7890 " # awk '{print \"wget -O \" $2 \" \" $1}' < uris > /disc/wget-script\n"
7893 #. type: Content of: <book><chapter><section><para>
7896 "Any command other than dist-upgrade could be used here, including "
7900 #. type: Content of: <book><chapter><section><para>
7903 "The /disc/wget-script file will now contain a list of wget commands to "
7904 "execute in order to fetch the necessary archives. This script should be run "
7905 "with the current directory as the disc's mount point so as to save the "
7906 "output on the disc."
7909 #. type: Content of: <book><chapter><section><para>
7911 msgid "The remote machine would do something like"
7914 #. type: Content of: <book><chapter><section><screen>
7919 " # sh -x ./wget-script\n"
7923 #. type: Content of: <book><chapter><section><para>
7926 "Once the archives are downloaded and the disc returned to the Debian machine "
7927 "installation can proceed using,"
7930 #. type: Content of: <book><chapter><section><screen>
7933 msgid " # apt-get -o dir::cache::archives=\"/disc/\" dist-upgrade\n"
7936 #. type: Content of: <book><chapter><section><para>
7938 msgid "Which will use the already fetched archives on the disc."