1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the apt-doc package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
9 "Project-Id-Version: apt-doc 0.9.5.1\n"
10 "Report-Msgid-Bugs-To: APT Development Team <deity@lists.debian.org>\n"
11 "POT-Creation-Date: 2012-05-29 15:53+0300\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
46 msgid "apt - Advanced Package Tool"
69 "APT is a management system for software packages. For normal day to day "
70 "package management there are several frontends available, such as "
71 "B<aptitude>(8) for the command line or B<synaptic>(8) for the X Window "
72 "System. Some options are only implemented in B<apt-get>(8) though."
84 "B<apt-cache>(8), B<apt-get>(8), B<apt.conf>(5), B<sources.list>(5), "
85 "B<apt_preferences>(5), B<apt-secure>(8)"
96 msgid "apt returns zero on normal operation, decimal 100 on error."
107 msgid "This manpage isn't even started."
113 "See E<lt>http://bugs.debian.org/aptE<gt>. If you wish to report a bug in "
114 "B<apt>, please see I</usr/share/doc/debian/bug-reporting.txt> or the "
115 "B<reportbug>(1) command."
126 msgid "apt was written by the APT team E<lt>apt@packages.debian.orgE<gt>."
133 "<!ENTITY apt-author.team \"\n"
135 " <othername>APT team</othername>\n"
136 " <contrib></contrib>\n"
145 "<!ENTITY apt-qapage \"\n"
147 "\t\t<ulink url='http://packages.qa.debian.org/a/apt.html'>QA Page</ulink>\n"
156 "<!-- Boiler plate Bug reporting section -->\n"
157 "<!ENTITY manbugs \"\n"
158 " <refsect1><title>Bugs</title>\n"
159 " <para><ulink url='http://bugs.debian.org/src:apt'>APT bug page</ulink>.\n"
160 " If you wish to report a bug in APT, please see\n"
161 " <filename>/usr/share/doc/debian/bug-reporting.txt</filename> or the\n"
162 " &reportbug; command.\n"
172 "<!-- Boiler plate Author section -->\n"
173 "<!ENTITY manauthor \"\n"
174 " <refsect1><title>Author</title>\n"
175 " <para>APT was written by the APT team "
176 "<email>apt@packages.debian.org</email>.\n"
186 "<!-- Should be used within the option section of the text to\n"
187 " put in the blurb about -h, -v, -c and -o -->\n"
188 "<!ENTITY apt-commonoptions \"\n"
189 " <varlistentry><term><option>-h</option></term>\n"
190 " <term><option>--help</option></term>\n"
191 " <listitem><para>Show a short usage summary.\n"
202 " <term><option>-v</option></term>\n"
203 " <term><option>--version</option></term>\n"
204 " <listitem><para>Show the program version.\n"
215 " <term><option>-c</option></term>\n"
216 " <term><option>--config-file</option></term>\n"
217 " <listitem><para>Configuration File; Specify a configuration file to "
219 " The program will read the default configuration file and then this \n"
220 " configuration file. If configuration settings need to be set before "
222 " default configuration files are parsed specify a file with the "
223 "<envar>APT_CONFIG</envar>\n"
224 " environment variable. See &apt-conf; for syntax information.\n"
235 " <term><option>-o</option></term>\n"
236 " <term><option>--option</option></term>\n"
237 " <listitem><para>Set a Configuration Option; This will set an "
239 " configuration option. The syntax is <option>-o "
240 "Foo::Bar=bar</option>.\n"
241 " <option>-o</option> and <option>--option</option> can be used "
243 " times to set different options.\n"
254 "<!-- Should be used within the option section of the text to\n"
255 " put in the blurb about -h, -v, -c and -o -->\n"
256 "<!ENTITY apt-cmdblurb \"\n"
257 " <para>All command line options may be set using the configuration file, "
259 " descriptions indicate the configuration option to set. For boolean\n"
260 " options you can override the config file by using something like \n"
261 " <option>-f-</option>,<option>--no-f</option>, <option>-f=no</option>\n"
262 " or several other variations.\n"
271 "<!ENTITY file-aptconf \"\n"
272 " <varlistentry><term><filename>/etc/apt/apt.conf</filename></term>\n"
273 " <listitem><para>APT configuration file.\n"
274 " Configuration Item: "
275 "<literal>Dir::Etc::Main</literal>.</para></listitem>\n"
283 " <varlistentry><term><filename>/etc/apt/apt.conf.d/</filename></term>\n"
284 " <listitem><para>APT configuration file fragments.\n"
285 " Configuration Item: "
286 "<literal>Dir::Etc::Parts</literal>.</para></listitem>\n"
295 "<!ENTITY file-cachearchives \"\n"
296 " <varlistentry><term><filename>&cachedir;/archives/</filename></term>\n"
297 " <listitem><para>Storage area for retrieved package files.\n"
298 " Configuration Item: "
299 "<literal>Dir::Cache::Archives</literal>.</para></listitem>\n"
308 "<varlistentry><term><filename>&cachedir;/archives/partial/</filename></term>\n"
309 " <listitem><para>Storage area for package files in transit.\n"
310 " Configuration Item: <literal>Dir::Cache::Archives</literal> "
311 "(<filename>partial</filename> will be implicitly "
312 "appended)</para></listitem>\n"
321 "<!ENTITY file-preferences \"\n"
322 " <varlistentry><term><filename>/etc/apt/preferences</filename></term>\n"
323 " <listitem><para>Version preferences file.\n"
324 " This is where you would specify "pinning",\n"
325 " i.e. a preference to get certain packages\n"
326 " from a separate source\n"
327 " or from a different version of a distribution.\n"
328 " Configuration Item: "
329 "<literal>Dir::Etc::Preferences</literal>.</para></listitem>\n"
338 "<varlistentry><term><filename>/etc/apt/preferences.d/</filename></term>\n"
339 " <listitem><para>File fragments for the version preferences.\n"
340 " Configuration Item: "
341 "<literal>Dir::Etc::PreferencesParts</literal>.</para></listitem>\n"
350 "<!ENTITY file-sourceslist \"\n"
351 " <varlistentry><term><filename>/etc/apt/sources.list</filename></term>\n"
352 " <listitem><para>Locations to fetch packages from.\n"
353 " Configuration Item: "
354 "<literal>Dir::Etc::SourceList</literal>.</para></listitem>\n"
363 "<varlistentry><term><filename>/etc/apt/sources.list.d/</filename></term>\n"
364 " <listitem><para>File fragments for locations to fetch packages from.\n"
365 " Configuration Item: "
366 "<literal>Dir::Etc::SourceParts</literal>.</para></listitem>\n"
375 "<!ENTITY file-statelists \"\n"
376 " <varlistentry><term><filename>&statedir;/lists/</filename></term>\n"
377 " <listitem><para>Storage area for state information for each package "
378 "resource specified in\n"
380 " Configuration Item: "
381 "<literal>Dir::State::Lists</literal>.</para></listitem>\n"
390 "<varlistentry><term><filename>&statedir;/lists/partial/</filename></term>\n"
391 " <listitem><para>Storage area for state information in transit.\n"
392 " Configuration Item: <literal>Dir::State::Lists</literal> "
393 "(<filename>partial</filename> will be implicitly "
394 "appended)</para></listitem>\n"
403 "<!ENTITY file-trustedgpg \"\n"
404 " <varlistentry><term><filename>/etc/apt/trusted.gpg</filename></term>\n"
405 " <listitem><para>Keyring of local trusted keys, new keys will be added "
407 " Configuration Item: "
408 "<literal>Dir::Etc::Trusted</literal>.</para></listitem>\n"
417 "<varlistentry><term><filename>/etc/apt/trusted.gpg.d/</filename></term>\n"
418 " <listitem><para>File fragments for the trusted keys, additional "
420 " be stored here (by other packages or the administrator).\n"
421 " Configuration Item "
422 "<literal>Dir::Etc::TrustedParts</literal>.</para></listitem>\n"
431 "<!ENTITY file-extended_states \"\n"
433 "<varlistentry><term><filename>/var/lib/apt/extended_states</filename></term>\n"
434 " <listitem><para>Status list of auto-installed packages.\n"
435 " Configuration Item: <literal>Dir::State::extended_states</literal>.\n"
436 " </para></listitem>\n"
445 "<!-- TRANSLATOR: This is the section header for the following paragraphs - "
447 " to the other headers like NAME and DESCRIPTION and should therefore be "
449 "<!ENTITY translation-title \"TRANSLATION\">\n"
456 "<!-- TRANSLATOR: This is a placeholder. You should write here who has "
458 " to the translation in the past, who is responsible now and maybe "
459 "further information\n"
460 " specially related to your translation. -->\n"
461 "<!ENTITY translation-holder \"\n"
462 " The english translation was done by John Doe "
463 "<email>john@doe.org</email> in 2009,\n"
464 " 2010 and Daniela Acme <email>daniela@acme.us</email> in 2010 together "
466 " Debian Dummy l10n Team "
467 "<email>debian-l10n-dummy@lists.debian.org</email>.\n"
475 "<!-- TRANSLATOR: As a translation is allowed to have 20% of "
476 "untranslated/fuzzy strings\n"
477 " in a shipped manpage newer/modified paragraphs will maybe appear in "
479 " the generated manpage. This sentence is therefore here to tell the "
481 " is not a mistake by the translator - obviously the target is that at "
483 " releases this sentence is not needed. :) -->\n"
484 "<!ENTITY translation-english \"\n"
485 " Note that this translated document may contain untranslated parts.\n"
486 " This is done on purpose, to avoid losing content when the\n"
487 " translation is lagging behind the original content.\n"
494 "<!-- TRANSLATOR: used as in -o=config_string "
495 "e.g. -o=Debug::pkgProblemResolver=1 --> <!ENTITY synopsis-config-string "
502 "<!-- TRANSLATOR: used as in -c=config_file e.g. -c=./apt.conf --> <!ENTITY "
503 "synopsis-config-file \"config_file\">"
509 "<!-- TRANSLATOR: used as in -t=target_release or pkg/target_release "
510 "e.g. -t=squeeze apt/experimental --> <!ENTITY synopsis-target-release "
511 "\"target_release\">"
517 "<!-- TRANSLATOR: used as in -a=architecture e.g. -a=armel --> <!ENTITY "
518 "synopsis-architecture \"architecture\">"
524 "<!-- TRANSLATOR: used as in apt-get install pkg e.g. apt-get install awesome "
525 "--> <!ENTITY synopsis-pkg \"pkg\">"
531 "<!-- TRANSLATOR: used as in pkg=pkg_version_number e.g. apt=0.8.15 --> "
532 "<!ENTITY synopsis-pkg-ver-number \"pkg_version_number\">"
538 "<!-- TRANSLATOR: used as in apt-cache pkgnames prefix e.g. apt-cache "
539 "pkgnames apt --> <!ENTITY synopsis-prefix \"prefix\">"
545 "<!-- TRANSLATOR: used as in apt-cache search regex e.g. apt-cache search "
546 "awesome --> <!ENTITY synopsis-regex \"regex\">"
552 "<!-- TRANSLATOR: used as in apt-cdrom -d=cdrom_mount_point e.g. apt-cdrom "
553 "-d=/media/cdrom --> <!ENTITY synopsis-cdrom-mount \"cdrom_mount_point\">"
559 "<!-- TRANSLATOR: used as in apt-extracttemplates -t=temporary_directory "
560 "e.g. apt-extracttemplates -t=/tmp --> <!ENTITY synopsis-tmp-directory "
561 "\"temporary_directory\">"
567 "<!-- TRANSLATOR: used as in apt-extracttemplates filename --> <!ENTITY "
568 "synopsis-filename \"filename\">"
574 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
575 "packages path override-file pathprefix --> <!ENTITY synopsis-path \"path\">"
581 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
582 "packages path override-file pathprefix --> <!ENTITY synopsis-override "
589 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
590 "packages path override-file pathprefix --> <!ENTITY synopsis-pathprefix "
597 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
598 "generate section --> <!ENTITY synopsis-section \"section\">"
604 "<!-- TRANSLATOR: used as in apt-key export keyid e.g. apt-key export "
605 "473041FA --> <!ENTITY synopsis-keyid \"keyid\">"
608 #. type: Content of: <refentry><refmeta><manvolnum>
609 #: apt-cache.8.xml:26 apt-cdrom.8.xml:25 apt-config.8.xml:26 apt-get.8.xml:26 apt-key.8.xml:25 apt-mark.8.xml:26 apt-secure.8.xml:25
613 #. type: Content of: <refentry><refmeta><refmiscinfo>
614 #: apt-cache.8.xml:27 apt-cdrom.8.xml:26 apt-config.8.xml:27 apt-extracttemplates.1.xml:27 apt-ftparchive.1.xml:27 apt-get.8.xml:27 apt-key.8.xml:26 apt-mark.8.xml:27 apt-secure.8.xml:26 apt-sortpkgs.1.xml:27 apt.conf.5.xml:32 apt_preferences.5.xml:26 sources.list.5.xml:27
618 #. type: Content of: <refentry><refnamediv><refpurpose>
619 #: apt-cache.8.xml:33
620 msgid "query the APT cache"
623 #. type: Content of: <refentry><refsect1><title>
624 #: apt-cache.8.xml:38 apt-cdrom.8.xml:37 apt-config.8.xml:38 apt-extracttemplates.1.xml:38 apt-ftparchive.1.xml:38 apt-get.8.xml:38 apt-key.8.xml:37 apt-mark.8.xml:38 apt-secure.8.xml:50 apt-sortpkgs.1.xml:38 apt.conf.5.xml:41 apt_preferences.5.xml:36 sources.list.5.xml:36
628 #. type: Content of: <refentry><refsect1><para>
629 #: apt-cache.8.xml:39
631 "<command>apt-cache</command> performs a variety of operations on APT's "
632 "package cache. <command>apt-cache</command> does not manipulate the state of "
633 "the system but does provide operations to search and generate interesting "
634 "output from the package metadata."
637 #. type: Content of: <refentry><refsect1><para>
638 #: apt-cache.8.xml:44 apt-cdrom.8.xml:51 apt-config.8.xml:44 apt-ftparchive.1.xml:54 apt-get.8.xml:44
640 "Unless the <option>-h</option>, or <option>--help</option> option is given, "
641 "one of the commands below must be present."
644 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
645 #: apt-cache.8.xml:49
647 "<literal>gencaches</literal> creates APT's package cache. This is done "
648 "implicitly by all commands needing this cache if it is missing or outdated."
651 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option><replaceable>
652 #: apt-cache.8.xml:53 apt-cache.8.xml:142 apt-cache.8.xml:163 apt-cache.8.xml:185 apt-cache.8.xml:190 apt-cache.8.xml:206 apt-cache.8.xml:224 apt-cache.8.xml:236
653 msgid "&synopsis-pkg;"
656 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
657 #: apt-cache.8.xml:54
659 "<literal>showpkg</literal> displays information about the packages listed on "
660 "the command line. Remaining arguments are package names. The available "
661 "versions and reverse dependencies of each package listed are listed, as well "
662 "as forward dependencies for each version. Forward (normal) dependencies are "
663 "those packages upon which the package in question depends; reverse "
664 "dependencies are those packages that depend upon the package in "
665 "question. Thus, forward dependencies must be satisfied for a package, but "
666 "reverse dependencies need not be. For instance, <command>apt-cache showpkg "
667 "libreadline2</command> would produce output similar to the following:"
670 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><informalexample><programlisting>
671 #: apt-cache.8.xml:66
674 "Package: libreadline2\n"
675 "Versions: 2.1-12(/var/state/apt/lists/foo_Packages),\n"
676 "Reverse Depends: \n"
677 " libreadlineg2,libreadline2\n"
678 " libreadline2-altdev,libreadline2\n"
680 "2.1-12 - libc5 (2 5.4.0-0) ncurses3.0 (0 (null))\n"
683 "Reverse Provides: \n"
686 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
687 #: apt-cache.8.xml:78
689 "Thus it may be seen that libreadline2, version 2.1-12, depends on libc5 and "
690 "ncurses3.0 which must be installed for libreadline2 to work. In turn, "
691 "libreadlineg2 and libreadline2-altdev depend on libreadline2. If "
692 "libreadline2 is installed, libc5 and ncurses3.0 (and ldso) must also be "
693 "installed; libreadlineg2 and libreadline2-altdev do not have to be "
694 "installed. For the specific meaning of the remainder of the output it is "
695 "best to consult the apt source code."
698 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
699 #: apt-cache.8.xml:87
701 "<literal>stats</literal> displays some statistics about the cache. No "
702 "further arguments are expected. Statistics reported are:"
705 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
706 #: apt-cache.8.xml:90
708 "<literal>Total package names</literal> is the number of package names found "
712 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
713 #: apt-cache.8.xml:94
715 "<literal>Normal packages</literal> is the number of regular, ordinary "
716 "package names; these are packages that bear a one-to-one correspondence "
717 "between their names and the names used by other packages for them in "
718 "dependencies. The majority of packages fall into this category."
721 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
722 #: apt-cache.8.xml:100
724 "<literal>Pure virtual packages</literal> is the number of packages that "
725 "exist only as a virtual package name; that is, packages only \"provide\" the "
726 "virtual package name, and no package actually uses the name. For instance, "
727 "\"mail-transport-agent\" in the Debian system is a pure virtual package; "
728 "several packages provide \"mail-transport-agent\", but there is no package "
729 "named \"mail-transport-agent\"."
732 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
733 #: apt-cache.8.xml:108
735 "<literal>Single virtual packages</literal> is the number of packages with "
736 "only one package providing a particular virtual package. For example, in the "
737 "Debian system, \"X11-text-viewer\" is a virtual package, but only one "
738 "package, xless, provides \"X11-text-viewer\"."
741 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
742 #: apt-cache.8.xml:114
744 "<literal>Mixed virtual packages</literal> is the number of packages that "
745 "either provide a particular virtual package or have the virtual package name "
746 "as the package name. For instance, in the Debian system, \"debconf\" is both "
747 "an actual package, and provided by the debconf-tiny package."
750 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
751 #: apt-cache.8.xml:121
753 "<literal>Missing</literal> is the number of package names that were "
754 "referenced in a dependency but were not provided by any package. Missing "
755 "packages may be an evidence if a full distribution is not accessed, or if a "
756 "package (real or virtual) has been dropped from the distribution. Usually "
757 "they are referenced from Conflicts or Breaks statements."
760 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
761 #: apt-cache.8.xml:128
763 "<literal>Total distinct</literal> versions is the number of package versions "
764 "found in the cache; this value is therefore at least equal to the number of "
765 "total package names. If more than one distribution is being accessed (for "
766 "instance, \"stable\" and \"unstable\"), this value can be considerably "
767 "larger than the number of total package names."
770 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
771 #: apt-cache.8.xml:135
773 "<literal>Total dependencies</literal> is the number of dependency "
774 "relationships claimed by all of the packages in the cache."
777 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
778 #: apt-cache.8.xml:143
780 "<literal>showsrc</literal> displays all the source package records that "
781 "match the given package names. All versions are shown, as well as all "
782 "records that declare the name to be a binary package."
785 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
786 #: apt-cache.8.xml:149
788 "<literal>dump</literal> shows a short listing of every package in the "
789 "cache. It is primarily for debugging."
792 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
793 #: apt-cache.8.xml:154
795 "<literal>dumpavail</literal> prints out an available list to stdout. This is "
796 "suitable for use with &dpkg; and is used by the &dselect; method."
799 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
800 #: apt-cache.8.xml:159
802 "<literal>unmet</literal> displays a summary of all unmet dependencies in the "
806 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
807 #: apt-cache.8.xml:164
809 "<literal>show</literal> performs a function similar to <command>dpkg "
810 "--print-avail</command>; it displays the package records for the named "
814 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option><replaceable>
815 #: apt-cache.8.xml:169
816 msgid "&synopsis-regex;"
819 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
820 #: apt-cache.8.xml:170
822 "<literal>search</literal> performs a full text search on all available "
823 "package lists for the POSIX regex pattern given, see ®ex;. It searches "
824 "the package names and the descriptions for an occurrence of the regular "
825 "expression and prints out the package name and the short description, "
826 "including virtual package names. If <option>--full</option> is given then "
827 "output identical to <literal>show</literal> is produced for each matched "
828 "package, and if <option>--names-only</option> is given then the long "
829 "description is not searched, only the package name is."
832 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
833 #: apt-cache.8.xml:181
835 "Separate arguments can be used to specify multiple search patterns that are "
839 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
840 #: apt-cache.8.xml:186
842 "<literal>depends</literal> shows a listing of each dependency a package has "
843 "and all the possible other packages that can fulfill that dependency."
846 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
847 #: apt-cache.8.xml:191
849 "<literal>rdepends</literal> shows a listing of each reverse dependency a "
853 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
854 #: apt-cache.8.xml:195
855 msgid "<optional><replaceable>&synopsis-prefix;</replaceable></optional>"
858 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
859 #: apt-cache.8.xml:196
861 "This command prints the name of each package APT knows. The optional "
862 "argument is a prefix match to filter the name list. The output is suitable "
863 "for use in a shell tab complete function and the output is generated "
864 "extremely quickly. This command is best used with the "
865 "<option>--generate</option> option."
868 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
869 #: apt-cache.8.xml:201
871 "Note that a package which APT knows of is not necessarily available to "
872 "download, installable or installed, e.g. virtual packages are also listed in "
873 "the generated list."
876 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
877 #: apt-cache.8.xml:207
879 "<literal>dotty</literal> takes a list of packages on the command line and "
880 "generates output suitable for use by dotty from the <ulink "
881 "url=\"http://www.research.att.com/sw/tools/graphviz/\">GraphViz</ulink> "
882 "package. The result will be a set of nodes and edges representing the "
883 "relationships between the packages. By default the given packages will trace "
884 "out all dependent packages; this can produce a very large graph. To limit "
885 "the output to only the packages listed on the command line, set the "
886 "<literal>APT::Cache::GivenOnly</literal> option."
889 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
890 #: apt-cache.8.xml:216
892 "The resulting nodes will have several shapes; normal packages are boxes, "
893 "pure virtual packages are triangles, mixed virtual packages are diamonds, "
894 "missing packages are hexagons. Orange boxes mean recursion was stopped (leaf "
895 "packages), blue lines are pre-depends, green lines are conflicts."
898 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
899 #: apt-cache.8.xml:221
900 msgid "Caution, dotty cannot graph larger sets of packages."
903 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
904 #: apt-cache.8.xml:225
906 "The same as <literal>dotty</literal>, only for xvcg from the <ulink "
907 "url=\"http://rw4.cs.uni-sb.de/users/sander/html/gsvcg1.html\">VCG "
911 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
912 #: apt-cache.8.xml:229
913 msgid "<optional><replaceable>&synopsis-pkg;</replaceable>…</optional>"
916 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
917 #: apt-cache.8.xml:230
919 "<literal>policy</literal> is meant to help debug issues relating to the "
920 "preferences file. With no arguments it will print out the priorities of each "
921 "source. Otherwise it prints out detailed information about the priority "
922 "selection of the named package."
925 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
926 #: apt-cache.8.xml:237
928 "<literal>apt-cache</literal>'s <literal>madison</literal> command attempts "
929 "to mimic the output format and a subset of the functionality of the Debian "
930 "archive management tool, <literal>madison</literal>. It displays available "
931 "versions of a package in a tabular format. Unlike the original "
932 "<literal>madison</literal>, it can only display information for the "
933 "architecture for which APT has retrieved package lists "
934 "(<literal>APT::Architecture</literal>)."
937 #. type: Content of: <refentry><refsect1><title>
938 #: apt-cache.8.xml:248 apt-config.8.xml:84 apt-extracttemplates.1.xml:52 apt-ftparchive.1.xml:504 apt-get.8.xml:259 apt-mark.8.xml:108 apt-sortpkgs.1.xml:48
942 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
943 #: apt-cache.8.xml:253
945 "Select the file to store the package cache. The package cache is the primary "
946 "cache used by all operations. Configuration Item: "
947 "<literal>Dir::Cache::pkgcache</literal>."
950 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
951 #: apt-cache.8.xml:259
953 "Select the file to store the source cache. The source is used only by "
954 "<literal>gencaches</literal> and it stores a parsed version of the package "
955 "information from remote sources. When building the package cache the source "
956 "cache is used to avoid reparsing all of the package files. Configuration "
957 "Item: <literal>Dir::Cache::srcpkgcache</literal>."
960 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
961 #: apt-cache.8.xml:267
963 "Quiet; produces output suitable for logging, omitting progress indicators. "
964 "More q's will produce more quietness up to a maximum of 2. You can also use "
965 "<option>-q=#</option> to set the quietness level, overriding the "
966 "configuration file. Configuration Item: <literal>quiet</literal>."
969 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
970 #: apt-cache.8.xml:274
972 "Print only important dependencies; for use with <literal>unmet</literal> and "
973 "<literal>depends</literal>. Causes only Depends and Pre-Depends relations to "
974 "be printed. Configuration Item: <literal>APT::Cache::Important</literal>."
977 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
978 #: apt-cache.8.xml:288
980 "Per default the <literal>depends</literal> and <literal>rdepends</literal> "
981 "print all dependencies. This can be tweaked with these flags which will omit "
982 "the specified dependency type. Configuration Item: "
983 "<literal>APT::Cache::Show<replaceable>DependencyType</replaceable></literal> "
984 "e.g. <literal>APT::Cache::ShowRecommends</literal>."
987 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
988 #: apt-cache.8.xml:295
990 "Print full package records when searching. Configuration Item: "
991 "<literal>APT::Cache::ShowFull</literal>."
994 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
995 #: apt-cache.8.xml:300
997 "Print full records for all available versions. This is the default; to turn "
998 "it off, use <option>--no-all-versions</option>. If "
999 "<option>--no-all-versions</option> is specified, only the candidate version "
1000 "will be displayed (the one which would be selected for installation). This "
1001 "option is only applicable to the <literal>show</literal> command. "
1002 "Configuration Item: <literal>APT::Cache::AllVersions</literal>."
1005 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1006 #: apt-cache.8.xml:309
1008 "Perform automatic package cache regeneration, rather than use the cache as "
1009 "it is. This is the default; to turn it off, use "
1010 "<option>--no-generate</option>. Configuration Item: "
1011 "<literal>APT::Cache::Generate</literal>."
1014 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1015 #: apt-cache.8.xml:315
1017 "Only search on the package names, not the long descriptions. Configuration "
1018 "Item: <literal>APT::Cache::NamesOnly</literal>."
1021 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1022 #: apt-cache.8.xml:320
1024 "Make <literal>pkgnames</literal> print all names, including virtual packages "
1025 "and missing dependencies. Configuration Item: "
1026 "<literal>APT::Cache::AllNames</literal>."
1029 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1030 #: apt-cache.8.xml:326
1032 "Make <literal>depends</literal> and <literal>rdepends</literal> recursive so "
1033 "that all packages mentioned are printed once. Configuration Item: "
1034 "<literal>APT::Cache::RecurseDepends</literal>."
1037 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1038 #: apt-cache.8.xml:333
1040 "Limit the output of <literal>depends</literal> and "
1041 "<literal>rdepends</literal> to packages which are currently installed. "
1042 "Configuration Item: <literal>APT::Cache::Installed</literal>."
1045 #. type: Content of: <refentry><refsect1><title>
1046 #: apt-cache.8.xml:343 apt-get.8.xml:519 apt-key.8.xml:174 apt-mark.8.xml:125 apt.conf.5.xml:1118 apt_preferences.5.xml:698
1050 #. type: Content of: <refentry><refsect1><title>
1051 #: apt-cache.8.xml:350 apt-cdrom.8.xml:144 apt-config.8.xml:109 apt-extracttemplates.1.xml:70 apt-ftparchive.1.xml:607 apt-get.8.xml:529 apt-key.8.xml:195 apt-mark.8.xml:131 apt-secure.8.xml:192 apt-sortpkgs.1.xml:63 apt.conf.5.xml:1124 apt_preferences.5.xml:705 sources.list.5.xml:252
1055 #. type: Content of: <refentry><refsect1><para>
1056 #: apt-cache.8.xml:351
1057 msgid "&apt-conf;, &sources-list;, &apt-get;"
1060 #. type: Content of: <refentry><refsect1><title>
1061 #: apt-cache.8.xml:355 apt-cdrom.8.xml:149 apt-config.8.xml:114 apt-extracttemplates.1.xml:74 apt-ftparchive.1.xml:611 apt-get.8.xml:535 apt-mark.8.xml:135 apt-sortpkgs.1.xml:67
1065 #. type: Content of: <refentry><refsect1><para>
1066 #: apt-cache.8.xml:356
1068 "<command>apt-cache</command> returns zero on normal operation, decimal 100 "
1072 #. type: Content of: <refentry><refnamediv><refpurpose>
1073 #: apt-cdrom.8.xml:32
1074 msgid "APT CD-ROM management utility"
1077 #. type: Content of: <refentry><refsect1><para>
1078 #: apt-cdrom.8.xml:38
1080 "<command>apt-cdrom</command> is used to add a new CD-ROM to APT's list of "
1081 "available sources. <command>apt-cdrom</command> takes care of determining "
1082 "the structure of the disc as well as correcting for several possible "
1083 "mis-burns and verifying the index files."
1086 #. type: Content of: <refentry><refsect1><para>
1087 #: apt-cdrom.8.xml:45
1089 "It is necessary to use <command>apt-cdrom</command> to add CDs to the APT "
1090 "system; it cannot be done by hand. Furthermore each disc in a multi-CD set "
1091 "must be inserted and scanned separately to account for possible mis-burns."
1094 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1095 #: apt-cdrom.8.xml:56
1097 "<literal>add</literal> is used to add a new disc to the source list. It will "
1098 "unmount the CD-ROM device, prompt for a disc to be inserted and then proceed "
1099 "to scan it and copy the index files. If the disc does not have a proper "
1100 "<filename>.disk</filename> directory you will be prompted for a descriptive "
1104 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1105 #: apt-cdrom.8.xml:64
1107 "APT uses a CD-ROM ID to track which disc is currently in the drive and "
1108 "maintains a database of these IDs in "
1109 "<filename>&statedir;/cdroms.list</filename>"
1112 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1113 #: apt-cdrom.8.xml:72
1115 "A debugging tool to report the identity of the current disc as well as the "
1119 #. type: Content of: <refentry><refsect1><title>
1120 #: apt-cdrom.8.xml:80 apt-key.8.xml:160
1124 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1125 #: apt-cdrom.8.xml:85
1127 "Mount point; specify the location to mount the CD-ROM. This mount point must "
1128 "be listed in <filename>/etc/fstab</filename> and properly configured. "
1129 "Configuration Item: <literal>Acquire::cdrom::mount</literal>."
1132 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1133 #: apt-cdrom.8.xml:94
1135 "Rename a disc; change the label of a disc or override the disc's given "
1136 "label. This option will cause <command>apt-cdrom</command> to prompt for a "
1137 "new label. Configuration Item: <literal>APT::CDROM::Rename</literal>."
1140 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1141 #: apt-cdrom.8.xml:103
1143 "No mounting; prevent <command>apt-cdrom</command> from mounting and "
1144 "unmounting the mount point. Configuration Item: "
1145 "<literal>APT::CDROM::NoMount</literal>."
1148 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1149 #: apt-cdrom.8.xml:111
1151 "Fast Copy; Assume the package files are valid and do not check every "
1152 "package. This option should be used only if <command>apt-cdrom</command> has "
1153 "been run on this disc before and did not detect any errors. Configuration "
1154 "Item: <literal>APT::CDROM::Fast</literal>."
1157 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1158 #: apt-cdrom.8.xml:121
1160 "Thorough Package Scan; This option may be needed with some old Debian "
1161 "1.1/1.2 discs that have Package files in strange places. It takes much "
1162 "longer to scan the CD but will pick them all up."
1165 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1166 #: apt-cdrom.8.xml:132
1168 "No Changes; Do not change the &sources-list; file and do not write index "
1169 "files. Everything is still checked however. Configuration Item: "
1170 "<literal>APT::CDROM::NoAct</literal>."
1173 #. type: Content of: <refentry><refsect1><para>
1174 #: apt-cdrom.8.xml:145
1175 msgid "&apt-conf;, &apt-get;, &sources-list;"
1178 #. type: Content of: <refentry><refsect1><para>
1179 #: apt-cdrom.8.xml:150
1181 "<command>apt-cdrom</command> returns zero on normal operation, decimal 100 "
1185 #. type: Content of: <refentry><refnamediv><refpurpose>
1186 #: apt-config.8.xml:33
1187 msgid "APT Configuration Query program"
1190 #. type: Content of: <refentry><refsect1><para>
1191 #: apt-config.8.xml:39
1193 "<command>apt-config</command> is an internal program used by various "
1194 "portions of the APT suite to provide consistent configurability. It accesses "
1195 "the main configuration file <filename>/etc/apt/apt.conf</filename> in a "
1196 "manner that is easy to use for scripted applications."
1199 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1200 #: apt-config.8.xml:51
1202 "shell is used to access the configuration information from a shell "
1203 "script. It is given pairs of arguments, the first being a shell variable and "
1204 "the second the configuration value to query. As output it lists shell "
1205 "assignment commands for each value present. In a shell script it should be "
1209 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><informalexample><programlisting>
1210 #: apt-config.8.xml:59
1214 "RES=`apt-config shell OPTS MyApp::options`\n"
1218 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1219 #: apt-config.8.xml:64
1221 "This will set the shell environment variable $OPTS to the value of "
1222 "MyApp::options with a default of <option>-f</option>."
1225 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1226 #: apt-config.8.xml:68
1228 "The configuration item may be postfixed with a /[fdbi]. f returns file "
1229 "names, d returns directories, b returns true or false and i returns an "
1230 "integer. Each of the returns is normalized and verified internally."
1233 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1234 #: apt-config.8.xml:77
1235 msgid "Just show the contents of the configuration space."
1238 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1239 #: apt-config.8.xml:90
1241 "Include options which have an empty value. This is the default, so use "
1242 "--no-empty to remove them from the output."
1245 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option><replaceable>
1246 #: apt-config.8.xml:95
1247 msgid "%f "%v";%n"
1250 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1251 #: apt-config.8.xml:96
1253 "Defines the output of each config option. %t will be replaced with "
1254 "its individual name, %f with its full hierarchical name and %v "
1255 "with its value. Use uppercase letters and special characters in the value "
1256 "will be encoded to ensure that it can e.g. be safely used in a quoted-string "
1257 "as defined by RFC822. Additionally %n will be replaced by a newline, "
1258 "and %N by a tab. A % can be printed by using %%."
1261 #. type: Content of: <refentry><refsect1><para>
1262 #: apt-config.8.xml:110 apt-extracttemplates.1.xml:71 apt-ftparchive.1.xml:608 apt-sortpkgs.1.xml:64
1266 #. type: Content of: <refentry><refsect1><para>
1267 #: apt-config.8.xml:115
1269 "<command>apt-config</command> returns zero on normal operation, decimal 100 "
1273 #. type: Content of: <refentry><refmeta><manvolnum>
1274 #: apt-extracttemplates.1.xml:26 apt-ftparchive.1.xml:26 apt-sortpkgs.1.xml:26
1278 #. type: Content of: <refentry><refnamediv><refpurpose>
1279 #: apt-extracttemplates.1.xml:33
1281 "Utility to extract <command>debconf</command> config and templates from "
1285 #. type: Content of: <refentry><refsect1><para>
1286 #: apt-extracttemplates.1.xml:39
1288 "<command>apt-extracttemplates</command> will take one or more Debian package "
1289 "files as input and write out (to a temporary directory) all associated "
1290 "config scripts and template files. For each passed in package that contains "
1291 "config scripts and templates, one line of output will be generated in the "
1295 #. type: Content of: <refentry><refsect1><para>
1296 #: apt-extracttemplates.1.xml:44
1297 msgid "package version template-file config-script"
1300 #. type: Content of: <refentry><refsect1><para>
1301 #: apt-extracttemplates.1.xml:45
1303 "template-file and config-script are written to the temporary directory "
1304 "specified by the <option>-t</option> or <option>--tempdir</option> "
1305 "(<literal>APT::ExtractTemplates::TempDir</literal>) directory, with "
1306 "filenames of the form <filename>package.template.XXXX</filename> and "
1307 "<filename>package.config.XXXX</filename>"
1310 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1311 #: apt-extracttemplates.1.xml:58
1313 "Temporary directory in which to write extracted <command>debconf</command> "
1314 "template files and config scripts. Configuration Item: "
1315 "<literal>APT::ExtractTemplates::TempDir</literal>"
1318 #. type: Content of: <refentry><refsect1><para>
1319 #: apt-extracttemplates.1.xml:75
1321 "<command>apt-extracttemplates</command> returns zero on normal operation, "
1322 "decimal 100 on error."
1325 #. type: Content of: <refentry><refnamediv><refpurpose>
1326 #: apt-ftparchive.1.xml:33
1327 msgid "Utility to generate index files"
1330 #. type: Content of: <refentry><refsect1><para>
1331 #: apt-ftparchive.1.xml:39
1333 "<command>apt-ftparchive</command> is the command line tool that generates "
1334 "the index files that APT uses to access a distribution source. The index "
1335 "files should be generated on the origin site based on the content of that "
1339 #. type: Content of: <refentry><refsect1><para>
1340 #: apt-ftparchive.1.xml:43
1342 "<command>apt-ftparchive</command> is a superset of the &dpkg-scanpackages; "
1343 "program, incorporating its entire functionality via the "
1344 "<literal>packages</literal> command. It also contains a contents file "
1345 "generator, <literal>contents</literal>, and an elaborate means to 'script' "
1346 "the generation process for a complete archive."
1349 #. type: Content of: <refentry><refsect1><para>
1350 #: apt-ftparchive.1.xml:49
1352 "Internally <command>apt-ftparchive</command> can make use of binary "
1353 "databases to cache the contents of a .deb file and it does not rely on any "
1354 "external programs aside from &gzip;. When doing a full generate it "
1355 "automatically performs file-change checks and builds the desired compressed "
1359 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1360 #: apt-ftparchive.1.xml:60
1362 "The packages command generates a package file from a directory tree. It "
1363 "takes the given directory and recursively searches it for .deb files, "
1364 "emitting a package record to stdout for each. This command is approximately "
1365 "equivalent to &dpkg-scanpackages;."
1368 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1369 #: apt-ftparchive.1.xml:65 apt-ftparchive.1.xml:89
1370 msgid "The option <option>--db</option> can be used to specify a binary caching DB."
1373 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1374 #: apt-ftparchive.1.xml:70
1376 "The <literal>sources</literal> command generates a source index file from a "
1377 "directory tree. It takes the given directory and recursively searches it "
1378 "for .dsc files, emitting a source record to stdout for each. This command is "
1379 "approximately equivalent to &dpkg-scansources;."
1382 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1383 #: apt-ftparchive.1.xml:75
1385 "If an override file is specified then a source override file will be looked "
1386 "for with an extension of .src. The --source-override option can be used to "
1387 "change the source override file that will be used."
1390 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1391 #: apt-ftparchive.1.xml:82
1393 "The <literal>contents</literal> command generates a contents file from a "
1394 "directory tree. It takes the given directory and recursively searches it for "
1395 ".deb files, and reads the file list from each file. It then sorts and writes "
1396 "to stdout the list of files matched to packages. Directories are not written "
1397 "to the output. If multiple packages own the same file then each package is "
1398 "separated by a comma in the output."
1401 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1402 #: apt-ftparchive.1.xml:94
1404 "The <literal>release</literal> command generates a Release file from a "
1405 "directory tree. It recursively searches the given directory for uncompressed "
1406 "<filename>Packages</filename> and <filename>Sources</filename> files and the "
1407 "ones compressed with <command>gzip</command>, <command>bzip2</command> or "
1408 "<command>lzma</command> as well as <filename>Release</filename> and "
1409 "<filename>md5sum.txt</filename> files by default "
1410 "(<literal>APT::FTPArchive::Release::Default-Patterns</literal>). Additional "
1411 "filename patterns can be added by listing them in "
1412 "<literal>APT::FTPArchive::Release::Patterns</literal>. It then writes to "
1413 "stdout a Release file containing a MD5, SHA1 and SHA256 digest for each "
1417 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1418 #: apt-ftparchive.1.xml:104
1420 "Values for the additional metadata fields in the Release file are taken from "
1421 "the corresponding variables under "
1422 "<literal>APT::FTPArchive::Release</literal>, "
1423 "e.g. <literal>APT::FTPArchive::Release::Origin</literal>. The supported "
1424 "fields are: <literal>Origin</literal>, <literal>Label</literal>, "
1425 "<literal>Suite</literal>, <literal>Version</literal>, "
1426 "<literal>Codename</literal>, <literal>Date</literal>, "
1427 "<literal>Valid-Until</literal>, <literal>Architectures</literal>, "
1428 "<literal>Components</literal>, <literal>Description</literal>."
1431 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1432 #: apt-ftparchive.1.xml:117
1434 "The <literal>generate</literal> command is designed to be runnable from a "
1435 "cron script and builds indexes according to the given config file. The "
1436 "config language provides a flexible means of specifying which index files "
1437 "are built from which directories, as well as providing a simple means of "
1438 "maintaining the required settings."
1441 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1442 #: apt-ftparchive.1.xml:126
1444 "The <literal>clean</literal> command tidies the databases used by the given "
1445 "configuration file by removing any records that are no longer necessary."
1448 #. type: Content of: <refentry><refsect1><title>
1449 #: apt-ftparchive.1.xml:132
1450 msgid "The Generate Configuration"
1453 #. type: Content of: <refentry><refsect1><para>
1454 #: apt-ftparchive.1.xml:134
1456 "The <literal>generate</literal> command uses a configuration file to "
1457 "describe the archives that are going to be generated. It follows the typical "
1458 "ISC configuration format as seen in ISC tools like bind 8 and dhcpd. "
1459 "&apt-conf; contains a description of the syntax. Note that the generate "
1460 "configuration is parsed in sectional manner, but &apt-conf; is parsed in a "
1461 "tree manner. This only effects how the scope tag is handled."
1464 #. type: Content of: <refentry><refsect1><para>
1465 #: apt-ftparchive.1.xml:142
1466 msgid "The generate configuration has 4 separate sections, each described below."
1469 #. type: Content of: <refentry><refsect1><refsect2><title>
1470 #: apt-ftparchive.1.xml:144
1471 msgid "<literal>Dir</literal> Section"
1474 #. type: Content of: <refentry><refsect1><refsect2><para>
1475 #: apt-ftparchive.1.xml:146
1477 "The <literal>Dir</literal> section defines the standard directories needed "
1478 "to locate the files required during the generation process. These "
1479 "directories are prepended certain relative paths defined in later sections "
1480 "to produce a complete an absolute path."
1483 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1484 #: apt-ftparchive.1.xml:153
1486 "Specifies the root of the FTP archive, in a standard Debian configuration "
1487 "this is the directory that contains the <filename>ls-LR</filename> and dist "
1491 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1492 #: apt-ftparchive.1.xml:160
1493 msgid "Specifies the location of the override files."
1496 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1497 #: apt-ftparchive.1.xml:165
1498 msgid "Specifies the location of the cache files"
1501 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1502 #: apt-ftparchive.1.xml:170
1504 "Specifies the location of the file list files, if the "
1505 "<literal>FileList</literal> setting is used below."
1508 #. type: Content of: <refentry><refsect1><refsect2><title>
1509 #: apt-ftparchive.1.xml:176
1510 msgid "<literal>Default</literal> Section"
1513 #. type: Content of: <refentry><refsect1><refsect2><para>
1514 #: apt-ftparchive.1.xml:178
1516 "The <literal>Default</literal> section specifies default values, and "
1517 "settings that control the operation of the generator. Other sections may "
1518 "override these defaults with a per-section setting."
1521 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1522 #: apt-ftparchive.1.xml:184
1524 "Sets the default compression schemes to use for the Package index files. It "
1525 "is a string that contains a space separated list of at least one of: '.' (no "
1526 "compression), 'gzip' and 'bzip2'. The default for all compression schemes is "
1530 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1531 #: apt-ftparchive.1.xml:192
1533 "Sets the default list of file extensions that are package files. This "
1534 "defaults to '.deb'."
1537 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1538 #: apt-ftparchive.1.xml:198
1540 "This is similar to <literal>Packages::Compress</literal> except that it "
1541 "controls the compression for the Sources files."
1544 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1545 #: apt-ftparchive.1.xml:204
1547 "Sets the default list of file extensions that are source files. This "
1548 "defaults to '.dsc'."
1551 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1552 #: apt-ftparchive.1.xml:210
1554 "This is similar to <literal>Packages::Compress</literal> except that it "
1555 "controls the compression for the Contents files."
1558 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1559 #: apt-ftparchive.1.xml:216
1561 "This is similar to <literal>Packages::Compress</literal> except that it "
1562 "controls the compression for the Translation-en master file."
1565 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1566 #: apt-ftparchive.1.xml:222
1568 "Specifies the number of kilobytes to delink (and replace with hard links) "
1569 "per run. This is used in conjunction with the per-section "
1570 "<literal>External-Links</literal> setting."
1573 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1574 #: apt-ftparchive.1.xml:229
1576 "Specifies the mode of all created index files. It defaults to 0644. All "
1577 "index files are set to this mode with no regard to the umask."
1580 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1581 #: apt-ftparchive.1.xml:236 apt-ftparchive.1.xml:382
1583 "Sets if long descriptions should be included in the Packages file or split "
1584 "out into a master Translation-en file."
1587 #. type: Content of: <refentry><refsect1><refsect2><title>
1588 #: apt-ftparchive.1.xml:242
1589 msgid "<literal>TreeDefault</literal> Section"
1592 #. type: Content of: <refentry><refsect1><refsect2><para>
1593 #: apt-ftparchive.1.xml:244
1595 "Sets defaults specific to <literal>Tree</literal> sections. All of these "
1596 "variables are substitution variables and have the strings $(DIST), "
1597 "$(SECTION) and $(ARCH) replaced with their respective values."
1600 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1601 #: apt-ftparchive.1.xml:251
1603 "Sets the number of kilobytes of contents files that are generated each "
1604 "day. The contents files are round-robined so that over several days they "
1605 "will all be rebuilt."
1608 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1609 #: apt-ftparchive.1.xml:258
1611 "Controls the number of days a contents file is allowed to be checked without "
1612 "changing. If this limit is passed the mtime of the contents file is "
1613 "updated. This case can occur if the package file is changed in such a way "
1614 "that does not result in a new contents file [override edit for instance]. A "
1615 "hold off is allowed in hopes that new .debs will be installed, requiring a "
1616 "new file anyhow. The default is 10, the units are in days."
1619 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1620 #: apt-ftparchive.1.xml:269
1622 "Sets the top of the .deb directory tree. Defaults to "
1623 "<filename>$(DIST)/$(SECTION)/binary-$(ARCH)/</filename>"
1626 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1627 #: apt-ftparchive.1.xml:275
1629 "Sets the top of the source package directory tree. Defaults to "
1630 "<filename>$(DIST)/$(SECTION)/source/</filename>"
1633 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1634 #: apt-ftparchive.1.xml:281
1636 "Sets the output Packages file. Defaults to "
1637 "<filename>$(DIST)/$(SECTION)/binary-$(ARCH)/Packages</filename>"
1640 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1641 #: apt-ftparchive.1.xml:287
1643 "Sets the output Sources file. Defaults to "
1644 "<filename>$(DIST)/$(SECTION)/source/Sources</filename>"
1647 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1648 #: apt-ftparchive.1.xml:293
1650 "Set the output Translation-en master file with the long descriptions if they "
1651 "should be not included in the Packages file. Defaults to "
1652 "<filename>$(DIST)/$(SECTION)/i18n/Translation-en</filename>"
1655 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1656 #: apt-ftparchive.1.xml:300
1658 "Sets the path prefix that causes a symlink to be considered an internal link "
1659 "instead of an external link. Defaults to "
1660 "<filename>$(DIST)/$(SECTION)/</filename>"
1663 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1664 #: apt-ftparchive.1.xml:307
1666 "Sets the output Contents file. Defaults to "
1667 "<filename>$(DIST)/Contents-$(ARCH)</filename>. If this setting causes "
1668 "multiple Packages files to map onto a single Contents file (such as the "
1669 "default) then <command>apt-ftparchive</command> will integrate those "
1670 "package files together automatically."
1673 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1674 #: apt-ftparchive.1.xml:316
1675 msgid "Sets header file to prepend to the contents output."
1678 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1679 #: apt-ftparchive.1.xml:321
1681 "Sets the binary cache database to use for this section. Multiple sections "
1682 "can share the same database."
1685 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1686 #: apt-ftparchive.1.xml:327
1688 "Specifies that instead of walking the directory tree, "
1689 "<command>apt-ftparchive</command> should read the list of files from the "
1690 "given file. Relative files names are prefixed with the archive directory."
1693 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1694 #: apt-ftparchive.1.xml:334
1696 "Specifies that instead of walking the directory tree, "
1697 "<command>apt-ftparchive</command> should read the list of files from the "
1698 "given file. Relative files names are prefixed with the archive directory. "
1699 "This is used when processing source indexes."
1702 #. type: Content of: <refentry><refsect1><refsect2><title>
1703 #: apt-ftparchive.1.xml:342
1704 msgid "<literal>Tree</literal> Section"
1707 #. type: Content of: <refentry><refsect1><refsect2><para>
1708 #: apt-ftparchive.1.xml:344
1710 "The <literal>Tree</literal> section defines a standard Debian file tree "
1711 "which consists of a base directory, then multiple sections in that base "
1712 "directory and finally multiple Architectures in each section. The exact "
1713 "pathing used is defined by the <literal>Directory</literal> substitution "
1717 #. type: Content of: <refentry><refsect1><refsect2><para>
1718 #: apt-ftparchive.1.xml:349
1720 "The <literal>Tree</literal> section takes a scope tag which sets the "
1721 "<literal>$(DIST)</literal> variable and defines the root of the tree (the "
1722 "path is prefixed by <literal>ArchiveDir</literal>). Typically this is a "
1723 "setting such as <filename>dists/&stable-codename;</filename>."
1726 #. type: Content of: <refentry><refsect1><refsect2><para>
1727 #: apt-ftparchive.1.xml:354
1729 "All of the settings defined in the <literal>TreeDefault</literal> section "
1730 "can be use in a <literal>Tree</literal> section as well as three new "
1734 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
1735 #: apt-ftparchive.1.xml:360
1738 "for i in Sections do \n"
1739 " for j in Architectures do\n"
1740 " Generate for DIST=scope SECTION=i ARCH=j\n"
1744 #. type: Content of: <refentry><refsect1><refsect2><para>
1745 #: apt-ftparchive.1.xml:357
1747 "When processing a <literal>Tree</literal> section "
1748 "<command>apt-ftparchive</command> performs an operation similar to: "
1749 "<placeholder type=\"programlisting\" id=\"0\"/>"
1752 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1753 #: apt-ftparchive.1.xml:368
1755 "This is a space separated list of sections which appear under the "
1756 "distribution, typically this is something like <literal>main contrib "
1757 "non-free</literal>"
1760 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1761 #: apt-ftparchive.1.xml:375
1763 "This is a space separated list of all the architectures that appear under "
1764 "search section. The special architecture 'source' is used to indicate that "
1765 "this tree has a source archive."
1768 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1769 #: apt-ftparchive.1.xml:388
1771 "Sets the binary override file. The override file contains section, priority "
1772 "and maintainer address information."
1775 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1776 #: apt-ftparchive.1.xml:394
1778 "Sets the source override file. The override file contains section "
1782 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1783 #: apt-ftparchive.1.xml:400 apt-ftparchive.1.xml:446
1784 msgid "Sets the binary extra override file."
1787 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1788 #: apt-ftparchive.1.xml:405 apt-ftparchive.1.xml:451
1789 msgid "Sets the source extra override file."
1792 #. type: Content of: <refentry><refsect1><refsect2><title>
1793 #: apt-ftparchive.1.xml:410
1794 msgid "<literal>BinDirectory</literal> Section"
1797 #. type: Content of: <refentry><refsect1><refsect2><para>
1798 #: apt-ftparchive.1.xml:412
1800 "The <literal>bindirectory</literal> section defines a binary directory tree "
1801 "with no special structure. The scope tag specifies the location of the "
1802 "binary directory and the settings are similar to the <literal>Tree</literal> "
1803 "section with no substitution variables or "
1804 "<literal>Section</literal><literal>Architecture</literal> settings."
1807 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1808 #: apt-ftparchive.1.xml:420
1809 msgid "Sets the Packages file output."
1812 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1813 #: apt-ftparchive.1.xml:425
1815 "Sets the Sources file output. At least one of <literal>Packages</literal> or "
1816 "<literal>Sources</literal> is required."
1819 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1820 #: apt-ftparchive.1.xml:431
1821 msgid "Sets the Contents file output. (optional)"
1824 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1825 #: apt-ftparchive.1.xml:436
1826 msgid "Sets the binary override file."
1829 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1830 #: apt-ftparchive.1.xml:441
1831 msgid "Sets the source override file."
1834 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1835 #: apt-ftparchive.1.xml:456
1836 msgid "Sets the cache DB."
1839 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1840 #: apt-ftparchive.1.xml:461
1841 msgid "Appends a path to all the output paths."
1844 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
1845 #: apt-ftparchive.1.xml:466
1846 msgid "Specifies the file list file."
1849 #. type: Content of: <refentry><refsect1><title>
1850 #: apt-ftparchive.1.xml:473
1851 msgid "The Binary Override File"
1854 #. type: Content of: <refentry><refsect1><para>
1855 #: apt-ftparchive.1.xml:474
1857 "The binary override file is fully compatible with &dpkg-scanpackages;. It "
1858 "contains 4 fields separated by spaces. The first field is the package name, "
1859 "the second is the priority to force that package to, the third is the the "
1860 "section to force that package to and the final field is the maintainer "
1861 "permutation field."
1864 #. type: Content of: <refentry><refsect1><para><literallayout>
1865 #: apt-ftparchive.1.xml:480
1867 msgid "old [// oldn]* => new"
1870 #. type: Content of: <refentry><refsect1><para><literallayout>
1871 #: apt-ftparchive.1.xml:482
1876 #. type: Content of: <refentry><refsect1><para>
1877 #: apt-ftparchive.1.xml:479
1879 "The general form of the maintainer field is: <placeholder "
1880 "type=\"literallayout\" id=\"0\"/> or simply, <placeholder "
1881 "type=\"literallayout\" id=\"1\"/> The first form allows a double-slash "
1882 "separated list of old email addresses to be specified. If any of those are "
1883 "found then new is substituted for the maintainer field. The second form "
1884 "unconditionally substitutes the maintainer field."
1887 #. type: Content of: <refentry><refsect1><title>
1888 #: apt-ftparchive.1.xml:490
1889 msgid "The Source Override File"
1892 #. type: Content of: <refentry><refsect1><para>
1893 #: apt-ftparchive.1.xml:492
1895 "The source override file is fully compatible with &dpkg-scansources;. It "
1896 "contains 2 fields separated by spaces. The first fields is the source "
1897 "package name, the second is the section to assign it."
1900 #. type: Content of: <refentry><refsect1><title>
1901 #: apt-ftparchive.1.xml:497
1902 msgid "The Extra Override File"
1905 #. type: Content of: <refentry><refsect1><para>
1906 #: apt-ftparchive.1.xml:499
1908 "The extra override file allows any arbitrary tag to be added or replaced in "
1909 "the output. It has 3 columns, the first is the package, the second is the "
1910 "tag and the remainder of the line is the new value."
1913 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1914 #: apt-ftparchive.1.xml:510
1916 "Generate the given checksum. These options default to on, when turned off "
1917 "the generated index files will not have the checksum fields where possible. "
1918 "Configuration Items: "
1919 "<literal>APT::FTPArchive::<replaceable>Checksum</replaceable></literal> and "
1920 "<literal>APT::FTPArchive::<replaceable>Index</replaceable>::<replaceable>Checksum</replaceable></literal> "
1921 "where <literal><replaceable>Index</replaceable></literal> can be "
1922 "<literal>Packages</literal>, <literal>Sources</literal> or "
1923 "<literal>Release</literal> and "
1924 "<literal><replaceable>Checksum</replaceable></literal> can be "
1925 "<literal>MD5</literal>, <literal>SHA1</literal> or "
1926 "<literal>SHA256</literal>."
1929 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1930 #: apt-ftparchive.1.xml:521
1932 "Use a binary caching DB. This has no effect on the generate command. "
1933 "Configuration Item: <literal>APT::FTPArchive::DB</literal>."
1936 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1937 #: apt-ftparchive.1.xml:527
1939 "Quiet; produces output suitable for logging, omitting progress indicators. "
1940 "More q's will produce more quiet up to a maximum of 2. You can also use "
1941 "<option>-q=#</option> to set the quiet level, overriding the configuration "
1942 "file. Configuration Item: <literal>quiet</literal>."
1945 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1946 #: apt-ftparchive.1.xml:535
1948 "Perform Delinking. If the <literal>External-Links</literal> setting is used "
1949 "then this option actually enables delinking of the files. It defaults to on "
1950 "and can be turned off with <option>--no-delink</option>. Configuration "
1951 "Item: <literal>APT::FTPArchive::DeLinkAct</literal>."
1954 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1955 #: apt-ftparchive.1.xml:543
1957 "Perform contents generation. When this option is set and package indexes are "
1958 "being generated with a cache DB then the file listing will also be extracted "
1959 "and stored in the DB for later use. When using the generate command this "
1960 "option also allows the creation of any Contents files. The default is on. "
1961 "Configuration Item: <literal>APT::FTPArchive::Contents</literal>."
1964 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1965 #: apt-ftparchive.1.xml:553
1967 "Select the source override file to use with the <literal>sources</literal> "
1968 "command. Configuration Item: "
1969 "<literal>APT::FTPArchive::SourceOverride</literal>."
1972 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1973 #: apt-ftparchive.1.xml:559
1975 "Make the caching databases read only. Configuration Item: "
1976 "<literal>APT::FTPArchive::ReadOnlyDB</literal>."
1979 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1980 #: apt-ftparchive.1.xml:564
1982 "Accept in the <literal>packages</literal> and <literal>contents</literal> "
1983 "commands only package files matching <literal>*_arch.deb</literal> or "
1984 "<literal>*_all.deb</literal> instead of all package files in the given "
1985 "path. Configuration Item: <literal>APT::FTPArchive::Architecture</literal>."
1988 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1989 #: apt-ftparchive.1.xml:572
1991 "&apt-ftparchive; caches as much as possible of metadata in a cachedb. If "
1992 "packages are recompiled and/or republished with the same version again, this "
1993 "will lead to problems as the now outdated cached metadata like size and "
1994 "checksums will be used. With this option enabled this will no longer happen "
1995 "as it will be checked if the file was changed. Note that this option is set "
1996 "to \"<literal>false</literal>\" by default as it is not recommend to upload "
1997 "multiply versions/builds of a package with the same versionnumber, so in "
1998 "theory nobody will have these problems and therefore all these extra checks "
2002 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2003 #: apt-ftparchive.1.xml:584
2005 "This configuration option defaults to \"<literal>true</literal>\" and should "
2006 "only be set to <literal>\"false\"</literal> if the Archive generated with "
2007 "&apt-ftparchive; also provides <filename>Translation</filename> files. Note "
2008 "that the <filename>Translation-en</filename> master file can only be created "
2009 "in the generate command."
2012 #. type: Content of: <refentry><refsect1><title>
2013 #: apt-ftparchive.1.xml:596 apt.conf.5.xml:1112 apt_preferences.5.xml:545 sources.list.5.xml:211
2017 #. type: Content of: <refentry><refsect1><para><programlisting>
2018 #: apt-ftparchive.1.xml:602
2021 "<command>apt-ftparchive</command> packages "
2022 "<replaceable>directory</replaceable> | <command>gzip</command> > "
2023 "<filename>Packages.gz</filename>\n"
2026 #. type: Content of: <refentry><refsect1><para>
2027 #: apt-ftparchive.1.xml:598
2029 "To create a compressed Packages file for a directory containing binary "
2030 "packages (.deb): <placeholder type=\"programlisting\" id=\"0\"/>"
2033 #. type: Content of: <refentry><refsect1><para>
2034 #: apt-ftparchive.1.xml:612
2036 "<command>apt-ftparchive</command> returns zero on normal operation, decimal "
2040 #. type: Content of: <refentry><refnamediv><refpurpose>
2042 msgid "APT package handling utility -- command-line interface"
2045 #. type: Content of: <refentry><refsect1><para>
2048 "<command>apt-get</command> is the command-line tool for handling packages, "
2049 "and may be considered the user's \"back-end\" to other tools using the APT "
2050 "library. Several \"front-end\" interfaces exist, such as &dselect;, "
2051 "&aptitude;, &synaptic; and &wajig;."
2054 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2057 "<literal>update</literal> is used to resynchronize the package index files "
2058 "from their sources. The indexes of available packages are fetched from the "
2059 "location(s) specified in <filename>/etc/apt/sources.list</filename>. For "
2060 "example, when using a Debian archive, this command retrieves and scans the "
2061 "<filename>Packages.gz</filename> files, so that information about new and "
2062 "updated packages is available. An <literal>update</literal> should always be "
2063 "performed before an <literal>upgrade</literal> or "
2064 "<literal>dist-upgrade</literal>. Please be aware that the overall progress "
2065 "meter will be incorrect as the size of the package files cannot be known in "
2069 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2072 "<literal>upgrade</literal> is used to install the newest versions of all "
2073 "packages currently installed on the system from the sources enumerated in "
2074 "<filename>/etc/apt/sources.list</filename>. Packages currently installed "
2075 "with new versions available are retrieved and upgraded; under no "
2076 "circumstances are currently installed packages removed, or packages not "
2077 "already installed retrieved and installed. New versions of currently "
2078 "installed packages that cannot be upgraded without changing the install "
2079 "status of another package will be left at their current version. An "
2080 "<literal>update</literal> must be performed first so that "
2081 "<command>apt-get</command> knows that new versions of packages are "
2085 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2088 "<literal>dist-upgrade</literal> in addition to performing the function of "
2089 "<literal>upgrade</literal>, also intelligently handles changing dependencies "
2090 "with new versions of packages; <command>apt-get</command> has a \"smart\" "
2091 "conflict resolution system, and it will attempt to upgrade the most "
2092 "important packages at the expense of less important ones if necessary. The "
2093 "<literal>dist-upgrade</literal> command may therefore remove some packages. "
2094 "The <filename>/etc/apt/sources.list</filename> file contains a list of "
2095 "locations from which to retrieve desired package files. See also "
2096 "&apt-preferences; for a mechanism for overriding the general settings for "
2097 "individual packages."
2100 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2103 "<literal>dselect-upgrade</literal> is used in conjunction with the "
2104 "traditional Debian packaging front-end, "
2105 "&dselect;. <literal>dselect-upgrade</literal> follows the changes made by "
2106 "&dselect; to the <literal>Status</literal> field of available packages, and "
2107 "performs the actions necessary to realize that state (for instance, the "
2108 "removal of old and the installation of new packages)."
2111 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2114 "<literal>install</literal> is followed by one or more packages desired for "
2115 "installation or upgrading. Each package is a package name, not a fully "
2116 "qualified filename (for instance, in a Debian system, libc6 would be the "
2117 "argument provided, not <literal>libc6_1.9.6-2.deb</literal>). All packages "
2118 "required by the package(s) specified for installation will also be retrieved "
2119 "and installed. The <filename>/etc/apt/sources.list</filename> file is used "
2120 "to locate the desired packages. If a hyphen is appended to the package name "
2121 "(with no intervening space), the identified package will be removed if it is "
2122 "installed. Similarly a plus sign can be used to designate a package to "
2123 "install. These latter features may be used to override decisions made by "
2124 "apt-get's conflict resolution system."
2127 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2128 #: apt-get.8.xml:116
2130 "A specific version of a package can be selected for installation by "
2131 "following the package name with an equals and the version of the package to "
2132 "select. This will cause that version to be located and selected for "
2133 "install. Alternatively a specific distribution can be selected by following "
2134 "the package name with a slash and the version of the distribution or the "
2135 "Archive name (stable, testing, unstable)."
2138 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2139 #: apt-get.8.xml:123
2141 "Both of the version selection mechanisms can downgrade packages and must be "
2145 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2146 #: apt-get.8.xml:126
2148 "This is also the target to use if you want to upgrade one or more "
2149 "already-installed packages without upgrading every package you have on your "
2150 "system. Unlike the \"upgrade\" target, which installs the newest version of "
2151 "all currently installed packages, \"install\" will install the newest "
2152 "version of only the package(s) specified. Simply provide the name of the "
2153 "package(s) you wish to upgrade, and if a newer version is available, it (and "
2154 "its dependencies, as described above) will be downloaded and installed."
2157 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2158 #: apt-get.8.xml:137
2160 "Finally, the &apt-preferences; mechanism allows you to create an alternative "
2161 "installation policy for individual packages."
2164 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2165 #: apt-get.8.xml:141
2167 "If no package matches the given expression and the expression contains one "
2168 "of '.', '?' or '*' then it is assumed to be a POSIX regular expression, and "
2169 "it is applied to all package names in the database. Any matches are then "
2170 "installed (or removed). Note that matching is done by substring so 'lo.*' "
2171 "matches 'how-lo' and 'lowest'. If this is undesired, anchor the regular "
2172 "expression with a '^' or '$' character, or create a more specific regular "
2176 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2177 #: apt-get.8.xml:151
2179 "<literal>remove</literal> is identical to <literal>install</literal> except "
2180 "that packages are removed instead of installed. Note the removing a package "
2181 "leaves its configuration files in system. If a plus sign is appended to the "
2182 "package name (with no intervening space), the identified package will be "
2183 "installed instead of removed."
2186 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2187 #: apt-get.8.xml:159
2189 "<literal>purge</literal> is identical to <literal>remove</literal> except "
2190 "that packages are removed and purged (any configuration files are deleted "
2194 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2195 #: apt-get.8.xml:164
2197 "<literal>source</literal> causes <command>apt-get</command> to fetch source "
2198 "packages. APT will examine the available packages to decide which source "
2199 "package to fetch. It will then find and download into the current directory "
2200 "the newest available version of that source package while respecting the "
2201 "default release, set with the option "
2202 "<literal>APT::Default-Release</literal>, the <option>-t</option> option or "
2203 "per package with the <literal>pkg/release</literal> syntax, if possible."
2206 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2207 #: apt-get.8.xml:172
2209 "Source packages are tracked separately from binary packages via "
2210 "<literal>deb-src</literal> type lines in the &sources-list; file. This means "
2211 "that you will need to add such a line for each repository you want to get "
2212 "sources from. If you don't do this you will properly get another (newer, "
2213 "older or none) source version than the one you have installed or could "
2217 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2218 #: apt-get.8.xml:179
2220 "If the <option>--compile</option> option is specified then the package will "
2221 "be compiled to a binary .deb using <command>dpkg-buildpackage</command> for "
2222 "the architecture as defined by the <command>--host-architecture</command> "
2223 "option. If <option>--download-only</option> is specified then the source "
2224 "package will not be unpacked."
2227 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2228 #: apt-get.8.xml:186
2230 "A specific source version can be retrieved by postfixing the source name "
2231 "with an equals and then the version to fetch, similar to the mechanism used "
2232 "for the package files. This enables exact matching of the source package "
2233 "name and version, implicitly enabling the "
2234 "<literal>APT::Get::Only-Source</literal> option."
2237 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2238 #: apt-get.8.xml:192
2240 "Note that source packages are not tracked like binary packages, they exist "
2241 "only in the current directory and are similar to downloading source tar "
2245 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2246 #: apt-get.8.xml:198
2248 "<literal>build-dep</literal> causes apt-get to install/remove packages in an "
2249 "attempt to satisfy the build dependencies for a source package. By default "
2250 "the dependencies are satisfied to build the package natively. If desired a "
2251 "host-architecture can be specified with the "
2252 "<option>--host-architecture</option> option instead."
2255 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2256 #: apt-get.8.xml:205
2258 "<literal>check</literal> is a diagnostic tool; it updates the package cache "
2259 "and checks for broken dependencies."
2262 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2263 #: apt-get.8.xml:210
2265 "<literal>download</literal> will download the given binary package into the "
2266 "current directory."
2269 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2270 #: apt-get.8.xml:216
2272 "<literal>clean</literal> clears out the local repository of retrieved "
2273 "package files. It removes everything but the lock file from "
2274 "<filename>&cachedir;/archives/</filename> and "
2275 "<filename>&cachedir;/archives/partial/</filename>. When APT is used as a "
2276 "&dselect; method, <literal>clean</literal> is run automatically. Those who "
2277 "do not use dselect will likely want to run <literal>apt-get clean</literal> "
2278 "from time to time to free up disk space."
2281 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2282 #: apt-get.8.xml:226
2284 "Like <literal>clean</literal>, <literal>autoclean</literal> clears out the "
2285 "local repository of retrieved package files. The difference is that it only "
2286 "removes package files that can no longer be downloaded, and are largely "
2287 "useless. This allows a cache to be maintained over a long period without it "
2288 "growing out of control. The configuration option "
2289 "<literal>APT::Clean-Installed</literal> will prevent installed packages from "
2290 "being erased if it is set to off."
2293 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2294 #: apt-get.8.xml:236
2296 "<literal>autoremove</literal> is used to remove packages that were "
2297 "automatically installed to satisfy dependencies for other packages and are "
2298 "now no longer needed."
2301 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2302 #: apt-get.8.xml:241
2304 "<literal>changelog</literal> downloads a package changelog and displays it "
2305 "through <command>sensible-pager</command>. The server name and base "
2306 "directory is defined in the <literal>APT::Changelogs::Server</literal> "
2307 "variable (e. g. <ulink "
2308 "url=\"http://packages.debian.org/changelogs\">packages.debian.org/changelogs</ulink> "
2309 "for Debian or <ulink "
2310 "url=\"http://changelogs.ubuntu.com/changelogs\">changelogs.ubuntu.com/changelogs</ulink> "
2311 "for Ubuntu). By default it displays the changelog for the version that is "
2312 "installed. However, you can specify the same options as for the "
2313 "<option>install</option> command."
2316 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2317 #: apt-get.8.xml:264
2319 "Do not consider recommended packages as a dependency for installing. "
2320 "Configuration Item: <literal>APT::Install-Recommends</literal>."
2323 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2324 #: apt-get.8.xml:269
2326 "Consider suggested packages as a dependency for installing. Configuration "
2327 "Item: <literal>APT::Install-Suggests</literal>."
2330 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2331 #: apt-get.8.xml:274
2333 "Download only; package files are only retrieved, not unpacked or installed. "
2334 "Configuration Item: <literal>APT::Get::Download-Only</literal>."
2337 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2338 #: apt-get.8.xml:279
2340 "Fix; attempt to correct a system with broken dependencies in place. This "
2341 "option, when used with install/remove, can omit any packages to permit APT "
2342 "to deduce a likely solution. If packages are specified, these have to "
2343 "completely correct the problem. The option is sometimes necessary when "
2344 "running APT for the first time; APT itself does not allow broken package "
2345 "dependencies to exist on a system. It is possible that a system's dependency "
2346 "structure can be so corrupt as to require manual intervention (which usually "
2347 "means using &dselect; or <command>dpkg --remove</command> to eliminate some "
2348 "of the offending packages). Use of this option together with "
2349 "<option>-m</option> may produce an error in some situations. Configuration "
2350 "Item: <literal>APT::Get::Fix-Broken</literal>."
2353 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2354 #: apt-get.8.xml:294
2356 "Ignore missing packages; If packages cannot be retrieved or fail the "
2357 "integrity check after retrieval (corrupted package files), hold back those "
2358 "packages and handle the result. Use of this option together with "
2359 "<option>-f</option> may produce an error in some situations. If a package is "
2360 "selected for installation (particularly if it is mentioned on the command "
2361 "line) and it could not be downloaded then it will be silently held back. "
2362 "Configuration Item: <literal>APT::Get::Fix-Missing</literal>."
2365 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2366 #: apt-get.8.xml:305
2368 "Disables downloading of packages. This is best used with "
2369 "<option>--ignore-missing</option> to force APT to use only the .debs it has "
2370 "already downloaded. Configuration Item: "
2371 "<literal>APT::Get::Download</literal>."
2374 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2375 #: apt-get.8.xml:312
2377 "Quiet; produces output suitable for logging, omitting progress indicators. "
2378 "More q's will produce more quiet up to a maximum of 2. You can also use "
2379 "<option>-q=#</option> to set the quiet level, overriding the configuration "
2380 "file. Note that quiet level 2 implies <option>-y</option>, you should never "
2381 "use -qq without a no-action modifier such as -d, --print-uris or -s as APT "
2382 "may decided to do something you did not expect. Configuration Item: "
2383 "<literal>quiet</literal>."
2386 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2387 #: apt-get.8.xml:327
2389 "No action; perform a simulation of events that would occur but do not "
2390 "actually change the system. Configuration Item: "
2391 "<literal>APT::Get::Simulate</literal>."
2394 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2395 #: apt-get.8.xml:331
2397 "Simulation run as user will deactivate locking "
2398 "(<literal>Debug::NoLocking</literal>) automatic. Also a notice will be "
2399 "displayed indicating that this is only a simulation, if the option "
2400 "<literal>APT::Get::Show-User-Simulation-Note</literal> is set (Default: "
2401 "true). Neither NoLocking nor the notice will be triggered if run as root "
2402 "(root should know what he is doing without further warnings by "
2403 "<literal>apt-get</literal>)."
2406 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2407 #: apt-get.8.xml:337
2409 "Simulate prints out a series of lines each one representing a dpkg "
2410 "operation, Configure (Conf), Remove (Remv), Unpack (Inst). Square brackets "
2411 "indicate broken packages and empty set of square brackets meaning breaks "
2412 "that are of no consequence (rare)."
2415 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2416 #: apt-get.8.xml:346
2418 "Automatic yes to prompts; assume \"yes\" as answer to all prompts and run "
2419 "non-interactively. If an undesirable situation, such as changing a held "
2420 "package, trying to install a unauthenticated package or removing an "
2421 "essential package occurs then <literal>apt-get</literal> will abort. "
2422 "Configuration Item: <literal>APT::Get::Assume-Yes</literal>."
2425 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2426 #: apt-get.8.xml:354
2428 "Automatic \"no\" to all prompts. Configuration Item: "
2429 "<literal>APT::Get::Assume-No</literal>."
2432 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2433 #: apt-get.8.xml:359
2435 "Show upgraded packages; Print out a list of all packages that are to be "
2436 "upgraded. Configuration Item: <literal>APT::Get::Show-Upgraded</literal>."
2439 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2440 #: apt-get.8.xml:365
2442 "Show full versions for upgraded and installed packages. Configuration Item: "
2443 "<literal>APT::Get::Show-Versions</literal>."
2446 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2447 #: apt-get.8.xml:371
2449 "This option controls the architecture packages are built for by "
2450 "<command>apt-get source --compile</command> and how cross-builddependencies "
2451 "are satisfied. By default is it not set which means that the host "
2452 "architecture is the same as the build architecture (which is defined by "
2453 "<literal>APT::Architecture</literal>). Configuration Item: "
2454 "<literal>APT::Get::Host-Architecture</literal>"
2457 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2458 #: apt-get.8.xml:381
2460 "Compile source packages after downloading them. Configuration Item: "
2461 "<literal>APT::Get::Compile</literal>."
2464 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2465 #: apt-get.8.xml:386
2467 "Ignore package Holds; This causes <command>apt-get</command> to ignore a "
2468 "hold placed on a package. This may be useful in conjunction with "
2469 "<literal>dist-upgrade</literal> to override a large number of undesired "
2470 "holds. Configuration Item: <literal>APT::Ignore-Hold</literal>."
2473 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2474 #: apt-get.8.xml:393
2476 "Do not upgrade packages; When used in conjunction with "
2477 "<literal>install</literal>, <literal>no-upgrade</literal> will prevent "
2478 "packages on the command line from being upgraded if they are already "
2479 "installed. Configuration Item: <literal>APT::Get::Upgrade</literal>."
2482 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2483 #: apt-get.8.xml:400
2485 "Do not install new packages; When used in conjunction with "
2486 "<literal>install</literal>, <literal>only-upgrade</literal> will install "
2487 "upgrades for already installed packages only and ignore requests to install "
2488 "new packages. Configuration Item: "
2489 "<literal>APT::Get::Only-Upgrade</literal>."
2492 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2493 #: apt-get.8.xml:408
2495 "Force yes; This is a dangerous option that will cause apt to continue "
2496 "without prompting if it is doing something potentially harmful. It should "
2497 "not be used except in very special situations. Using "
2498 "<literal>force-yes</literal> can potentially destroy your system! "
2499 "Configuration Item: <literal>APT::Get::force-yes</literal>."
2502 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2503 #: apt-get.8.xml:416
2505 "Instead of fetching the files to install their URIs are printed. Each URI "
2506 "will have the path, the destination file name, the size and the expected md5 "
2507 "hash. Note that the file name to write to will not always match the file "
2508 "name on the remote site! This also works with the <literal>source</literal> "
2509 "and <literal>update</literal> commands. When used with the "
2510 "<literal>update</literal> command the MD5 and size are not included, and it "
2511 "is up to the user to decompress any compressed files. Configuration Item: "
2512 "<literal>APT::Get::Print-URIs</literal>."
2515 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2516 #: apt-get.8.xml:427
2518 "Use purge instead of remove for anything that would be removed. An asterisk "
2519 "(\"*\") will be displayed next to packages which are scheduled to be "
2520 "purged. <option>remove --purge</option> is equivalent to the "
2521 "<option>purge</option> command. Configuration Item: "
2522 "<literal>APT::Get::Purge</literal>."
2525 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2526 #: apt-get.8.xml:435
2528 "Re-Install packages that are already installed and at the newest version. "
2529 "Configuration Item: <literal>APT::Get::ReInstall</literal>."
2532 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2533 #: apt-get.8.xml:440
2535 "This option defaults to on, use <literal>--no-list-cleanup</literal> to turn "
2536 "it off. When on <command>apt-get</command> will automatically manage the "
2537 "contents of <filename>&statedir;/lists</filename> to ensure that obsolete "
2538 "files are erased. The only reason to turn it off is if you frequently "
2539 "change your source list. Configuration Item: "
2540 "<literal>APT::Get::List-Cleanup</literal>."
2543 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2544 #: apt-get.8.xml:451
2546 "This option controls the default input to the policy engine, it creates a "
2547 "default pin at priority 990 using the specified release string. This "
2548 "overrides the general settings in "
2549 "<filename>/etc/apt/preferences</filename>. Specifically pinned packages are "
2550 "not affected by the value of this option. In short, this option lets you "
2551 "have simple control over which distribution packages will be retrieved "
2552 "from. Some common examples might be <option>-t '2.1*'</option>, <option>-t "
2553 "unstable</option> or <option>-t sid</option>. Configuration Item: "
2554 "<literal>APT::Default-Release</literal>; see also the &apt-preferences; "
2558 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2559 #: apt-get.8.xml:466
2561 "Only perform operations that are 'trivial'. Logically this can be considered "
2562 "related to <option>--assume-yes</option>, where "
2563 "<option>--assume-yes</option> will answer yes to any prompt, "
2564 "<option>--trivial-only</option> will answer no. Configuration Item: "
2565 "<literal>APT::Get::Trivial-Only</literal>."
2568 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2569 #: apt-get.8.xml:473
2571 "If any packages are to be removed apt-get immediately aborts without "
2572 "prompting. Configuration Item: <literal>APT::Get::Remove</literal>."
2575 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2576 #: apt-get.8.xml:479
2578 "If the command is either <literal>install</literal> or "
2579 "<literal>remove</literal>, then this option acts like running "
2580 "<literal>autoremove</literal> command, removing the unused dependency "
2581 "packages. Configuration Item: <literal>APT::Get::AutomaticRemove</literal>."
2584 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2585 #: apt-get.8.xml:486
2587 "Only has meaning for the <literal>source</literal> and "
2588 "<literal>build-dep</literal> commands. Indicates that the given source "
2589 "names are not to be mapped through the binary table. This means that if "
2590 "this option is specified, these commands will only accept source package "
2591 "names as arguments, rather than accepting binary package names and looking "
2592 "up the corresponding source package. Configuration Item: "
2593 "<literal>APT::Get::Only-Source</literal>."
2596 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2597 #: apt-get.8.xml:497
2599 "Download only the diff, dsc, or tar file of a source archive. Configuration "
2600 "Item: <literal>APT::Get::Diff-Only</literal>, "
2601 "<literal>APT::Get::Dsc-Only</literal>, and "
2602 "<literal>APT::Get::Tar-Only</literal>."
2605 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2606 #: apt-get.8.xml:503
2608 "Only process architecture-dependent build-dependencies. Configuration Item: "
2609 "<literal>APT::Get::Arch-Only</literal>."
2612 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2613 #: apt-get.8.xml:508
2615 "Ignore if packages can't be authenticated and don't prompt about it. This "
2616 "is useful for tools like pbuilder. Configuration Item: "
2617 "<literal>APT::Get::AllowUnauthenticated</literal>."
2620 #. type: Content of: <refentry><refsect1><para>
2621 #: apt-get.8.xml:530
2623 "&apt-cache;, &apt-cdrom;, &dpkg;, &dselect;, &sources-list;, &apt-conf;, "
2624 "&apt-config;, &apt-secure;, The APT User's guide in &guidesdir;, "
2625 "&apt-preferences;, the APT Howto."
2628 #. type: Content of: <refentry><refsect1><para>
2629 #: apt-get.8.xml:536
2631 "<command>apt-get</command> returns zero on normal operation, decimal 100 on "
2635 #. type: Content of: <refentry><refnamediv><refpurpose>
2637 msgid "APT key management utility"
2640 #. type: Content of: <refentry><refsect1><para>
2643 "<command>apt-key</command> is used to manage the list of keys used by apt to "
2644 "authenticate packages. Packages which have been authenticated using these "
2645 "keys will be considered trusted."
2648 #. type: Content of: <refentry><refsect1><title>
2653 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2656 "Add a new key to the list of trusted keys. The key is read from the "
2657 "filename given with the parameter &synopsis-param-filename; or if the "
2658 "filename is <literal>-</literal> from standard input."
2661 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2663 msgid "Remove a key from the list of trusted keys."
2666 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2668 msgid "Output the key &synopsis-param-keyid; to standard output."
2671 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2673 msgid "Output all trusted keys to standard output."
2676 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2678 msgid "List trusted keys."
2681 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2682 #: apt-key.8.xml:107
2683 msgid "List fingerprints of trusted keys."
2686 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2687 #: apt-key.8.xml:118
2689 "Pass advanced options to gpg. With adv --recv-key you can download the "
2693 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2694 #: apt-key.8.xml:130
2696 "Update the local keyring with the archive keyring and remove from the local "
2697 "keyring the archive keys which are no longer valid. The archive keyring is "
2698 "shipped in the <literal>archive-keyring</literal> package of your "
2699 "distribution, e.g. the <literal>debian-archive-keyring</literal> package in "
2703 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2704 #: apt-key.8.xml:144
2706 "Work similar to the <command>update</command> command above, but get the "
2707 "archive keyring from an URI instead and validate it against a master key. "
2708 "This requires an installed &wget; and an APT build configured to have a "
2709 "server to fetch from and a master keyring to validate. APT in Debian does "
2710 "not support this command and relies on <command>update</command> instead, "
2711 "but Ubuntu's APT does."
2714 #. type: Content of: <refentry><refsect1><para>
2715 #: apt-key.8.xml:161
2717 "Note that options need to be defined before the commands described in the "
2721 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2722 #: apt-key.8.xml:164
2724 "With this option it is possible to specify a specific keyring file the "
2725 "command should operate on. The default is that a command is executed on the "
2726 "<filename>trusted.gpg</filename> file as well as on all parts in the "
2727 "<filename>trusted.gpg.d</filename> directory, though "
2728 "<filename>trusted.gpg</filename> is the primary keyring which means that "
2729 "e.g. new keys are added to this one."
2732 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2733 #: apt-key.8.xml:179
2734 msgid "<filename>/etc/apt/trustdb.gpg</filename>"
2737 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2738 #: apt-key.8.xml:180
2739 msgid "Local trust database of archive keys."
2742 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2743 #: apt-key.8.xml:183
2744 msgid "<filename>/usr/share/keyrings/debian-archive-keyring.gpg</filename>"
2747 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2748 #: apt-key.8.xml:184
2749 msgid "Keyring of Debian archive trusted keys."
2752 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2753 #: apt-key.8.xml:187
2754 msgid "<filename>/usr/share/keyrings/debian-archive-removed-keys.gpg</filename>"
2757 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2758 #: apt-key.8.xml:188
2759 msgid "Keyring of Debian archive removed trusted keys."
2762 #. type: Content of: <refentry><refsect1><para>
2763 #: apt-key.8.xml:197
2764 msgid "&apt-get;, &apt-secure;"
2767 #. type: Content of: <refentry><refnamediv><refpurpose>
2768 #: apt-mark.8.xml:33
2769 msgid "mark/unmark a package as being automatically-installed"
2772 #. type: Content of: <refentry><refsect1><para>
2773 #: apt-mark.8.xml:39
2775 "<command>apt-mark</command> will change whether a package has been marked as "
2776 "being automatically installed."
2779 #. type: Content of: <refentry><refsect1><para>
2780 #: apt-mark.8.xml:43
2782 "When you request that a package is installed, and as a result other packages "
2783 "are installed to satisfy its dependencies, the dependencies are marked as "
2784 "being automatically installed. Once these automatically installed packages "
2785 "are no longer depended on by any manually installed packages, they will be "
2786 "removed by e.g. <command>apt-get</command> or <command>aptitude</command>."
2789 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2790 #: apt-mark.8.xml:52
2792 "<literal>auto</literal> is used to mark a package as being automatically "
2793 "installed, which will cause the package to be removed when no more manually "
2794 "installed packages depend on this package."
2797 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2798 #: apt-mark.8.xml:60
2800 "<literal>manual</literal> is used to mark a package as being manually "
2801 "installed, which will prevent the package from being automatically removed "
2802 "if no other packages depend on it."
2805 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2806 #: apt-mark.8.xml:68
2808 "<literal>hold</literal> is used to mark a package as hold back, which will "
2809 "prevent the package from being automatically installed, upgraded or "
2810 "removed. The command is only a wrapper around <command>dpkg "
2811 "--set-selections</command> and the state is therefore maintained by &dpkg; "
2812 "and not effected by the <option>--filename</option> option."
2815 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2816 #: apt-mark.8.xml:78
2818 "<literal>unhold</literal> is used to cancel a previously set hold on a "
2819 "package to allow all actions again."
2822 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2823 #: apt-mark.8.xml:84
2825 "<literal>showauto</literal> is used to print a list of automatically "
2826 "installed packages with each package on a new line. All automatically "
2827 "installed packages will be listed if no package is given. If packages are "
2828 "given only those which are automatically installed will be shown."
2831 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2832 #: apt-mark.8.xml:92
2834 "<literal>showmanual</literal> can be used in the same way as "
2835 "<literal>showauto</literal> except that it will print a list of manually "
2836 "installed packages instead."
2839 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2840 #: apt-mark.8.xml:99
2842 "<literal>showhold</literal> is used to print a list of packages on hold in "
2843 "the same way as for the other show commands."
2846 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2847 #: apt-mark.8.xml:115
2849 "Read/Write package stats from the filename given with the parameter "
2850 "&synopsis-param-filename; instead of from the default location, which is "
2851 "<filename>extended_status</filename> in the directory defined by the "
2852 "Configuration Item: <literal>Dir::State</literal>."
2855 #. type: Content of: <refentry><refsect1><para>
2856 #: apt-mark.8.xml:136
2858 "<command>apt-mark</command> returns zero on normal operation, non-zero on "
2862 #. type: Content of: <refentry><refnamediv><refpurpose>
2863 #: apt-secure.8.xml:47
2864 msgid "Archive authentication support for APT"
2867 #. type: Content of: <refentry><refsect1><para>
2868 #: apt-secure.8.xml:52
2870 "Starting with version 0.6, <command>apt</command> contains code that does "
2871 "signature checking of the Release file for all archives. This ensures that "
2872 "packages in the archive can't be modified by people who have no access to "
2873 "the Release file signing key."
2876 #. type: Content of: <refentry><refsect1><para>
2877 #: apt-secure.8.xml:60
2879 "If a package comes from a archive without a signature or with a signature "
2880 "that apt does not have a key for that package is considered untrusted and "
2881 "installing it will result in a big warning. <command>apt-get</command> will "
2882 "currently only warn for unsigned archives, future releases might force all "
2883 "sources to be verified before downloading packages from them."
2886 #. type: Content of: <refentry><refsect1><para>
2887 #: apt-secure.8.xml:69
2889 "The package frontends &apt-get;, &aptitude; and &synaptic; support this new "
2890 "authentication feature."
2893 #. type: Content of: <refentry><refsect1><title>
2894 #: apt-secure.8.xml:74
2895 msgid "Trusted archives"
2898 #. type: Content of: <refentry><refsect1><para>
2899 #: apt-secure.8.xml:77
2901 "The chain of trust from an apt archive to the end user is made up of "
2902 "different steps. <command>apt-secure</command> is the last step in this "
2903 "chain, trusting an archive does not mean that the packages that you trust it "
2904 "do not contain malicious code but means that you trust the archive "
2905 "maintainer. It's the archive maintainer responsibility to ensure that the "
2906 "archive integrity is correct."
2909 #. type: Content of: <refentry><refsect1><para>
2910 #: apt-secure.8.xml:85
2912 "apt-secure does not review signatures at a package level. If you require "
2913 "tools to do this you should look at <command>debsig-verify</command> and "
2914 "<command>debsign</command> (provided in the debsig-verify and devscripts "
2915 "packages respectively)."
2918 #. type: Content of: <refentry><refsect1><para>
2919 #: apt-secure.8.xml:92
2921 "The chain of trust in Debian starts when a maintainer uploads a new package "
2922 "or a new version of a package to the Debian archive. This upload in order to "
2923 "become effective needs to be signed by a key of a maintainer within the "
2924 "Debian maintainer's keyring (available in the debian-keyring "
2925 "package). Maintainer's keys are signed by other maintainers following "
2926 "pre-established procedures to ensure the identity of the key holder."
2929 #. type: Content of: <refentry><refsect1><para>
2930 #: apt-secure.8.xml:102
2932 "Once the uploaded package is verified and included in the archive, the "
2933 "maintainer signature is stripped off, an MD5 sum of the package is computed "
2934 "and put in the Packages file. The MD5 sum of all of the packages files are "
2935 "then computed and put into the Release file. The Release file is then signed "
2936 "by the archive key (which is created once a year) and distributed through "
2937 "the FTP server. This key is also on the Debian keyring."
2940 #. type: Content of: <refentry><refsect1><para>
2941 #: apt-secure.8.xml:112
2943 "Any end user can check the signature of the Release file, extract the MD5 "
2944 "sum of a package from it and compare it with the MD5 sum of the package he "
2945 "downloaded. Prior to version 0.6 only the MD5 sum of the downloaded Debian "
2946 "package was checked. Now both the MD5 sum and the signature of the Release "
2950 #. type: Content of: <refentry><refsect1><para>
2951 #: apt-secure.8.xml:119
2953 "Notice that this is distinct from checking signatures on a per package "
2954 "basis. It is designed to prevent two possible attacks:"
2957 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2958 #: apt-secure.8.xml:124
2960 "<literal>Network \"man in the middle\" attacks</literal>. Without signature "
2961 "checking, a malicious agent can introduce himself in the package download "
2962 "process and provide malicious software either by controlling a network "
2963 "element (router, switch, etc.) or by redirecting traffic to a rogue server "
2964 "(through arp or DNS spoofing attacks)."
2967 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2968 #: apt-secure.8.xml:132
2970 "<literal>Mirror network compromise</literal>. Without signature checking, a "
2971 "malicious agent can compromise a mirror host and modify the files in it to "
2972 "propagate malicious software to all users downloading packages from that "
2976 #. type: Content of: <refentry><refsect1><para>
2977 #: apt-secure.8.xml:139
2979 "However, it does not defend against a compromise of the Debian master server "
2980 "itself (which signs the packages) or against a compromise of the key used to "
2981 "sign the Release files. In any case, this mechanism can complement a "
2982 "per-package signature."
2985 #. type: Content of: <refentry><refsect1><title>
2986 #: apt-secure.8.xml:145
2987 msgid "User configuration"
2990 #. type: Content of: <refentry><refsect1><para>
2991 #: apt-secure.8.xml:147
2993 "<command>apt-key</command> is the program that manages the list of keys used "
2994 "by apt. It can be used to add or remove keys although an installation of "
2995 "this release will automatically provide the default Debian archive signing "
2996 "keys used in the Debian package repositories."
2999 #. type: Content of: <refentry><refsect1><para>
3000 #: apt-secure.8.xml:154
3002 "In order to add a new key you need to first download it (you should make "
3003 "sure you are using a trusted communication channel when retrieving it), add "
3004 "it with <command>apt-key</command> and then run <command>apt-get "
3005 "update</command> so that apt can download and verify the "
3006 "<filename>InRelease</filename> or <filename>Release.gpg</filename> files "
3007 "from the archives you have configured."
3010 #. type: Content of: <refentry><refsect1><title>
3011 #: apt-secure.8.xml:163
3012 msgid "Archive configuration"
3015 #. type: Content of: <refentry><refsect1><para>
3016 #: apt-secure.8.xml:165
3018 "If you want to provide archive signatures in an archive under your "
3019 "maintenance you have to:"
3022 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
3023 #: apt-secure.8.xml:170
3025 "<emphasis>Create a toplevel Release file</emphasis>, if it does not exist "
3026 "already. You can do this by running <command>apt-ftparchive "
3027 "release</command> (provided in apt-utils)."
3030 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
3031 #: apt-secure.8.xml:175
3033 "<emphasis>Sign it</emphasis>. You can do this by running <command>gpg "
3034 "--clearsign -o InRelease Release</command> and <command>gpg -abs -o "
3035 "Release.gpg Release</command>."
3038 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
3039 #: apt-secure.8.xml:179
3041 "<emphasis>Publish the key fingerprint</emphasis>, that way your users will "
3042 "know what key they need to import in order to authenticate the files in the "
3046 #. type: Content of: <refentry><refsect1><para>
3047 #: apt-secure.8.xml:186
3049 "Whenever the contents of the archive changes (new packages are added or "
3050 "removed) the archive maintainer has to follow the first two steps previously "
3054 #. type: Content of: <refentry><refsect1><para>
3055 #: apt-secure.8.xml:194
3057 "&apt-conf;, &apt-get;, &sources-list;, &apt-key;, &apt-ftparchive;, "
3058 "&debsign; &debsig-verify;, &gpg;"
3061 #. type: Content of: <refentry><refsect1><para>
3062 #: apt-secure.8.xml:198
3064 "For more background information you might want to review the <ulink "
3065 "url=\"http://www.debian.org/doc/manuals/securing-debian-howto/ch7\">Debian "
3066 "Security Infrastructure</ulink> chapter of the Securing Debian Manual "
3067 "(available also in the harden-doc package) and the <ulink "
3068 "url=\"http://www.cryptnet.net/fdp/crypto/strong_distro.html\" >Strong "
3069 "Distribution HOWTO</ulink> by V. Alex Brennen."
3072 #. type: Content of: <refentry><refsect1><title>
3073 #: apt-secure.8.xml:211
3074 msgid "Manpage Authors"
3077 #. type: Content of: <refentry><refsect1><para>
3078 #: apt-secure.8.xml:213
3080 "This man-page is based on the work of Javier Fernández-Sanguino Peña, Isaac "
3081 "Jones, Colin Walters, Florian Weimer and Michael Vogt."
3084 #. type: Content of: <refentry><refnamediv><refpurpose>
3085 #: apt-sortpkgs.1.xml:33
3086 msgid "Utility to sort package index files"
3089 #. type: Content of: <refentry><refsect1><para>
3090 #: apt-sortpkgs.1.xml:39
3092 "<command>apt-sortpkgs</command> will take an index file (Source index or "
3093 "Package index) and sort the records so that they are ordered by the package "
3094 "name. It will also sort the internal fields of each record according to the "
3095 "internal sorting rules."
3098 #. type: Content of: <refentry><refsect1><para>
3099 #: apt-sortpkgs.1.xml:45
3100 msgid "All output is sent to stdout, the input must be a seekable file."
3103 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3104 #: apt-sortpkgs.1.xml:54
3106 "Use Source index field ordering. Configuration Item: "
3107 "<literal>APT::SortPkgs::Source</literal>."
3110 #. type: Content of: <refentry><refsect1><para>
3111 #: apt-sortpkgs.1.xml:68
3113 "<command>apt-sortpkgs</command> returns zero on normal operation, decimal "
3117 #. type: Content of: <refentry><refentryinfo><author><contrib>
3118 #: apt.conf.5.xml:20
3119 msgid "Initial documentation of Debug::*."
3122 #. type: Content of: <refentry><refentryinfo><author><email>
3123 #: apt.conf.5.xml:21
3124 msgid "dburrows@debian.org"
3127 #. type: Content of: <refentry><refmeta><manvolnum>
3128 #: apt.conf.5.xml:31 apt_preferences.5.xml:25 sources.list.5.xml:26
3132 #. type: Content of: <refentry><refnamediv><refpurpose>
3133 #: apt.conf.5.xml:38
3134 msgid "Configuration file for APT"
3137 #. type: Content of: <refentry><refsect1><para>
3138 #: apt.conf.5.xml:42
3140 "<filename>apt.conf</filename> is the main configuration file for the APT "
3141 "suite of tools, but by far not the only place changes to options can be "
3142 "made. All tools therefore share the configuration files and also use a "
3143 "common command line parser to provide a uniform environment."
3146 #. type: Content of: <refentry><refsect1><orderedlist><para>
3147 #: apt.conf.5.xml:47
3149 "When an APT tool starts up it will read the configuration files in the "
3153 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
3154 #: apt.conf.5.xml:49
3156 "the file specified by the <envar>APT_CONFIG</envar> environment variable (if "
3160 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
3161 #: apt.conf.5.xml:51
3163 "all files in <literal>Dir::Etc::Parts</literal> in alphanumeric ascending "
3164 "order which have either no or \"<literal>conf</literal>\" as filename "
3165 "extension and which only contain alphanumeric, hyphen (-), underscore (_) "
3166 "and period (.) characters. Otherwise APT will print a notice that it has "
3167 "ignored a file if the file doesn't match a pattern in the "
3168 "<literal>Dir::Ignore-Files-Silently</literal> configuration list - in this "
3169 "case it will be silently ignored."
3172 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
3173 #: apt.conf.5.xml:58
3174 msgid "the main configuration file specified by <literal>Dir::Etc::main</literal>"
3177 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
3178 #: apt.conf.5.xml:60
3180 "the command line options are applied to override the configuration "
3181 "directives or to load even more configuration files."
3184 #. type: Content of: <refentry><refsect1><title>
3185 #: apt.conf.5.xml:64
3189 #. type: Content of: <refentry><refsect1><para>
3190 #: apt.conf.5.xml:65
3192 "The configuration file is organized in a tree with options organized into "
3193 "functional groups. Option specification is given with a double colon "
3194 "notation, for instance <literal>APT::Get::Assume-Yes</literal> is an option "
3195 "within the APT tool group, for the Get tool. Options do not inherit from "
3196 "their parent groups."
3199 #. type: Content of: <refentry><refsect1><para>
3200 #: apt.conf.5.xml:71
3202 "Syntactically the configuration language is modeled after what the ISC tools "
3203 "such as bind and dhcp use. Lines starting with <literal>//</literal> are "
3204 "treated as comments (ignored), as well as all text between "
3205 "<literal>/*</literal> and <literal>*/</literal>, just like C/C++ comments. "
3206 "Each line is of the form <literal>APT::Get::Assume-Yes "
3207 "\"true\";</literal>. The trailing semicolon and the quotes are required. The "
3208 "value must be on one line, and there is no kind of string concatenation. It "
3209 "must not include inside quotes. The behavior of the backslash \"\\\" and "
3210 "escaped characters inside a value is undefined and it should not be used. An "
3211 "option name may include alphanumerical characters and the \"/-:._+\" "
3212 "characters. A new scope can be opened with curly braces, like:"
3215 #. type: Content of: <refentry><refsect1><informalexample><programlisting>
3216 #: apt.conf.5.xml:85
3221 " Assume-Yes \"true\";\n"
3222 " Fix-Broken \"true\";\n"
3227 #. type: Content of: <refentry><refsect1><para>
3228 #: apt.conf.5.xml:93
3230 "with newlines placed to make it more readable. Lists can be created by "
3231 "opening a scope and including a single string enclosed in quotes followed by "
3232 "a semicolon. Multiple entries can be included, each separated by a "
3236 #. type: Content of: <refentry><refsect1><informalexample><programlisting>
3237 #: apt.conf.5.xml:98
3239 msgid "DPkg::Pre-Install-Pkgs {\"/usr/sbin/dpkg-preconfigure --apt\";};\n"
3242 #. type: Content of: <refentry><refsect1><para>
3243 #: apt.conf.5.xml:101
3245 "In general the sample configuration file in "
3246 "<filename>&docdir;examples/apt.conf</filename> &configureindex; is a good "
3247 "guide for how it should look."
3250 #. type: Content of: <refentry><refsect1><para>
3251 #: apt.conf.5.xml:105
3253 "The names of the configuration items are not case-sensitive. So in the "
3254 "previous example you could use <literal>dpkg::pre-install-pkgs</literal>."
3257 #. type: Content of: <refentry><refsect1><para>
3258 #: apt.conf.5.xml:108
3260 "Names for the configuration items are optional if a list is defined as it "
3261 "can be see in the <literal>DPkg::Pre-Install-Pkgs</literal> example "
3262 "above. If you don't specify a name a new entry will simply add a new option "
3263 "to the list. If you specify a name you can override the option as every "
3264 "other option by reassigning a new value to the option."
3267 #. type: Content of: <refentry><refsect1><para>
3268 #: apt.conf.5.xml:113
3270 "Two specials are allowed, <literal>#include</literal> (which is deprecated "
3271 "and not supported by alternative implementations) and "
3272 "<literal>#clear</literal>: <literal>#include</literal> will include the "
3273 "given file, unless the filename ends in a slash, then the whole directory is "
3274 "included. <literal>#clear</literal> is used to erase a part of the "
3275 "configuration tree. The specified element and all its descendants are "
3276 "erased. (Note that these lines also need to end with a semicolon.)"
3279 #. type: Content of: <refentry><refsect1><para>
3280 #: apt.conf.5.xml:121
3282 "The #clear command is the only way to delete a list or a complete scope. "
3283 "Reopening a scope or the ::-style described below will "
3284 "<emphasis>not</emphasis> override previously written entries. Only options "
3285 "can be overridden by addressing a new value to it - lists and scopes can't "
3286 "be overridden, only cleared."
3289 #. type: Content of: <refentry><refsect1><para>
3290 #: apt.conf.5.xml:126
3292 "All of the APT tools take a -o option which allows an arbitrary "
3293 "configuration directive to be specified on the command line. The syntax is a "
3294 "full option name (<literal>APT::Get::Assume-Yes</literal> for instance) "
3295 "followed by an equals sign then the new value of the option. To append a new "
3296 "element to a list, add a trailing :: to the name of the list. (As you might "
3297 "suspect: The scope syntax can't be used on the command line.)"
3300 #. type: Content of: <refentry><refsect1><para>
3301 #: apt.conf.5.xml:133
3303 "Note that you can use :: only for appending one item per line to a list and "
3304 "that you should not use it in combination with the scope syntax. (The scope "
3305 "syntax implicit insert ::) Using both syntaxes together will trigger a bug "
3306 "which some users unfortunately depend on: An option with the unusual name "
3307 "\"<literal>::</literal>\" which acts like every other option with a "
3308 "name. These introduces many problems including that a user who writes "
3309 "multiple lines in this <emphasis>wrong</emphasis> syntax in the hope to "
3310 "append to a list will gain the opposite as only the last assignment for this "
3311 "option \"<literal>::</literal>\" will be used. Upcoming APT versions will "
3312 "raise errors and will stop working if they encounter this misuse, so please "
3313 "correct such statements now as long as APT doesn't complain explicit about "
3317 #. type: Content of: <refentry><refsect1><title>
3318 #: apt.conf.5.xml:145
3319 msgid "The APT Group"
3322 #. type: Content of: <refentry><refsect1><para>
3323 #: apt.conf.5.xml:146
3325 "This group of options controls general APT behavior as well as holding the "
3326 "options for all of the tools."
3329 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3330 #: apt.conf.5.xml:151
3332 "System Architecture; sets the architecture to use when fetching files and "
3333 "parsing package lists. The internal default is the architecture apt was "
3337 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3338 #: apt.conf.5.xml:157
3340 "All Architectures the system supports. Processors implementing the "
3341 "<literal>amd64</literal> (also called <literal>x86-64</literal>) instruction "
3342 "set are e.g. also able to execute binaries compiled for the "
3343 "<literal>i386</literal> (<literal>x86</literal>) instruction set; This list "
3344 "is use when fetching files and parsing package lists. The internal default "
3345 "is always the native architecture (<literal>APT::Architecture</literal>) "
3346 "and all foreign architectures it can retrieve by calling <command>dpkg "
3347 "--print-foreign-architectures</command>."
3350 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3351 #: apt.conf.5.xml:167
3353 "Default release to install packages from if more than one version "
3354 "available. Contains release name, codename or release version. Examples: "
3355 "'stable', 'testing', 'unstable', '&stable-codename;', '&testing-codename;', "
3356 "'4.0', '5.0*'. See also &apt-preferences;."
3359 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3360 #: apt.conf.5.xml:173
3362 "Ignore Held packages; This global option causes the problem resolver to "
3363 "ignore held packages in its decision making."
3366 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3367 #: apt.conf.5.xml:178
3369 "Defaults to on. When turned on the autoclean feature will remove any "
3370 "packages which can no longer be downloaded from the cache. If turned off "
3371 "then packages that are locally installed are also excluded from cleaning - "
3372 "but note that APT provides no direct means to reinstall them."
3375 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3376 #: apt.conf.5.xml:185
3378 "Defaults to on which will cause APT to install essential and important "
3379 "packages as fast as possible in the install/upgrade operation. This is done "
3380 "to limit the effect of a failing &dpkg; call: If this option is disabled APT "
3381 "does treat an important package in the same way as an extra package: Between "
3382 "the unpacking of the important package A and his configuration can then be "
3383 "many other unpack or configuration calls, e.g. for package B which has no "
3384 "relation to A, but causes the dpkg call to fail (e.g. because maintainer "
3385 "script of package B generates an error) which results in a system state in "
3386 "which package A is unpacked but unconfigured - each package depending on A "
3387 "is now no longer guaranteed to work as their dependency on A is not longer "
3388 "satisfied. The immediate configuration marker is also applied to all "
3389 "dependencies which can generate a problem if the dependencies e.g. form a "
3390 "circle as a dependency with the immediate flag is comparable with a "
3391 "Pre-Dependency. So in theory it is possible that APT encounters a situation "
3392 "in which it is unable to perform immediate configuration, errors out and "
3393 "refers to this option so the user can deactivate the immediate configuration "
3394 "temporarily to be able to perform an install/upgrade again. Note the use of "
3395 "the word \"theory\" here as this problem was only encountered by now in real "
3396 "world a few times in non-stable distribution versions and was caused by "
3397 "wrong dependencies of the package in question or by a system in an already "
3398 "broken state, so you should not blindly disable this option as the mentioned "
3399 "scenario above is not the only problem immediate configuration can help to "
3400 "prevent in the first place. Before a big operation like "
3401 "<literal>dist-upgrade</literal> is run with this option disabled it should "
3402 "be tried to explicitly <literal>install</literal> the package APT is unable "
3403 "to configure immediately, but please make sure to report your problem also "
3404 "to your distribution and to the APT team with the buglink below so they can "
3405 "work on improving or correcting the upgrade process."
3408 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3409 #: apt.conf.5.xml:208
3411 "Never Enable this option unless you -really- know what you are doing. It "
3412 "permits APT to temporarily remove an essential package to break a "
3413 "Conflicts/Conflicts or Conflicts/Pre-Depend loop between two essential "
3414 "packages. SUCH A LOOP SHOULD NEVER EXIST AND IS A GRAVE BUG. This option "
3415 "will work if the essential packages are not tar, gzip, libc, dpkg, bash or "
3416 "anything that those packages depend on."
3419 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3420 #: apt.conf.5.xml:217
3422 "APT uses since version 0.7.26 a resizable memory mapped cache file to store "
3423 "the 'available' information. <literal>Cache-Start</literal> acts as a hint "
3424 "to which size the Cache will grow and is therefore the amount of memory APT "
3425 "will request at startup. The default value is 20971520 bytes (~20 MB). Note "
3426 "that this amount of space needs to be available for APT otherwise it will "
3427 "likely fail ungracefully, so for memory restricted devices this value should "
3428 "be lowered while on systems with a lot of configured sources it should be "
3429 "increased. <literal>Cache-Grow</literal> defines in bytes with the default "
3430 "of 1048576 (~1 MB) how much the Cache size will be increased in the event "
3431 "the space defined by <literal>Cache-Start</literal> is not enough. These "
3432 "value will be applied again and again until either the cache is big enough "
3433 "to store all information or the size of the cache reaches the "
3434 "<literal>Cache-Limit</literal>. The default of "
3435 "<literal>Cache-Limit</literal> is 0 which stands for no limit. If "
3436 "<literal>Cache-Grow</literal> is set to 0 the automatic grow of the cache is "
3440 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3441 #: apt.conf.5.xml:233
3442 msgid "Defines which package(s) are considered essential build dependencies."
3445 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3446 #: apt.conf.5.xml:237
3448 "The Get subsection controls the &apt-get; tool, please see its documentation "
3449 "for more information about the options here."
3452 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3453 #: apt.conf.5.xml:242
3455 "The Cache subsection controls the &apt-cache; tool, please see its "
3456 "documentation for more information about the options here."
3459 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3460 #: apt.conf.5.xml:247
3462 "The CDROM subsection controls the &apt-cdrom; tool, please see its "
3463 "documentation for more information about the options here."
3466 #. type: Content of: <refentry><refsect1><title>
3467 #: apt.conf.5.xml:253
3468 msgid "The Acquire Group"
3471 #. type: Content of: <refentry><refsect1><para>
3472 #: apt.conf.5.xml:254
3474 "The <literal>Acquire</literal> group of options controls the download of "
3475 "packages and the URI handlers."
3478 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3479 #: apt.conf.5.xml:259
3481 "Security related option defaulting to true as an expiring validation for a "
3482 "Release file prevents longtime replay attacks and can e.g. also help users "
3483 "to identify no longer updated mirrors - but the feature depends on the "
3484 "correctness of the time on the user system. Archive maintainers are "
3485 "encouraged to create Release files with the <literal>Valid-Until</literal> "
3486 "header, but if they don't or a stricter value is volitional the following "
3487 "<literal>Max-ValidTime</literal> option can be used."
3490 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3491 #: apt.conf.5.xml:270
3493 "Seconds the Release file should be considered valid after it was created "
3494 "(indicated by the <literal>Date</literal> header). If the Release file "
3495 "itself includes a <literal>Valid-Until</literal> header the earlier date of "
3496 "the two is used as the expiration date. The default value is "
3497 "<literal>0</literal> which stands for \"for ever valid\". Archive specific "
3498 "settings can be made by appending the label of the archive to the option "
3502 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3503 #: apt.conf.5.xml:281
3505 "Minimum of seconds the Release file should be considered valid after it was "
3506 "created (indicated by the <literal>Date</literal> header). Use this if you "
3507 "need to use a seldomly updated (local) mirror of a more regular updated "
3508 "archive with a <literal>Valid-Until</literal> header instead of completely "
3509 "disabling the expiration date checking. Archive specific settings can and "
3510 "should be used by appending the label of the archive to the option name."
3513 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3514 #: apt.conf.5.xml:292
3516 "Try to download deltas called <literal>PDiffs</literal> for Packages or "
3517 "Sources files instead of downloading whole ones. True by default."
3520 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3521 #: apt.conf.5.xml:295
3523 "Two sub-options to limit the use of PDiffs are also available: With "
3524 "<literal>FileLimit</literal> can be specified how many PDiff files are "
3525 "downloaded at most to update a file. <literal>SizeLimit</literal> on the "
3526 "other hand is the maximum percentage of the size of all patches compared to "
3527 "the size of the targeted file. If one of these limits is exceeded the "
3528 "complete file is downloaded instead of the patches."
3531 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3532 #: apt.conf.5.xml:305
3534 "Queuing mode; <literal>Queue-Mode</literal> can be one of "
3535 "<literal>host</literal> or <literal>access</literal> which determines how "
3536 "APT parallelizes outgoing connections. <literal>host</literal> means that "
3537 "one connection per target host will be opened, <literal>access</literal> "
3538 "means that one connection per URI type will be opened."
3541 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3542 #: apt.conf.5.xml:313
3544 "Number of retries to perform. If this is non-zero APT will retry failed "
3545 "files the given number of times."
3548 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3549 #: apt.conf.5.xml:318
3551 "Use symlinks for source archives. If set to true then source archives will "
3552 "be symlinked when possible instead of copying. True is the default."
3555 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3556 #: apt.conf.5.xml:323
3558 "HTTP URIs; http::Proxy is the default http proxy to use. It is in the "
3559 "standard form of <literal>http://[[user][:pass]@]host[:port]/</literal>. Per "
3560 "host proxies can also be specified by using the form "
3561 "<literal>http::Proxy::<host></literal> with the special keyword "
3562 "<literal>DIRECT</literal> meaning to use no proxies. If no one of the above "
3563 "settings is specified, <envar>http_proxy</envar> environment variable will "
3567 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3568 #: apt.conf.5.xml:331
3570 "Three settings are provided for cache control with HTTP/1.1 compliant proxy "
3571 "caches. <literal>No-Cache</literal> tells the proxy to not use its cached "
3572 "response under any circumstances, <literal>Max-Age</literal> is sent only "
3573 "for index files and tells the cache to refresh its object if it is older "
3574 "than the given number of seconds. Debian updates its index files daily so "
3575 "the default is 1 day. <literal>No-Store</literal> specifies that the cache "
3576 "should never store this request, it is only set for archive files. This may "
3577 "be useful to prevent polluting a proxy cache with very large .deb "
3578 "files. Note: Squid 2.0.2 does not support any of these options."
3581 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3582 #: apt.conf.5.xml:341 apt.conf.5.xml:407
3584 "The option <literal>timeout</literal> sets the timeout timer used by the "
3585 "method, this applies to all things including connection timeout and data "
3589 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3590 #: apt.conf.5.xml:344
3592 "The setting <literal>Acquire::http::Pipeline-Depth</literal> can be used to "
3593 "enabled HTTP pipeling (RFC 2616 section 8.1.2.2) which can be beneficial "
3594 "e.g. on high-latency connections. It specifies how many requests are send in "
3595 "a pipeline. Previous APT versions had a default of 10 for this setting, but "
3596 "the default value is now 0 (= disabled) to avoid problems with the "
3597 "ever-growing amount of webservers and proxies which choose to not conform to "
3598 "the HTTP/1.1 specification."
3601 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3602 #: apt.conf.5.xml:351
3604 "<literal>Acquire::http::AllowRedirect</literal> controls if APT will follow "
3605 "redirects, which is enabled by default."
3608 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3609 #: apt.conf.5.xml:354
3611 "The used bandwidth can be limited with "
3612 "<literal>Acquire::http::Dl-Limit</literal> which accepts integer values in "
3613 "kilobyte. The default value is 0 which deactivates the limit and tries uses "
3614 "as much as possible of the bandwidth (Note that this option implicit "
3615 "deactivates the download from multiple servers at the same time.)"
3618 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3619 #: apt.conf.5.xml:359
3621 "<literal>Acquire::http::User-Agent</literal> can be used to set a different "
3622 "User-Agent for the http download method as some proxies allow access for "
3623 "clients only if the client uses a known identifier."
3626 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3627 #: apt.conf.5.xml:366
3629 "HTTPS URIs. Cache-control, Timeout, AllowRedirect, Dl-Limit and proxy "
3630 "options are the same as for <literal>http</literal> method and will also "
3631 "default to the options from the <literal>http</literal> method if they are "
3632 "not explicitly set for https. <literal>Pipeline-Depth</literal> option is "
3633 "not supported yet."
3636 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3637 #: apt.conf.5.xml:372
3639 "<literal>CaInfo</literal> suboption specifies place of file that holds info "
3640 "about trusted certificates. <literal><host>::CaInfo</literal> is "
3641 "corresponding per-host option. <literal>Verify-Peer</literal> boolean "
3642 "suboption determines whether verify server's host certificate against "
3643 "trusted certificates or not. <literal><host>::Verify-Peer</literal> "
3644 "is corresponding per-host option. <literal>Verify-Host</literal> boolean "
3645 "suboption determines whether verify server's hostname or not. "
3646 "<literal><host>::Verify-Host</literal> is corresponding per-host "
3647 "option. <literal>SslCert</literal> determines what certificate to use for "
3648 "client authentication. <literal><host>::SslCert</literal> is "
3649 "corresponding per-host option. <literal>SslKey</literal> determines what "
3650 "private key to use for client "
3651 "authentication. <literal><host>::SslKey</literal> is corresponding "
3652 "per-host option. <literal>SslForceVersion</literal> overrides default SSL "
3653 "version to use. Can contain 'TLSv1' or 'SSLv3' string. "
3654 "<literal><host>::SslForceVersion</literal> is corresponding per-host "
3658 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3659 #: apt.conf.5.xml:391
3661 "FTP URIs; ftp::Proxy is the default ftp proxy to use. It is in the standard "
3662 "form of <literal>ftp://[[user][:pass]@]host[:port]/</literal>. Per host "
3663 "proxies can also be specified by using the form "
3664 "<literal>ftp::Proxy::<host></literal> with the special keyword "
3665 "<literal>DIRECT</literal> meaning to use no proxies. If no one of the above "
3666 "settings is specified, <envar>ftp_proxy</envar> environment variable will be "
3667 "used. To use a ftp proxy you will have to set the "
3668 "<literal>ftp::ProxyLogin</literal> script in the configuration file. This "
3669 "entry specifies the commands to send to tell the proxy server what to "
3670 "connect to. Please see &configureindex; for an example of how to do "
3671 "this. The substitution variables available are "
3672 "<literal>$(PROXY_USER)</literal> <literal>$(PROXY_PASS)</literal> "
3673 "<literal>$(SITE_USER)</literal> <literal>$(SITE_PASS)</literal> "
3674 "<literal>$(SITE)</literal> and <literal>$(SITE_PORT)</literal> Each is taken "
3675 "from it's respective URI component."
3678 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3679 #: apt.conf.5.xml:410
3681 "Several settings are provided to control passive mode. Generally it is safe "
3682 "to leave passive mode on, it works in nearly every environment. However "
3683 "some situations require that passive mode be disabled and port mode ftp used "
3684 "instead. This can be done globally, for connections that go through a proxy "
3685 "or for a specific host (See the sample config file for examples)."
3688 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3689 #: apt.conf.5.xml:417
3691 "It is possible to proxy FTP over HTTP by setting the "
3692 "<envar>ftp_proxy</envar> environment variable to a http url - see the "
3693 "discussion of the http method above for syntax. You cannot set this in the "
3694 "configuration file and it is not recommended to use FTP over HTTP due to its "
3698 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3699 #: apt.conf.5.xml:422
3701 "The setting <literal>ForceExtended</literal> controls the use of RFC2428 "
3702 "<literal>EPSV</literal> and <literal>EPRT</literal> commands. The default is "
3703 "false, which means these commands are only used if the control connection is "
3704 "IPv6. Setting this to true forces their use even on IPv4 connections. Note "
3705 "that most FTP servers do not support RFC2428."
3708 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para><literallayout>
3709 #: apt.conf.5.xml:435
3711 msgid "/cdrom/::Mount \"foo\";"
3714 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3715 #: apt.conf.5.xml:430
3717 "CD-ROM URIs; the only setting for CD-ROM URIs is the mount point, "
3718 "<literal>cdrom::Mount</literal> which must be the mount point for the CD-ROM "
3719 "drive as specified in <filename>/etc/fstab</filename>. It is possible to "
3720 "provide alternate mount and unmount commands if your mount point cannot be "
3721 "listed in the fstab (such as an SMB mount and old mount packages). The "
3722 "syntax is to put <placeholder type=\"literallayout\" id=\"0\"/> within the "
3723 "cdrom block. It is important to have the trailing slash. Unmount commands "
3724 "can be specified using UMount."
3727 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3728 #: apt.conf.5.xml:441
3730 "GPGV URIs; the only option for GPGV URIs is the option to pass additional "
3731 "parameters to gpgv. <literal>gpgv::Options</literal> Additional options "
3735 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para><synopsis>
3736 #: apt.conf.5.xml:452
3739 "Acquire::CompressionTypes::<replaceable>FileExtension</replaceable> "
3740 "\"<replaceable>Methodname</replaceable>\";"
3743 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3744 #: apt.conf.5.xml:447
3746 "List of compression types which are understood by the acquire methods. "
3747 "Files like <filename>Packages</filename> can be available in various "
3748 "compression formats. Per default the acquire methods can decompress "
3749 "<command>bzip2</command>, <command>lzma</command> and "
3750 "<command>gzip</command> compressed files, with this setting more formats can "
3751 "be added on the fly or the used method can be changed. The syntax for this "
3752 "is: <placeholder type=\"synopsis\" id=\"0\"/>"
3755 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para><synopsis>
3756 #: apt.conf.5.xml:457
3758 msgid "Acquire::CompressionTypes::Order:: \"gz\";"
3761 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para><synopsis>
3762 #: apt.conf.5.xml:460
3764 msgid "Acquire::CompressionTypes::Order { \"lzma\"; \"gz\"; };"
3767 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3768 #: apt.conf.5.xml:453
3770 "Also the <literal>Order</literal> subgroup can be used to define in which "
3771 "order the acquire system will try to download the compressed files. The "
3772 "acquire system will try the first and proceed with the next compression type "
3773 "in this list on error, so to prefer one over the other type simple add the "
3774 "preferred type at first - not already added default types will be added at "
3775 "run time to the end of the list, so e.g. <placeholder type=\"synopsis\" "
3776 "id=\"0\"/> can be used to prefer <command>gzip</command> compressed files "
3777 "over <command>bzip2</command> and <command>lzma</command>. If "
3778 "<command>lzma</command> should be preferred over <command>gzip</command> and "
3779 "<command>bzip2</command> the configure setting should look like this "
3780 "<placeholder type=\"synopsis\" id=\"1\"/> It is not needed to add "
3781 "<literal>bz2</literal> explicit to the list as it will be added automatic."
3784 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para><literallayout>
3785 #: apt.conf.5.xml:464
3787 msgid "Dir::Bin::bzip2 \"/bin/bzip2\";"
3790 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3791 #: apt.conf.5.xml:462
3793 "Note that at run time the "
3794 "<literal>Dir::Bin::<replaceable>Methodname</replaceable></literal> will be "
3795 "checked: If this setting exists the method will only be used if this file "
3796 "exists, e.g. for the bzip2 method (the inbuilt) setting is: <placeholder "
3797 "type=\"literallayout\" id=\"0\"/> Note also that list entries specified on "
3798 "the command line will be added at the end of the list specified in the "
3799 "configuration files, but before the default entries. To prefer a type in "
3800 "this case over the ones specified in the configuration files you can set the "
3801 "option direct - not in list style. This will not override the defined list, "
3802 "it will only prefix the list with this type."
3805 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3806 #: apt.conf.5.xml:469
3808 "The special type <literal>uncompressed</literal> can be used to give "
3809 "uncompressed files a preference, but note that most archives don't provide "
3810 "uncompressed files so this is mostly only useable for local mirrors."
3813 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3814 #: apt.conf.5.xml:476
3816 "When downloading <literal>gzip</literal> compressed indexes (Packages, "
3817 "Sources, or Translations), keep them gzip compressed locally instead of "
3818 "unpacking them. This saves quite a lot of disk space at the expense of more "
3819 "CPU requirements when building the local package caches. False by default."
3822 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3823 #: apt.conf.5.xml:484
3825 "The Languages subsection controls which <filename>Translation</filename> "
3826 "files are downloaded and in which order APT tries to display the "
3827 "Description-Translations. APT will try to display the first available "
3828 "Description in the Language which is listed at first. Languages can be "
3829 "defined with their short or long Languagecodes. Note that not all archives "
3830 "provide <filename>Translation</filename> files for every Language - "
3831 "especially the long Languagecodes are rare, so please inform you which ones "
3832 "are available before you set here impossible values."
3835 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para><programlisting>
3836 #: apt.conf.5.xml:500
3838 msgid "Acquire::Languages { \"environment\"; \"de\"; \"en\"; \"none\"; \"fr\"; };"
3841 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3842 #: apt.conf.5.xml:490
3844 "The default list includes \"environment\" and "
3845 "\"en\". \"<literal>environment</literal>\" has a special meaning here: It "
3846 "will be replaced at runtime with the languagecodes extracted from the "
3847 "<literal>LC_MESSAGES</literal> environment variable. It will also ensure "
3848 "that these codes are not included twice in the list. If "
3849 "<literal>LC_MESSAGES</literal> is set to \"C\" only the "
3850 "<filename>Translation-en</filename> file (if available) will be used. To "
3851 "force apt to use no Translation file use the setting "
3852 "<literal>Acquire::Languages=none</literal>. \"<literal>none</literal>\" is "
3853 "another special meaning code which will stop the search for a fitting "
3854 "<filename>Translation</filename> file. This can be used by the system "
3855 "administrator to let APT know that it should download also this files "
3856 "without actually use them if the environment doesn't specify this "
3857 "languages. So the following example configuration will result in the order "
3858 "\"en, de\" in an english and in \"de, en\" in a german localization. Note "
3859 "that \"fr\" is downloaded, but not used if APT is not used in a french "
3860 "localization, in such an environment the order would be \"fr, de, en\". "
3861 "<placeholder type=\"programlisting\" id=\"0\"/>"
3864 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
3865 #: apt.conf.5.xml:501
3867 "Note: To prevent problems resulting from APT being executed in different "
3868 "environments (e.g. by different users or by other programs) all Translation "
3869 "files which are found in <filename>/var/lib/apt/lists/</filename> will be "
3870 "added to the end of the list (after an implicit "
3871 "\"<literal>none</literal>\")."
3874 #. type: Content of: <refentry><refsect1><title>
3875 #: apt.conf.5.xml:512
3879 #. type: Content of: <refentry><refsect1><para>
3880 #: apt.conf.5.xml:514
3882 "The <literal>Dir::State</literal> section has directories that pertain to "
3883 "local state information. <literal>lists</literal> is the directory to place "
3884 "downloaded package lists in and <literal>status</literal> is the name of the "
3885 "dpkg status file. <literal>preferences</literal> is the name of the APT "
3886 "<filename>preferences</filename> file. <literal>Dir::State</literal> "
3887 "contains the default directory to prefix on all sub items if they do not "
3888 "start with <filename>/</filename> or <filename>./</filename>."
3891 #. type: Content of: <refentry><refsect1><para>
3892 #: apt.conf.5.xml:521
3894 "<literal>Dir::Cache</literal> contains locations pertaining to local cache "
3895 "information, such as the two package caches <literal>srcpkgcache</literal> "
3896 "and <literal>pkgcache</literal> as well as the location to place downloaded "
3897 "archives, <literal>Dir::Cache::archives</literal>. Generation of caches can "
3898 "be turned off by setting their names to be blank. This will slow down "
3899 "startup but save disk space. It is probably preferred to turn off the "
3900 "pkgcache rather than the srcpkgcache. Like <literal>Dir::State</literal> the "
3901 "default directory is contained in <literal>Dir::Cache</literal>"
3904 #. type: Content of: <refentry><refsect1><para>
3905 #: apt.conf.5.xml:530
3907 "<literal>Dir::Etc</literal> contains the location of configuration files, "
3908 "<literal>sourcelist</literal> gives the location of the sourcelist and "
3909 "<literal>main</literal> is the default configuration file (setting has no "
3910 "effect, unless it is done from the config file specified by "
3911 "<envar>APT_CONFIG</envar>)."
3914 #. type: Content of: <refentry><refsect1><para>
3915 #: apt.conf.5.xml:536
3917 "The <literal>Dir::Parts</literal> setting reads in all the config fragments "
3918 "in lexical order from the directory specified. After this is done then the "
3919 "main config file is loaded."
3922 #. type: Content of: <refentry><refsect1><para>
3923 #: apt.conf.5.xml:540
3925 "Binary programs are pointed to by "
3926 "<literal>Dir::Bin</literal>. <literal>Dir::Bin::Methods</literal> specifies "
3927 "the location of the method handlers and <literal>gzip</literal>, "
3928 "<literal>bzip2</literal>, <literal>lzma</literal>, <literal>dpkg</literal>, "
3929 "<literal>apt-get</literal> <literal>dpkg-source</literal> "
3930 "<literal>dpkg-buildpackage</literal> and <literal>apt-cache</literal> "
3931 "specify the location of the respective programs."
3934 #. type: Content of: <refentry><refsect1><para>
3935 #: apt.conf.5.xml:548
3937 "The configuration item <literal>RootDir</literal> has a special meaning. If "
3938 "set, all paths in <literal>Dir::</literal> will be relative to "
3939 "<literal>RootDir</literal>, <emphasis>even paths that are specified "
3940 "absolutely</emphasis>. So, for instance, if <literal>RootDir</literal> is "
3941 "set to <filename>/tmp/staging</filename> and "
3942 "<literal>Dir::State::status</literal> is set to "
3943 "<filename>/var/lib/dpkg/status</filename>, then the status file will be "
3944 "looked up in <filename>/tmp/staging/var/lib/dpkg/status</filename>."
3947 #. type: Content of: <refentry><refsect1><para>
3948 #: apt.conf.5.xml:561
3950 "The <literal>Ignore-Files-Silently</literal> list can be used to specify "
3951 "which files APT should silently ignore while parsing the files in the "
3952 "fragment directories. Per default a file which end with "
3953 "<literal>.disabled</literal>, <literal>~</literal>, <literal>.bak</literal> "
3954 "or <literal>.dpkg-[a-z]+</literal> is silently ignored. As seen in the last "
3955 "default value these patterns can use regular expression syntax."
3958 #. type: Content of: <refentry><refsect1><title>
3959 #: apt.conf.5.xml:570
3960 msgid "APT in DSelect"
3963 #. type: Content of: <refentry><refsect1><para>
3964 #: apt.conf.5.xml:572
3966 "When APT is used as a &dselect; method several configuration directives "
3967 "control the default behaviour. These are in the <literal>DSelect</literal> "
3971 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3972 #: apt.conf.5.xml:577
3974 "Cache Clean mode; this value may be one of always, prompt, auto, pre-auto "
3975 "and never. always and prompt will remove all packages from the cache after "
3976 "upgrading, prompt (the default) does so conditionally. auto removes only "
3977 "those packages which are no longer downloadable (replaced with a new version "
3978 "for instance). pre-auto performs this action before downloading new "
3982 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3983 #: apt.conf.5.xml:586
3985 "The contents of this variable is passed to &apt-get; as command line options "
3986 "when it is run for the install phase."
3989 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3990 #: apt.conf.5.xml:591
3992 "The contents of this variable is passed to &apt-get; as command line options "
3993 "when it is run for the update phase."
3996 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3997 #: apt.conf.5.xml:596
3999 "If true the [U]pdate operation in &dselect; will always prompt to continue. "
4000 "The default is to prompt only on error."
4003 #. type: Content of: <refentry><refsect1><title>
4004 #: apt.conf.5.xml:602
4005 msgid "How APT calls dpkg"
4008 #. type: Content of: <refentry><refsect1><para>
4009 #: apt.conf.5.xml:603
4011 "Several configuration directives control how APT invokes &dpkg;. These are "
4012 "in the <literal>DPkg</literal> section."
4015 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4016 #: apt.conf.5.xml:608
4018 "This is a list of options to pass to dpkg. The options must be specified "
4019 "using the list notation and each list item is passed as a single argument to "
4023 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4024 #: apt.conf.5.xml:614
4026 "This is a list of shell commands to run before/after invoking &dpkg;. Like "
4027 "<literal>options</literal> this must be specified in list notation. The "
4028 "commands are invoked in order using <filename>/bin/sh</filename>, should any "
4029 "fail APT will abort."
4032 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4033 #: apt.conf.5.xml:621
4035 "This is a list of shell commands to run before invoking dpkg. Like "
4036 "<literal>options</literal> this must be specified in list notation. The "
4037 "commands are invoked in order using <filename>/bin/sh</filename>, should any "
4038 "fail APT will abort. APT will pass to the commands on standard input the "
4039 "filenames of all .deb files it is going to install, one per line."
4042 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4043 #: apt.conf.5.xml:627
4045 "Version 2 of this protocol dumps more information, including the protocol "
4046 "version, the APT configuration space and the packages, files and versions "
4047 "being changed. Version 2 is enabled by setting "
4048 "<literal>DPkg::Tools::options::cmd::Version</literal> to "
4049 "2. <literal>cmd</literal> is a command given to "
4050 "<literal>Pre-Install-Pkgs</literal>."
4053 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4054 #: apt.conf.5.xml:635
4056 "APT chdirs to this directory before invoking dpkg, the default is "
4057 "<filename>/</filename>."
4060 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4061 #: apt.conf.5.xml:640
4063 "These options are passed to &dpkg-buildpackage; when compiling packages, the "
4064 "default is to disable signing and produce all binaries."
4067 #. type: Content of: <refentry><refsect1><refsect2><title>
4068 #: apt.conf.5.xml:645
4069 msgid "dpkg trigger usage (and related options)"
4072 #. type: Content of: <refentry><refsect1><refsect2><para>
4073 #: apt.conf.5.xml:646
4075 "APT can call dpkg in a way so it can make aggressive use of triggers over "
4076 "multiple calls of dpkg. Without further options dpkg will use triggers only "
4077 "in between his own run. Activating these options can therefore decrease the "
4078 "time needed to perform the install / upgrade. Note that it is intended to "
4079 "activate these options per default in the future, but as it changes the way "
4080 "APT calling dpkg drastically it needs a lot more testing. <emphasis>These "
4081 "options are therefore currently experimental and should not be used in "
4082 "productive environments.</emphasis> Also it breaks the progress reporting so "
4083 "all frontends will currently stay around half (or more) of the time in the "
4084 "100% state while it actually configures all packages."
4087 #. type: Content of: <refentry><refsect1><refsect2><para><literallayout>
4088 #: apt.conf.5.xml:661
4091 "DPkg::NoTriggers \"true\";\n"
4092 "PackageManager::Configure \"smart\";\n"
4093 "DPkg::ConfigurePending \"true\";\n"
4094 "DPkg::TriggersPending \"true\";"
4097 #. type: Content of: <refentry><refsect1><refsect2><para>
4098 #: apt.conf.5.xml:655
4100 "Note that it is not guaranteed that APT will support these options or that "
4101 "these options will not cause (big) trouble in the future. If you have "
4102 "understand the current risks and problems with these options, but are brave "
4103 "enough to help testing them create a new configuration file and test a "
4104 "combination of options. Please report any bugs, problems and improvements "
4105 "you encounter and make sure to note which options you have used in your "
4106 "reports. Asking dpkg for help could also be useful for debugging proposes, "
4107 "see e.g. <command>dpkg --audit</command>. A defensive option combination "
4108 "would be <placeholder type=\"literallayout\" id=\"0\"/>"
4111 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
4112 #: apt.conf.5.xml:668
4114 "Add the no triggers flag to all dpkg calls (except the ConfigurePending "
4115 "call). See &dpkg; if you are interested in what this actually means. In "
4116 "short: dpkg will not run the triggers when this flag is present unless it is "
4117 "explicitly called to do so in an extra call. Note that this option exists "
4118 "(undocumented) also in older apt versions with a slightly different meaning: "
4119 "Previously these option only append --no-triggers to the configure calls to "
4120 "dpkg - now apt will add these flag also to the unpack and remove calls."
4123 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
4124 #: apt.conf.5.xml:676
4126 "Valid values are \"<literal>all</literal>\", \"<literal>smart</literal>\" "
4127 "and \"<literal>no</literal>\". \"<literal>all</literal>\" is the default "
4128 "value and causes APT to configure all packages explicit. The "
4129 "\"<literal>smart</literal>\" way is it to configure only packages which need "
4130 "to be configured before another package can be unpacked (Pre-Depends) and "
4131 "let the rest configure by dpkg with a call generated by the next "
4132 "option. \"<literal>no</literal>\" on the other hand will not configure "
4133 "anything and totally rely on dpkg for configuration (which will at the "
4134 "moment fail if a Pre-Depends is encountered). Setting this option to "
4135 "another than the all value will implicitly activate also the next option per "
4136 "default as otherwise the system could end in an unconfigured status which "
4137 "could be unbootable!"
4140 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
4141 #: apt.conf.5.xml:687
4143 "If this option is set apt will call <command>dpkg --configure "
4144 "--pending</command> to let dpkg handle all required configurations and "
4145 "triggers. This option is activated automatic per default if the previous "
4146 "option is not set to <literal>all</literal>, but deactivating could be "
4147 "useful if you want to run APT multiple times in a row - e.g. in an "
4148 "installer. In these sceneries you could deactivate this option in all but "
4152 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
4153 #: apt.conf.5.xml:694
4155 "Useful for <literal>smart</literal> configuration as a package which has "
4156 "pending triggers is not considered as <literal>installed</literal> and dpkg "
4157 "treats them as <literal>unpacked</literal> currently which is a dealbreaker "
4158 "for Pre-Dependencies (see debbugs #526774). Note that this will process all "
4159 "triggers, not only the triggers needed to configure this package."
4162 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
4163 #: apt.conf.5.xml:700
4165 "As the configuration can be deferred to be done at the end by dpkg it can be "
4166 "tried to order the unpack series only by critical needs, e.g. by "
4167 "Pre-Depends. Default is true and therefore the \"old\" method of ordering in "
4168 "various steps by everything. While both method were present in earlier APT "
4169 "versions the <literal>OrderCritical</literal> method was unused, so this "
4170 "method is very experimental and needs further improvements before becoming "
4174 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para><literallayout>
4175 #: apt.conf.5.xml:715
4178 "OrderList::Score {\n"
4180 "\tEssential 200;\n"
4182 "\tPreDepends 50;\n"
4186 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
4187 #: apt.conf.5.xml:708
4189 "Essential packages (and there dependencies) should be configured immediately "
4190 "after unpacking. It will be a good idea to do this quite early in the "
4191 "upgrade process as these these configure calls require currently also "
4192 "<literal>DPkg::TriggersPending</literal> which will run quite a few triggers "
4193 "(which maybe not needed). Essentials get per default a high score but the "
4194 "immediate flag is relatively low (a package which has a Pre-Depends is "
4195 "higher rated). These option and the others in the same group can be used to "
4196 "change the scoring. The following example shows the settings with there "
4197 "default values. <placeholder type=\"literallayout\" id=\"0\"/>"
4200 #. type: Content of: <refentry><refsect1><title>
4201 #: apt.conf.5.xml:728
4202 msgid "Periodic and Archives options"
4205 #. type: Content of: <refentry><refsect1><para>
4206 #: apt.conf.5.xml:729
4208 "<literal>APT::Periodic</literal> and <literal>APT::Archives</literal> groups "
4209 "of options configure behavior of apt periodic updates, which is done by "
4210 "<literal>/etc/cron.daily/apt</literal> script. See header of this script for "
4211 "the brief documentation of these options."
4214 #. type: Content of: <refentry><refsect1><title>
4215 #: apt.conf.5.xml:737
4216 msgid "Debug options"
4219 #. type: Content of: <refentry><refsect1><para>
4220 #: apt.conf.5.xml:739
4222 "Enabling options in the <literal>Debug::</literal> section will cause "
4223 "debugging information to be sent to the standard error stream of the program "
4224 "utilizing the <literal>apt</literal> libraries, or enable special program "
4225 "modes that are primarily useful for debugging the behavior of "
4226 "<literal>apt</literal>. Most of these options are not interesting to a "
4227 "normal user, but a few may be:"
4230 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4231 #: apt.conf.5.xml:750
4233 "<literal>Debug::pkgProblemResolver</literal> enables output about the "
4234 "decisions made by <literal>dist-upgrade, upgrade, install, remove, "
4238 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4239 #: apt.conf.5.xml:758
4241 "<literal>Debug::NoLocking</literal> disables all file locking. This can be "
4242 "used to run some operations (for instance, <literal>apt-get -s "
4243 "install</literal>) as a non-root user."
4246 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4247 #: apt.conf.5.xml:767
4249 "<literal>Debug::pkgDPkgPM</literal> prints out the actual command line each "
4250 "time that <literal>apt</literal> invokes &dpkg;."
4254 #. motivating example, except I haven't a clue why you'd want
4256 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4257 #: apt.conf.5.xml:775
4259 "<literal>Debug::IdentCdrom</literal> disables the inclusion of statfs data "
4263 #. type: Content of: <refentry><refsect1><para>
4264 #: apt.conf.5.xml:785
4265 msgid "A full list of debugging options to apt follows."
4268 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4269 #: apt.conf.5.xml:794
4270 msgid "Print information related to accessing <literal>cdrom://</literal> sources."
4273 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4274 #: apt.conf.5.xml:805
4275 msgid "Print information related to downloading packages using FTP."
4278 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4279 #: apt.conf.5.xml:816
4280 msgid "Print information related to downloading packages using HTTP."
4283 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4284 #: apt.conf.5.xml:827
4285 msgid "Print information related to downloading packages using HTTPS."
4288 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4289 #: apt.conf.5.xml:838
4291 "Print information related to verifying cryptographic signatures using "
4292 "<literal>gpg</literal>."
4295 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4296 #: apt.conf.5.xml:849
4298 "Output information about the process of accessing collections of packages "
4299 "stored on CD-ROMs."
4302 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4303 #: apt.conf.5.xml:859
4304 msgid "Describes the process of resolving build-dependencies in &apt-get;."
4307 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4308 #: apt.conf.5.xml:869
4310 "Output each cryptographic hash that is generated by the "
4311 "<literal>apt</literal> libraries."
4314 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4315 #: apt.conf.5.xml:879
4317 "Do not include information from <literal>statfs</literal>, namely the number "
4318 "of used and free blocks on the CD-ROM filesystem, when generating an ID for "
4322 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4323 #: apt.conf.5.xml:890
4325 "Disable all file locking. For instance, this will allow two instances of "
4326 "<quote><literal>apt-get update</literal></quote> to run at the same time."
4329 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4330 #: apt.conf.5.xml:902
4331 msgid "Log when items are added to or removed from the global download queue."
4334 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4335 #: apt.conf.5.xml:912
4337 "Output status messages and errors related to verifying checksums and "
4338 "cryptographic signatures of downloaded files."
4341 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4342 #: apt.conf.5.xml:922
4344 "Output information about downloading and applying package index list diffs, "
4345 "and errors relating to package index list diffs."
4348 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4349 #: apt.conf.5.xml:934
4351 "Output information related to patching apt package lists when downloading "
4352 "index diffs instead of full indices."
4355 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4356 #: apt.conf.5.xml:945
4357 msgid "Log all interactions with the sub-processes that actually perform downloads."
4360 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4361 #: apt.conf.5.xml:956
4363 "Log events related to the automatically-installed status of packages and to "
4364 "the removal of unused packages."
4367 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4368 #: apt.conf.5.xml:966
4370 "Generate debug messages describing which packages are being automatically "
4371 "installed to resolve dependencies. This corresponds to the initial "
4372 "auto-install pass performed in, e.g., <literal>apt-get install</literal>, "
4373 "and not to the full <literal>apt</literal> dependency resolver; see "
4374 "<literal>Debug::pkgProblemResolver</literal> for that."
4377 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4378 #: apt.conf.5.xml:980
4380 "Generate debug messages describing which package is marked as "
4381 "keep/install/remove while the ProblemResolver does his work. Each addition "
4382 "or deletion may trigger additional actions; they are shown indented two "
4383 "additional space under the original entry. The format for each line is "
4384 "<literal>MarkKeep</literal>, <literal>MarkDelete</literal> or "
4385 "<literal>MarkInstall</literal> followed by <literal>package-name <a.b.c "
4386 "-> d.e.f | x.y.z> (section)</literal> where <literal>a.b.c</literal> "
4387 "is the current version of the package, <literal>d.e.f</literal> is the "
4388 "version considered for installation and <literal>x.y.z</literal> is a newer "
4389 "version, but not considered for installation (because of a low pin "
4390 "score). The later two can be omitted if there is none or if it is the same "
4391 "version as the installed. <literal>section</literal> is the name of the "
4392 "section the package appears in."
4395 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4396 #: apt.conf.5.xml:1002
4397 msgid "Dump the default configuration to standard error on startup."
4400 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4401 #: apt.conf.5.xml:1012
4403 "When invoking &dpkg;, output the precise command line with which it is being "
4404 "invoked, with arguments separated by a single space character."
4407 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4408 #: apt.conf.5.xml:1023
4410 "Output all the data received from &dpkg; on the status file descriptor and "
4411 "any errors encountered while parsing it."
4414 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4415 #: apt.conf.5.xml:1034
4417 "Generate a trace of the algorithm that decides the order in which "
4418 "<literal>apt</literal> should pass packages to &dpkg;."
4421 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4422 #: apt.conf.5.xml:1046
4423 msgid "Output status messages tracing the steps performed when invoking &dpkg;."
4426 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4427 #: apt.conf.5.xml:1057
4428 msgid "Output the priority of each package list on startup."
4431 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4432 #: apt.conf.5.xml:1067
4434 "Trace the execution of the dependency resolver (this applies only to what "
4435 "happens when a complex dependency problem is encountered)."
4438 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4439 #: apt.conf.5.xml:1078
4441 "Display a list of all installed packages with their calculated score used by "
4442 "the pkgProblemResolver. The description of the package is the same as "
4443 "described in <literal>Debug::pkgDepCache::Marker</literal>"
4446 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4447 #: apt.conf.5.xml:1090
4449 "Print information about the vendors read from "
4450 "<filename>/etc/apt/vendors.list</filename>."
4453 #. type: Content of: <refentry><refsect1><para>
4454 #: apt.conf.5.xml:1113
4456 "&configureindex; is a configuration file showing example values for all "
4460 #. ? reading apt.conf
4461 #. type: Content of: <refentry><refsect1><para>
4462 #: apt.conf.5.xml:1125
4463 msgid "&apt-cache;, &apt-config;, &apt-preferences;."
4466 #. type: Content of: <refentry><refnamediv><refpurpose>
4467 #: apt_preferences.5.xml:32
4468 msgid "Preference control file for APT"
4471 #. type: Content of: <refentry><refsect1><para>
4472 #: apt_preferences.5.xml:37
4474 "The APT preferences file <filename>/etc/apt/preferences</filename> and the "
4475 "fragment files in the <filename>/etc/apt/preferences.d/</filename> folder "
4476 "can be used to control which versions of packages will be selected for "
4480 #. type: Content of: <refentry><refsect1><para>
4481 #: apt_preferences.5.xml:42
4483 "Several versions of a package may be available for installation when the "
4484 "&sources-list; file contains references to more than one distribution (for "
4485 "example, <literal>stable</literal> and <literal>testing</literal>). APT "
4486 "assigns a priority to each version that is available. Subject to dependency "
4487 "constraints, <command>apt-get</command> selects the version with the highest "
4488 "priority for installation. The APT preferences file overrides the "
4489 "priorities that APT assigns to package versions by default, thus giving the "
4490 "user control over which one is selected for installation."
4493 #. type: Content of: <refentry><refsect1><para>
4494 #: apt_preferences.5.xml:52
4496 "Several instances of the same version of a package may be available when the "
4497 "&sources-list; file contains references to more than one source. In this "
4498 "case <command>apt-get</command> downloads the instance listed earliest in "
4499 "the &sources-list; file. The APT preferences file does not affect the "
4500 "choice of instance, only the choice of version."
4503 #. type: Content of: <refentry><refsect1><para>
4504 #: apt_preferences.5.xml:59
4506 "Preferences are a strong power in the hands of a system administrator but "
4507 "they can become also their biggest nightmare if used without care! APT will "
4508 "not questioning the preferences so wrong settings will therefore lead to "
4509 "uninstallable packages or wrong decisions while upgrading packages. Even "
4510 "more problems will arise if multiply distribution releases are mixed without "
4511 "a good understanding of the following paragraphs. Packages included in a "
4512 "specific release aren't tested in and therefore doesn't always work as "
4513 "expected in older or newer releases or together with other packages from "
4514 "different releases. You have been warned."
4517 #. type: Content of: <refentry><refsect1><para>
4518 #: apt_preferences.5.xml:70
4520 "Note that the files in the <filename>/etc/apt/preferences.d</filename> "
4521 "directory are parsed in alphanumeric ascending order and need to obey the "
4522 "following naming convention: The files have either no or "
4523 "\"<literal>pref</literal>\" as filename extension and only contain "
4524 "alphanumeric, hyphen (-), underscore (_) and period (.) characters. "
4525 "Otherwise APT will print a notice that it has ignored a file if the file "
4526 "doesn't match a pattern in the <literal>Dir::Ignore-Files-Silently</literal> "
4527 "configuration list - in this case it will be silently ignored."
4530 #. type: Content of: <refentry><refsect1><refsect2><title>
4531 #: apt_preferences.5.xml:79
4532 msgid "APT's Default Priority Assignments"
4535 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4536 #: apt_preferences.5.xml:94
4539 "<command>apt-get install -t testing "
4540 "<replaceable>some-package</replaceable></command>\n"
4543 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4544 #: apt_preferences.5.xml:97
4546 msgid "APT::Default-Release \"stable\";\n"
4549 #. type: Content of: <refentry><refsect1><refsect2><para>
4550 #: apt_preferences.5.xml:81
4552 "If there is no preferences file or if there is no entry in the file that "
4553 "applies to a particular version then the priority assigned to that version "
4554 "is the priority of the distribution to which that version belongs. It is "
4555 "possible to single out a distribution, \"the target release\", which "
4556 "receives a higher priority than other distributions do by default. The "
4557 "target release can be set on the <command>apt-get</command> command line or "
4558 "in the APT configuration file <filename>/etc/apt/apt.conf</filename>. Note "
4559 "that this has precedence over any general priority you set in the "
4560 "<filename>/etc/apt/preferences</filename> file described later, but not over "
4561 "specifically pinned packages. For example, <placeholder "
4562 "type=\"programlisting\" id=\"0\"/> <placeholder type=\"programlisting\" "
4566 #. type: Content of: <refentry><refsect1><refsect2><para>
4567 #: apt_preferences.5.xml:101
4569 "If the target release has been specified then APT uses the following "
4570 "algorithm to set the priorities of the versions of a package. Assign:"
4573 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4574 #: apt_preferences.5.xml:106
4578 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4579 #: apt_preferences.5.xml:107
4581 "to the versions coming from archives which in their "
4582 "<filename>Release</filename> files are marked as \"NotAutomatic: yes\" but "
4583 "<emphasis>not</emphasis> as \"ButAutomaticUpgrades: yes\" like the debian "
4584 "<literal>experimental</literal> archive."
4587 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4588 #: apt_preferences.5.xml:113
4589 msgid "priority 100"
4592 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4593 #: apt_preferences.5.xml:114
4595 "to the version that is already installed (if any) and to the versions coming "
4596 "from archives which in their <filename>Release</filename> files are marked "
4597 "as \"NotAutomatic: yes\" and \"ButAutomaticUpgrades: yes\" like the debian "
4598 "backports archive since <literal>squeeze-backports</literal>."
4601 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4602 #: apt_preferences.5.xml:121
4603 msgid "priority 500"
4606 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4607 #: apt_preferences.5.xml:122
4609 "to the versions that are not installed and do not belong to the target "
4613 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4614 #: apt_preferences.5.xml:126
4615 msgid "priority 990"
4618 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4619 #: apt_preferences.5.xml:127
4620 msgid "to the versions that are not installed and belong to the target release."
4623 #. type: Content of: <refentry><refsect1><refsect2><para>
4624 #: apt_preferences.5.xml:132
4626 "If the target release has not been specified then APT simply assigns "
4627 "priority 100 to all installed package versions and priority 500 to all "
4628 "uninstalled package versions, except versions coming from archives which in "
4629 "their <filename>Release</filename> files are marked as \"NotAutomatic: yes\" "
4630 "- these versions get the priority 1 or priority 100 if it is additionally "
4631 "marked as \"ButAutomaticUpgrades: yes\"."
4634 #. type: Content of: <refentry><refsect1><refsect2><para>
4635 #: apt_preferences.5.xml:139
4637 "APT then applies the following rules, listed in order of precedence, to "
4638 "determine which version of a package to install."
4641 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4642 #: apt_preferences.5.xml:142
4644 "Never downgrade unless the priority of an available version exceeds 1000. "
4645 "(\"Downgrading\" is installing a less recent version of a package in place "
4646 "of a more recent version. Note that none of APT's default priorities "
4647 "exceeds 1000; such high priorities can only be set in the preferences file. "
4648 "Note also that downgrading a package can be risky.)"
4651 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4652 #: apt_preferences.5.xml:148
4653 msgid "Install the highest priority version."
4656 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4657 #: apt_preferences.5.xml:149
4659 "If two or more versions have the same priority, install the most recent one "
4660 "(that is, the one with the higher version number)."
4663 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4664 #: apt_preferences.5.xml:152
4666 "If two or more versions have the same priority and version number but either "
4667 "the packages differ in some of their metadata or the "
4668 "<literal>--reinstall</literal> option is given, install the uninstalled one."
4671 #. type: Content of: <refentry><refsect1><refsect2><para>
4672 #: apt_preferences.5.xml:158
4674 "In a typical situation, the installed version of a package (priority 100) "
4675 "is not as recent as one of the versions available from the sources listed in "
4676 "the &sources-list; file (priority 500 or 990). Then the package will be "
4677 "upgraded when <command>apt-get install "
4678 "<replaceable>some-package</replaceable></command> or <command>apt-get "
4679 "upgrade</command> is executed."
4682 #. type: Content of: <refentry><refsect1><refsect2><para>
4683 #: apt_preferences.5.xml:165
4685 "More rarely, the installed version of a package is <emphasis>more</emphasis> "
4686 "recent than any of the other available versions. The package will not be "
4687 "downgraded when <command>apt-get install "
4688 "<replaceable>some-package</replaceable></command> or <command>apt-get "
4689 "upgrade</command> is executed."
4692 #. type: Content of: <refentry><refsect1><refsect2><para>
4693 #: apt_preferences.5.xml:170
4695 "Sometimes the installed version of a package is more recent than the version "
4696 "belonging to the target release, but not as recent as a version belonging to "
4697 "some other distribution. Such a package will indeed be upgraded when "
4698 "<command>apt-get install <replaceable>some-package</replaceable></command> "
4699 "or <command>apt-get upgrade</command> is executed, because at least "
4700 "<emphasis>one</emphasis> of the available versions has a higher priority "
4701 "than the installed version."
4704 #. type: Content of: <refentry><refsect1><refsect2><title>
4705 #: apt_preferences.5.xml:179
4706 msgid "The Effect of APT Preferences"
4709 #. type: Content of: <refentry><refsect1><refsect2><para>
4710 #: apt_preferences.5.xml:181
4712 "The APT preferences file allows the system administrator to control the "
4713 "assignment of priorities. The file consists of one or more multi-line "
4714 "records separated by blank lines. Records can have one of two forms, a "
4715 "specific form and a general form."
4718 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4719 #: apt_preferences.5.xml:187
4721 "The specific form assigns a priority (a \"Pin-Priority\") to one or more "
4722 "specified packages and specified version or version range. For example, the "
4723 "following record assigns a high priority to all versions of the "
4724 "<filename>perl</filename> package whose version number begins with "
4725 "\"<literal>5.8</literal>\". Multiple packages can be separated by spaces."
4728 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4729 #: apt_preferences.5.xml:194
4733 "Pin: version 5.8*\n"
4734 "Pin-Priority: 1001\n"
4737 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4738 #: apt_preferences.5.xml:200
4740 "The general form assigns a priority to all of the package versions in a "
4741 "given distribution (that is, to all the versions of packages that are listed "
4742 "in a certain <filename>Release</filename> file) or to all of the package "
4743 "versions coming from a particular Internet site, as identified by the site's "
4744 "fully qualified domain name."
4747 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4748 #: apt_preferences.5.xml:206
4750 "This general-form entry in the APT preferences file applies only to groups "
4751 "of packages. For example, the following record assigns a high priority to "
4752 "all package versions available from the local site."
4755 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4756 #: apt_preferences.5.xml:211
4760 "Pin: origin \"\"\n"
4761 "Pin-Priority: 999\n"
4764 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4765 #: apt_preferences.5.xml:216
4767 "A note of caution: the keyword used here is \"<literal>origin</literal>\" "
4768 "which can be used to match a hostname. The following record will assign a "
4769 "high priority to all versions available from the server identified by the "
4770 "hostname \"ftp.de.debian.org\""
4773 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4774 #: apt_preferences.5.xml:220
4778 "Pin: origin \"ftp.de.debian.org\"\n"
4779 "Pin-Priority: 999\n"
4782 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4783 #: apt_preferences.5.xml:224
4785 "This should <emphasis>not</emphasis> be confused with the Origin of a "
4786 "distribution as specified in a <filename>Release</filename> file. What "
4787 "follows the \"Origin:\" tag in a <filename>Release</filename> file is not an "
4788 "Internet address but an author or vendor name, such as \"Debian\" or "
4792 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4793 #: apt_preferences.5.xml:229
4795 "The following record assigns a low priority to all package versions "
4796 "belonging to any distribution whose Archive name is "
4797 "\"<literal>unstable</literal>\"."
4800 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4801 #: apt_preferences.5.xml:233
4805 "Pin: release a=unstable\n"
4806 "Pin-Priority: 50\n"
4809 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4810 #: apt_preferences.5.xml:238
4812 "The following record assigns a high priority to all package versions "
4813 "belonging to any distribution whose Codename is "
4814 "\"<literal>&testing-codename;</literal>\"."
4817 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4818 #: apt_preferences.5.xml:242
4822 "Pin: release n=&testing-codename;\n"
4823 "Pin-Priority: 900\n"
4826 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4827 #: apt_preferences.5.xml:247
4829 "The following record assigns a high priority to all package versions "
4830 "belonging to any release whose Archive name is \"<literal>stable</literal>\" "
4831 "and whose release Version number is \"<literal>3.0</literal>\"."
4834 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4835 #: apt_preferences.5.xml:252
4839 "Pin: release a=stable, v=3.0\n"
4840 "Pin-Priority: 500\n"
4843 #. type: Content of: <refentry><refsect1><refsect2><title>
4844 #: apt_preferences.5.xml:262
4845 msgid "Regular expressions and glob() syntax"
4848 #. type: Content of: <refentry><refsect1><refsect2><para>
4849 #: apt_preferences.5.xml:264
4851 "APT also supports pinning by glob() expressions and regular expressions "
4852 "surrounded by /. For example, the following example assigns the priority 500 "
4853 "to all packages from experimental where the name starts with gnome (as a "
4854 "glob()-like expression) or contains the word kde (as a POSIX extended "
4855 "regular expression surrounded by slashes)."
4858 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
4859 #: apt_preferences.5.xml:273
4862 "Package: gnome* /kde/\n"
4863 "Pin: release n=experimental\n"
4864 "Pin-Priority: 500\n"
4867 #. type: Content of: <refentry><refsect1><refsect2><para>
4868 #: apt_preferences.5.xml:279
4870 "The rule for those expressions is that they can occur anywhere where a "
4871 "string can occur. Thus, the following pin assigns the priority 990 to all "
4872 "packages from a release starting with karmic."
4875 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
4876 #: apt_preferences.5.xml:285
4880 "Pin: release n=karmic*\n"
4881 "Pin-Priority: 990\n"
4884 #. type: Content of: <refentry><refsect1><refsect2><para>
4885 #: apt_preferences.5.xml:291
4887 "If a regular expression occurs in a <literal>Package</literal> field, the "
4888 "behavior is the same as if this regular expression were replaced with a list "
4889 "of all package names it matches. It is undecided whether this will change in "
4890 "the future, thus you should always list wild-card pins first, so later "
4891 "specific pins override it. The pattern \"<literal>*</literal>\" in a "
4892 "Package field is not considered a glob() expression in itself."
4895 #. type: Content of: <refentry><refsect1><refsect2><title>
4896 #: apt_preferences.5.xml:307
4897 msgid "How APT Interprets Priorities"
4900 #. type: Content of: <refentry><refsect1><refsect2><para>
4901 #: apt_preferences.5.xml:310
4903 "Priorities (P) assigned in the APT preferences file must be positive or "
4904 "negative integers. They are interpreted as follows (roughly speaking):"
4907 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4908 #: apt_preferences.5.xml:315
4912 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4913 #: apt_preferences.5.xml:316
4915 "causes a version to be installed even if this constitutes a downgrade of the "
4919 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4920 #: apt_preferences.5.xml:320
4921 msgid "990 < P <=1000"
4924 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4925 #: apt_preferences.5.xml:321
4927 "causes a version to be installed even if it does not come from the target "
4928 "release, unless the installed version is more recent"
4931 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4932 #: apt_preferences.5.xml:326
4933 msgid "500 < P <=990"
4936 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4937 #: apt_preferences.5.xml:327
4939 "causes a version to be installed unless there is a version available "
4940 "belonging to the target release or the installed version is more recent"
4943 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4944 #: apt_preferences.5.xml:332
4945 msgid "100 < P <=500"
4948 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4949 #: apt_preferences.5.xml:333
4951 "causes a version to be installed unless there is a version available "
4952 "belonging to some other distribution or the installed version is more recent"
4955 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4956 #: apt_preferences.5.xml:338
4957 msgid "0 < P <=100"
4960 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4961 #: apt_preferences.5.xml:339
4963 "causes a version to be installed only if there is no installed version of "
4967 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4968 #: apt_preferences.5.xml:343
4972 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4973 #: apt_preferences.5.xml:344
4974 msgid "prevents the version from being installed"
4977 #. type: Content of: <refentry><refsect1><refsect2><para>
4978 #: apt_preferences.5.xml:349
4980 "If any specific-form records match an available package version then the "
4981 "first such record determines the priority of the package version. Failing "
4982 "that, if any general-form records match an available package version then "
4983 "the first such record determines the priority of the package version."
4986 #. type: Content of: <refentry><refsect1><refsect2><para>
4987 #: apt_preferences.5.xml:355
4989 "For example, suppose the APT preferences file contains the three records "
4990 "presented earlier:"
4993 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
4994 #: apt_preferences.5.xml:359
4998 "Pin: version 5.8*\n"
4999 "Pin-Priority: 1001\n"
5002 "Pin: origin \"\"\n"
5003 "Pin-Priority: 999\n"
5006 "Pin: release unstable\n"
5007 "Pin-Priority: 50\n"
5010 #. type: Content of: <refentry><refsect1><refsect2><para>
5011 #: apt_preferences.5.xml:372
5015 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5016 #: apt_preferences.5.xml:374
5018 "The most recent available version of the <literal>perl</literal> package "
5019 "will be installed, so long as that version's version number begins with "
5020 "\"<literal>5.8</literal>\". If <emphasis>any</emphasis> 5.8* version of "
5021 "<literal>perl</literal> is available and the installed version is 5.9*, then "
5022 "<literal>perl</literal> will be downgraded."
5025 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5026 #: apt_preferences.5.xml:379
5028 "A version of any package other than <literal>perl</literal> that is "
5029 "available from the local system has priority over other versions, even "
5030 "versions belonging to the target release."
5033 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5034 #: apt_preferences.5.xml:383
5036 "A version of a package whose origin is not the local system but some other "
5037 "site listed in &sources-list; and which belongs to an "
5038 "<literal>unstable</literal> distribution is only installed if it is selected "
5039 "for installation and no version of the package is already installed."
5042 #. type: Content of: <refentry><refsect1><refsect2><title>
5043 #: apt_preferences.5.xml:393
5044 msgid "Determination of Package Version and Distribution Properties"
5047 #. type: Content of: <refentry><refsect1><refsect2><para>
5048 #: apt_preferences.5.xml:395
5050 "The locations listed in the &sources-list; file should provide "
5051 "<filename>Packages</filename> and <filename>Release</filename> files to "
5052 "describe the packages available at that location."
5055 #. type: Content of: <refentry><refsect1><refsect2><para>
5056 #: apt_preferences.5.xml:399
5058 "The <filename>Packages</filename> file is normally found in the directory "
5059 "<filename>.../dists/<replaceable>dist-name</replaceable>/<replaceable>component</replaceable>/<replaceable>arch</replaceable></filename>: "
5061 "<filename>.../dists/stable/main/binary-i386/Packages</filename>. It "
5062 "consists of a series of multi-line records, one for each package available "
5063 "in that directory. Only two lines in each record are relevant for setting "
5067 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5068 #: apt_preferences.5.xml:407
5069 msgid "the <literal>Package:</literal> line"
5072 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5073 #: apt_preferences.5.xml:408
5074 msgid "gives the package name"
5077 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5078 #: apt_preferences.5.xml:411 apt_preferences.5.xml:461
5079 msgid "the <literal>Version:</literal> line"
5082 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5083 #: apt_preferences.5.xml:412
5084 msgid "gives the version number for the named package"
5087 #. type: Content of: <refentry><refsect1><refsect2><para>
5088 #: apt_preferences.5.xml:417
5090 "The <filename>Release</filename> file is normally found in the directory "
5091 "<filename>.../dists/<replaceable>dist-name</replaceable></filename>: for "
5092 "example, <filename>.../dists/stable/Release</filename>, or "
5093 "<filename>.../dists/&stable-codename;/Release</filename>. It consists of a "
5094 "single multi-line record which applies to <emphasis>all</emphasis> of the "
5095 "packages in the directory tree below its parent. Unlike the "
5096 "<filename>Packages</filename> file, nearly all of the lines in a "
5097 "<filename>Release</filename> file are relevant for setting APT priorities:"
5100 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5101 #: apt_preferences.5.xml:428
5102 msgid "the <literal>Archive:</literal> or <literal>Suite:</literal> line"
5105 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5106 #: apt_preferences.5.xml:429
5108 "names the archive to which all the packages in the directory tree belong. "
5109 "For example, the line \"Archive: stable\" or \"Suite: stable\" specifies "
5110 "that all of the packages in the directory tree below the parent of the "
5111 "<filename>Release</filename> file are in a <literal>stable</literal> "
5112 "archive. Specifying this value in the APT preferences file would require "
5116 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5117 #: apt_preferences.5.xml:439
5119 msgid "Pin: release a=stable\n"
5122 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5123 #: apt_preferences.5.xml:445
5124 msgid "the <literal>Codename:</literal> line"
5127 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5128 #: apt_preferences.5.xml:446
5130 "names the codename to which all the packages in the directory tree belong. "
5131 "For example, the line \"Codename: &testing-codename;\" specifies that all of "
5132 "the packages in the directory tree below the parent of the "
5133 "<filename>Release</filename> file belong to a version named "
5134 "<literal>&testing-codename;</literal>. Specifying this value in the APT "
5135 "preferences file would require the line:"
5138 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5139 #: apt_preferences.5.xml:455
5141 msgid "Pin: release n=&testing-codename;\n"
5144 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5145 #: apt_preferences.5.xml:462
5147 "names the release version. For example, the packages in the tree might "
5148 "belong to Debian release version 3.0. Note that there is normally no "
5149 "version number for the <literal>testing</literal> and "
5150 "<literal>unstable</literal> distributions because they have not been "
5151 "released yet. Specifying this in the APT preferences file would require one "
5152 "of the following lines."
5155 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5156 #: apt_preferences.5.xml:471
5159 "Pin: release v=3.0\n"
5160 "Pin: release a=stable, v=3.0\n"
5161 "Pin: release 3.0\n"
5164 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5165 #: apt_preferences.5.xml:480
5166 msgid "the <literal>Component:</literal> line"
5169 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5170 #: apt_preferences.5.xml:481
5172 "names the licensing component associated with the packages in the directory "
5173 "tree of the <filename>Release</filename> file. For example, the line "
5174 "\"Component: main\" specifies that all the packages in the directory tree "
5175 "are from the <literal>main</literal> component, which entails that they are "
5176 "licensed under terms listed in the Debian Free Software Guidelines. "
5177 "Specifying this component in the APT preferences file would require the "
5181 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5182 #: apt_preferences.5.xml:490
5184 msgid "Pin: release c=main\n"
5187 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5188 #: apt_preferences.5.xml:496
5189 msgid "the <literal>Origin:</literal> line"
5192 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5193 #: apt_preferences.5.xml:497
5195 "names the originator of the packages in the directory tree of the "
5196 "<filename>Release</filename> file. Most commonly, this is "
5197 "<literal>Debian</literal>. Specifying this origin in the APT preferences "
5198 "file would require the line:"
5201 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5202 #: apt_preferences.5.xml:503
5204 msgid "Pin: release o=Debian\n"
5207 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5208 #: apt_preferences.5.xml:509
5209 msgid "the <literal>Label:</literal> line"
5212 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5213 #: apt_preferences.5.xml:510
5215 "names the label of the packages in the directory tree of the "
5216 "<filename>Release</filename> file. Most commonly, this is "
5217 "<literal>Debian</literal>. Specifying this label in the APT preferences "
5218 "file would require the line:"
5221 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5222 #: apt_preferences.5.xml:516
5224 msgid "Pin: release l=Debian\n"
5227 #. type: Content of: <refentry><refsect1><refsect2><para>
5228 #: apt_preferences.5.xml:523
5230 "All of the <filename>Packages</filename> and <filename>Release</filename> "
5231 "files retrieved from locations listed in the &sources-list; file are stored "
5232 "in the directory <filename>/var/lib/apt/lists</filename>, or in the file "
5233 "named by the variable <literal>Dir::State::Lists</literal> in the "
5234 "<filename>apt.conf</filename> file. For example, the file "
5235 "<filename>debian.lcs.mit.edu_debian_dists_unstable_contrib_binary-i386_Release</filename> "
5236 "contains the <filename>Release</filename> file retrieved from the site "
5237 "<literal>debian.lcs.mit.edu</literal> for <literal>binary-i386</literal> "
5238 "architecture files from the <literal>contrib</literal> component of the "
5239 "<literal>unstable</literal> distribution."
5242 #. type: Content of: <refentry><refsect1><refsect2><title>
5243 #: apt_preferences.5.xml:536
5244 msgid "Optional Lines in an APT Preferences Record"
5247 #. type: Content of: <refentry><refsect1><refsect2><para>
5248 #: apt_preferences.5.xml:538
5250 "Each record in the APT preferences file can optionally begin with one or "
5251 "more lines beginning with the word <literal>Explanation:</literal>. This "
5252 "provides a place for comments."
5255 #. type: Content of: <refentry><refsect1><refsect2><title>
5256 #: apt_preferences.5.xml:547
5257 msgid "Tracking Stable"
5260 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5261 #: apt_preferences.5.xml:555
5264 "Explanation: Uninstall or do not install any Debian-originated\n"
5265 "Explanation: package versions other than those in the stable distro\n"
5267 "Pin: release a=stable\n"
5268 "Pin-Priority: 900\n"
5271 "Pin: release o=Debian\n"
5272 "Pin-Priority: -10\n"
5275 #. type: Content of: <refentry><refsect1><refsect2><para>
5276 #: apt_preferences.5.xml:549
5278 "The following APT preferences file will cause APT to assign a priority "
5279 "higher than the default (500) to all package versions belonging to a "
5280 "<literal>stable</literal> distribution and a prohibitively low priority to "
5281 "package versions belonging to other <literal>Debian</literal> "
5282 "distributions. <placeholder type=\"programlisting\" id=\"0\"/>"
5285 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5286 #: apt_preferences.5.xml:572 apt_preferences.5.xml:618 apt_preferences.5.xml:676
5289 "apt-get install <replaceable>package-name</replaceable>\n"
5291 "apt-get dist-upgrade\n"
5294 #. type: Content of: <refentry><refsect1><refsect2><para>
5295 #: apt_preferences.5.xml:567
5297 "With a suitable &sources-list; file and the above preferences file, any of "
5298 "the following commands will cause APT to upgrade to the latest "
5299 "<literal>stable</literal> version(s). <placeholder type=\"programlisting\" "
5303 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5304 #: apt_preferences.5.xml:584
5306 msgid "apt-get install <replaceable>package</replaceable>/testing\n"
5309 #. type: Content of: <refentry><refsect1><refsect2><para>
5310 #: apt_preferences.5.xml:578
5312 "The following command will cause APT to upgrade the specified package to the "
5313 "latest version from the <literal>testing</literal> distribution; the package "
5314 "will not be upgraded again unless this command is given again. <placeholder "
5315 "type=\"programlisting\" id=\"0\"/>"
5318 #. type: Content of: <refentry><refsect1><refsect2><title>
5319 #: apt_preferences.5.xml:590
5320 msgid "Tracking Testing or Unstable"
5323 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5324 #: apt_preferences.5.xml:599
5328 "Pin: release a=testing\n"
5329 "Pin-Priority: 900\n"
5332 "Pin: release a=unstable\n"
5333 "Pin-Priority: 800\n"
5336 "Pin: release o=Debian\n"
5337 "Pin-Priority: -10\n"
5340 #. type: Content of: <refentry><refsect1><refsect2><para>
5341 #: apt_preferences.5.xml:592
5343 "The following APT preferences file will cause APT to assign a high priority "
5344 "to package versions from the <literal>testing</literal> distribution, a "
5345 "lower priority to package versions from the <literal>unstable</literal> "
5346 "distribution, and a prohibitively low priority to package versions from "
5347 "other <literal>Debian</literal> distributions. <placeholder "
5348 "type=\"programlisting\" id=\"0\"/>"
5351 #. type: Content of: <refentry><refsect1><refsect2><para>
5352 #: apt_preferences.5.xml:613
5354 "With a suitable &sources-list; file and the above preferences file, any of "
5355 "the following commands will cause APT to upgrade to the latest "
5356 "<literal>testing</literal> version(s). <placeholder type=\"programlisting\" "
5360 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5361 #: apt_preferences.5.xml:633
5363 msgid "apt-get install <replaceable>package</replaceable>/unstable\n"
5366 #. type: Content of: <refentry><refsect1><refsect2><para>
5367 #: apt_preferences.5.xml:624
5369 "The following command will cause APT to upgrade the specified package to the "
5370 "latest version from the <literal>unstable</literal> distribution. "
5371 "Thereafter, <command>apt-get upgrade</command> will upgrade the package to "
5372 "the most recent <literal>testing</literal> version if that is more recent "
5373 "than the installed version, otherwise, to the most recent "
5374 "<literal>unstable</literal> version if that is more recent than the "
5375 "installed version. <placeholder type=\"programlisting\" id=\"0\"/>"
5378 #. type: Content of: <refentry><refsect1><refsect2><title>
5379 #: apt_preferences.5.xml:640
5380 msgid "Tracking the evolution of a codename release"
5383 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5384 #: apt_preferences.5.xml:654
5387 "Explanation: Uninstall or do not install any Debian-originated package "
5389 "Explanation: other than those in the distribution codenamed with "
5390 "&testing-codename; or sid\n"
5392 "Pin: release n=&testing-codename;\n"
5393 "Pin-Priority: 900\n"
5395 "Explanation: Debian unstable is always codenamed with sid\n"
5397 "Pin: release n=sid\n"
5398 "Pin-Priority: 800\n"
5401 "Pin: release o=Debian\n"
5402 "Pin-Priority: -10\n"
5405 #. type: Content of: <refentry><refsect1><refsect2><para>
5406 #: apt_preferences.5.xml:642
5408 "The following APT preferences file will cause APT to assign a priority "
5409 "higher than the default (500) to all package versions belonging to a "
5410 "specified codename of a distribution and a prohibitively low priority to "
5411 "package versions belonging to other <literal>Debian</literal> distributions, "
5412 "codenames and archives. Note that with this APT preference APT will follow "
5413 "the migration of a release from the archive <literal>testing</literal> to "
5414 "<literal>stable</literal> and later <literal>oldstable</literal>. If you "
5415 "want to follow for example the progress in <literal>testing</literal> "
5416 "notwithstanding the codename changes you should use the example "
5417 "configurations above. <placeholder type=\"programlisting\" id=\"0\"/>"
5420 #. type: Content of: <refentry><refsect1><refsect2><para>
5421 #: apt_preferences.5.xml:671
5423 "With a suitable &sources-list; file and the above preferences file, any of "
5424 "the following commands will cause APT to upgrade to the latest version(s) in "
5425 "the release codenamed with <literal>&testing-codename;</literal>. "
5426 "<placeholder type=\"programlisting\" id=\"0\"/>"
5429 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5430 #: apt_preferences.5.xml:691
5432 msgid "apt-get install <replaceable>package</replaceable>/sid\n"
5435 #. type: Content of: <refentry><refsect1><refsect2><para>
5436 #: apt_preferences.5.xml:682
5438 "The following command will cause APT to upgrade the specified package to the "
5439 "latest version from the <literal>sid</literal> distribution. Thereafter, "
5440 "<command>apt-get upgrade</command> will upgrade the package to the most "
5441 "recent <literal>&testing-codename;</literal> version if that is more recent "
5442 "than the installed version, otherwise, to the most recent "
5443 "<literal>sid</literal> version if that is more recent than the installed "
5444 "version. <placeholder type=\"programlisting\" id=\"0\"/>"
5447 #. type: Content of: <refentry><refsect1><para>
5448 #: apt_preferences.5.xml:706
5449 msgid "&apt-get; &apt-cache; &apt-conf; &sources-list;"
5452 #. type: Content of: <refentry><refnamediv><refpurpose>
5453 #: sources.list.5.xml:33
5454 msgid "Package resource list for APT"
5457 #. type: Content of: <refentry><refsect1><para>
5458 #: sources.list.5.xml:37
5460 "The package resource list is used to locate archives of the package "
5461 "distribution system in use on the system. At this time, this manual page "
5462 "documents only the packaging system used by the Debian system. This control "
5463 "file is <filename>/etc/apt/sources.list</filename>."
5466 #. type: Content of: <refentry><refsect1><para>
5467 #: sources.list.5.xml:42
5469 "The source list is designed to support any number of active sources and a "
5470 "variety of source media. The file lists one source per line, with the most "
5471 "preferred source listed first. The format of each line is: <literal>type uri "
5472 "args</literal> The first item, <literal>type</literal> determines the format "
5473 "for <literal>args</literal>. <literal>uri</literal> is a Universal Resource "
5474 "Identifier (URI), which is a superset of the more specific and well-known "
5475 "Universal Resource Locator, or URL. The rest of the line can be marked as a "
5476 "comment by using a #."
5479 #. type: Content of: <refentry><refsect1><title>
5480 #: sources.list.5.xml:53
5481 msgid "sources.list.d"
5484 #. type: Content of: <refentry><refsect1><para>
5485 #: sources.list.5.xml:54
5487 "The <filename>/etc/apt/sources.list.d</filename> directory provides a way to "
5488 "add sources.list entries in separate files. The format is the same as for "
5489 "the regular <filename>sources.list</filename> file. File names need to end "
5490 "with <filename>.list</filename> and may only contain letters (a-z and A-Z), "
5491 "digits (0-9), underscore (_), hyphen (-) and period (.) characters. "
5492 "Otherwise APT will print a notice that it has ignored a file if the file "
5493 "doesn't match a pattern in the <literal>Dir::Ignore-Files-Silently</literal> "
5494 "configuration list - in this case it will be silently ignored."
5497 #. type: Content of: <refentry><refsect1><title>
5498 #: sources.list.5.xml:65
5499 msgid "The deb and deb-src types"
5502 #. type: Content of: <refentry><refsect1><para>
5503 #: sources.list.5.xml:66
5505 "The <literal>deb</literal> type describes a typical two-level Debian "
5506 "archive, <filename>distribution/component</filename>. Typically, "
5507 "<literal>distribution</literal> is generally an archivename like "
5508 "<literal>stable</literal> or <literal>testing</literal> or a codename like "
5509 "<literal>&stable-codename;</literal> or "
5510 "<literal>&testing-codename;</literal> while component is one of "
5511 "<literal>main</literal> <literal>contrib</literal> or "
5512 "<literal>non-free</literal>. The <literal>deb-src</literal> type describes a "
5513 "debian distribution's source code in the same form as the "
5514 "<literal>deb</literal> type. A <literal>deb-src</literal> line is required "
5515 "to fetch source indexes."
5518 #. type: Content of: <refentry><refsect1><para>
5519 #: sources.list.5.xml:78
5521 "The format for a <filename>sources.list</filename> entry using the "
5522 "<literal>deb</literal> and <literal>deb-src</literal> types is:"
5525 #. type: Content of: <refentry><refsect1><literallayout>
5526 #: sources.list.5.xml:81
5528 msgid "deb [ options ] uri distribution [component1] [component2] [...]"
5531 #. type: Content of: <refentry><refsect1><para>
5532 #: sources.list.5.xml:83
5534 "The URI for the <literal>deb</literal> type must specify the base of the "
5535 "Debian distribution, from which APT will find the information it needs. "
5536 "<literal>distribution</literal> can specify an exact path, in which case the "
5537 "components must be omitted and <literal>distribution</literal> must end with "
5538 "a slash (/). This is useful for when the case only a particular sub-section "
5539 "of the archive denoted by the URI is of interest. If "
5540 "<literal>distribution</literal> does not specify an exact path, at least one "
5541 "<literal>component</literal> must be present."
5544 #. type: Content of: <refentry><refsect1><para>
5545 #: sources.list.5.xml:92
5547 "<literal>distribution</literal> may also contain a variable, "
5548 "<literal>$(ARCH)</literal> which expands to the Debian architecture (i386, "
5549 "m68k, powerpc, ...) used on the system. This permits "
5550 "architecture-independent <filename>sources.list</filename> files to be "
5551 "used. In general this is only of interest when specifying an exact path, "
5552 "<literal>APT</literal> will automatically generate a URI with the current "
5553 "architecture otherwise."
5556 #. type: Content of: <refentry><refsect1><para>
5557 #: sources.list.5.xml:100
5559 "Since only one distribution can be specified per line it may be necessary to "
5560 "have multiple lines for the same URI, if a subset of all available "
5561 "distributions or components at that location is desired. APT will sort the "
5562 "URI list after it has generated a complete set internally, and will collapse "
5563 "multiple references to the same Internet host, for instance, into a single "
5564 "connection, so that it does not inefficiently establish an FTP connection, "
5565 "close it, do something else, and then re-establish a connection to that same "
5566 "host. This feature is useful for accessing busy FTP sites with limits on the "
5567 "number of simultaneous anonymous users. APT also parallelizes connections to "
5568 "different hosts to more effectively deal with sites with low bandwidth."
5571 #. type: Content of: <refentry><refsect1><para>
5572 #: sources.list.5.xml:112
5574 "<literal>options</literal> is always optional and needs to be surounded by "
5575 "square brackets. It can consist of multiple settings in the form "
5576 "<literal><replaceable>setting</replaceable>=<replaceable>value</replaceable></literal>. "
5577 "Multiple settings are separated by spaces. The following settings are "
5578 "supported by APT, note though that unsupported settings will be ignored "
5582 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5583 #: sources.list.5.xml:117
5585 "<literal>arch=<replaceable>arch1</replaceable>,<replaceable>arch2</replaceable>,…</literal> "
5586 "can be used to specify for which architectures packages information should "
5587 "be downloaded. If this option is not set all architectures defined by the "
5588 "<literal>APT::Architectures</literal> option will be downloaded."
5591 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5592 #: sources.list.5.xml:121
5594 "<literal>trusted=yes</literal> can be set to indicate that packages from "
5595 "this source are always authenticated even if the "
5596 "<filename>Release</filename> file is not signed or the signature can't be "
5597 "checked. This disables parts of &apt-secure; and should therefore only be "
5598 "used in a local and trusted context. <literal>trusted=no</literal> is the "
5599 "opposite which handles even correctly authenticated sources as not "
5603 #. type: Content of: <refentry><refsect1><para>
5604 #: sources.list.5.xml:128
5606 "It is important to list sources in order of preference, with the most "
5607 "preferred source listed first. Typically this will result in sorting by "
5608 "speed from fastest to slowest (CD-ROM followed by hosts on a local network, "
5609 "followed by distant Internet hosts, for example)."
5612 #. type: Content of: <refentry><refsect1><para>
5613 #: sources.list.5.xml:133
5614 msgid "Some examples:"
5617 #. type: Content of: <refentry><refsect1><literallayout>
5618 #: sources.list.5.xml:135
5621 "deb http://ftp.debian.org/debian &stable-codename; main contrib non-free\n"
5622 "deb http://security.debian.org/ &stable-codename;/updates main contrib "
5627 #. type: Content of: <refentry><refsect1><title>
5628 #: sources.list.5.xml:141
5629 msgid "URI specification"
5632 #. type: Content of: <refentry><refsect1><para>
5633 #: sources.list.5.xml:143
5634 msgid "The currently recognized URI types are:"
5637 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5638 #: sources.list.5.xml:147
5640 "The file scheme allows an arbitrary directory in the file system to be "
5641 "considered an archive. This is useful for NFS mounts and local mirrors or "
5645 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5646 #: sources.list.5.xml:154
5648 "The cdrom scheme allows APT to use a local CD-ROM drive with media "
5649 "swapping. Use the &apt-cdrom; program to create cdrom entries in the source "
5653 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5654 #: sources.list.5.xml:161
5656 "The http scheme specifies an HTTP server for the archive. If an environment "
5657 "variable <envar>http_proxy</envar> is set with the format "
5658 "http://server:port/, the proxy server specified in <envar>http_proxy</envar> "
5659 "will be used. Users of authenticated HTTP/1.1 proxies may use a string of "
5660 "the format http://user:pass@server:port/. Note that this is an insecure "
5661 "method of authentication."
5664 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5665 #: sources.list.5.xml:172
5667 "The ftp scheme specifies an FTP server for the archive. APT's FTP behavior "
5668 "is highly configurable; for more information see the &apt-conf; manual "
5669 "page. Please note that a ftp proxy can be specified by using the "
5670 "<envar>ftp_proxy</envar> environment variable. It is possible to specify a "
5671 "http proxy (http proxy servers often understand ftp urls) using this method "
5672 "and ONLY this method. ftp proxies using http specified in the configuration "
5673 "file will be ignored."
5676 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5677 #: sources.list.5.xml:183
5679 "The copy scheme is identical to the file scheme except that packages are "
5680 "copied into the cache directory instead of used directly at their location. "
5681 "This is useful for people using a zip disk to copy files around with APT."
5684 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5685 #: sources.list.5.xml:190
5687 "The rsh/ssh method invokes rsh/ssh to connect to a remote host as a given "
5688 "user and access the files. It is a good idea to do prior arrangements with "
5689 "RSA keys or rhosts. Access to files on the remote uses standard "
5690 "<command>find</command> and <command>dd</command> commands to perform the "
5691 "file transfers from the remote."
5694 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
5695 #: sources.list.5.xml:198
5696 msgid "adding more recognizable URI types"
5699 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
5700 #: sources.list.5.xml:200
5702 "APT can be extended with more methods shipped in other optional packages "
5703 "which should follow the nameing scheme "
5704 "<package>apt-transport-<replaceable>method</replaceable></package>. The APT "
5705 "team e.g. maintains also the <package>apt-transport-https</package> package "
5706 "which provides access methods for https-URIs with features similar to the "
5707 "http method, but other methods for using e.g. debtorrent are also available, "
5708 "see &apt-transport-debtorrent;."
5711 #. type: Content of: <refentry><refsect1><para>
5712 #: sources.list.5.xml:212
5714 "Uses the archive stored locally (or NFS mounted) at /home/jason/debian for "
5715 "stable/main, stable/contrib, and stable/non-free."
5718 #. type: Content of: <refentry><refsect1><literallayout>
5719 #: sources.list.5.xml:214
5721 msgid "deb file:/home/jason/debian stable main contrib non-free"
5724 #. type: Content of: <refentry><refsect1><para>
5725 #: sources.list.5.xml:216
5726 msgid "As above, except this uses the unstable (development) distribution."
5729 #. type: Content of: <refentry><refsect1><literallayout>
5730 #: sources.list.5.xml:217
5732 msgid "deb file:/home/jason/debian unstable main contrib non-free"
5735 #. type: Content of: <refentry><refsect1><para>
5736 #: sources.list.5.xml:219
5737 msgid "Source line for the above"
5740 #. type: Content of: <refentry><refsect1><literallayout>
5741 #: sources.list.5.xml:220
5743 msgid "deb-src file:/home/jason/debian unstable main contrib non-free"
5746 #. type: Content of: <refentry><refsect1><para>
5747 #: sources.list.5.xml:222
5749 "The first line gets package information for the architectures in "
5750 "<literal>APT::Architectures</literal> while the second always retrieves "
5751 "<literal>amd64</literal> and <literal>armel</literal>."
5754 #. type: Content of: <refentry><refsect1><literallayout>
5755 #: sources.list.5.xml:224
5758 "deb http://ftp.debian.org/debian &stable-codename; main\n"
5759 "deb [ arch=amd64,armel ] http://ftp.debian.org/debian &stable-codename; main"
5762 #. type: Content of: <refentry><refsect1><para>
5763 #: sources.list.5.xml:227
5765 "Uses HTTP to access the archive at archive.debian.org, and uses only the "
5769 #. type: Content of: <refentry><refsect1><literallayout>
5770 #: sources.list.5.xml:229
5772 msgid "deb http://archive.debian.org/debian-archive hamm main"
5775 #. type: Content of: <refentry><refsect1><para>
5776 #: sources.list.5.xml:231
5778 "Uses FTP to access the archive at ftp.debian.org, under the debian "
5779 "directory, and uses only the &stable-codename;/contrib area."
5782 #. type: Content of: <refentry><refsect1><literallayout>
5783 #: sources.list.5.xml:233
5785 msgid "deb ftp://ftp.debian.org/debian &stable-codename; contrib"
5788 #. type: Content of: <refentry><refsect1><para>
5789 #: sources.list.5.xml:235
5791 "Uses FTP to access the archive at ftp.debian.org, under the debian "
5792 "directory, and uses only the unstable/contrib area. If this line appears as "
5793 "well as the one in the previous example in <filename>sources.list</filename> "
5794 "a single FTP session will be used for both resource lines."
5797 #. type: Content of: <refentry><refsect1><literallayout>
5798 #: sources.list.5.xml:239
5800 msgid "deb ftp://ftp.debian.org/debian unstable contrib"
5803 #. type: Content of: <refentry><refsect1><para><literallayout>
5804 #: sources.list.5.xml:248
5806 msgid "deb http://ftp.tlh.debian.org/universe unstable/binary-$(ARCH)/"
5809 #. type: Content of: <refentry><refsect1><para>
5810 #: sources.list.5.xml:241
5812 "Uses HTTP to access the archive at ftp.tlh.debian.org, under the universe "
5813 "directory, and uses only files found under "
5814 "<filename>unstable/binary-i386</filename> on i386 machines, "
5815 "<filename>unstable/binary-amd64</filename> on amd64, and so forth for other "
5816 "supported architectures. [Note this example only illustrates how to use the "
5817 "substitution variable; official debian archives are not structured like "
5818 "this] <placeholder type=\"literallayout\" id=\"0\"/>"
5821 #. type: Content of: <refentry><refsect1><para>
5822 #: sources.list.5.xml:253
5823 msgid "&apt-cache; &apt-conf;"
5826 #. type: <title></title>
5828 msgid "APT User's Guide"
5831 #. type: <author></author>
5832 #: guide.sgml:6 offline.sgml:6
5833 msgid "<name>Jason Gunthorpe </name><email>jgg@debian.org</email>"
5836 #. type: <version></version>
5838 msgid "$Id: guide.sgml,v 1.7 2003/04/26 23:26:13 doogie Exp $"
5841 #. type: <abstract></abstract>
5844 "This document provides an overview of how to use the the APT package "
5848 #. type: <copyrightsummary></copyrightsummary>
5850 msgid "Copyright © Jason Gunthorpe, 1998."
5854 #: guide.sgml:21 offline.sgml:22
5856 "\"APT\" and this document are free software; you can redistribute them "
5857 "and/or modify them under the terms of the GNU General Public License as "
5858 "published by the Free Software Foundation; either version 2 of the License, "
5859 "or (at your option) any later version."
5863 #: guide.sgml:24 offline.sgml:25
5865 "For more details, on Debian systems, see the file "
5866 "/usr/share/common-licenses/GPL for the full license."
5869 #. type: <heading></heading>
5877 "The APT package currently contains two sections, the APT "
5878 "<prgn>dselect</prgn> method and the <prgn>apt-get</prgn> command line user "
5879 "interface. Both provide a way to install and remove packages as well as "
5880 "download new packages from the Internet."
5883 #. type: <heading></heading>
5885 msgid "Anatomy of the Package System"
5891 "The Debian packaging system has a large amount of information associated "
5892 "with each package to help assure that it integrates cleanly and easily into "
5893 "the system. The most prominent of its features is the dependency system."
5899 "The dependency system allows individual programs to make use of shared "
5900 "elements in the system such as libraries. It simplifies placing infrequently "
5901 "used portions of a program in separate packages to reduce the number of "
5902 "things the average user is required to install. Also, it allows for choices "
5903 "in mail transport agents, X servers and so on."
5909 "The first step to understanding the dependency system is to grasp the "
5910 "concept of a simple dependency. The meaning of a simple dependency is that a "
5911 "package requires another package to be installed at the same time to work "
5918 "For instance, mailcrypt is an emacs extension that aids in encrypting email "
5919 "with GPG. Without GPGP installed mailcrypt is useless, so mailcrypt has a "
5920 "simple dependency on GPG. Also, because it is an emacs extension it has a "
5921 "simple dependency on emacs, without emacs it is completely useless."
5927 "The other important dependency to understand is a conflicting dependency. It "
5928 "means that a package, when installed with another package, will not work and "
5929 "may possibly be extremely harmful to the system. As an example consider a "
5930 "mail transport agent such as sendmail, exim or qmail. It is not possible to "
5931 "have two mail transport agents installed because both need to listen to the "
5932 "network to receive mail. Attempting to install two will seriously damage the "
5933 "system so all mail transport agents have a conflicting dependency with all "
5934 "other mail transport agents."
5940 "As an added complication there is the possibility for a package to pretend "
5941 "to be another package. Consider that exim and sendmail for many intents are "
5942 "identical, they both deliver mail and understand a common interface. Hence, "
5943 "the package system has a way for them to declare that they are both "
5944 "mail-transport-agents. So, exim and sendmail both declare that they provide "
5945 "a mail-transport-agent and other packages that need a mail transport agent "
5946 "depend on mail-transport-agent. This can add a great deal of confusion when "
5947 "trying to manually fix packages."
5953 "At any given time a single dependency may be met by packages that are "
5954 "already installed or it may not be. APT attempts to help resolve dependency "
5955 "issues by providing a number of automatic algorithms that help in selecting "
5956 "packages for installation."
5959 #. type: <heading></heading>
5967 "<prgn>apt-get</prgn> provides a simple way to install packages from the "
5968 "command line. Unlike <prgn>dpkg</prgn>, <prgn>apt-get</prgn> does not "
5969 "understand .deb files, it works with the package's proper name and can only "
5970 "install .deb archives from a <em>Source</em>."
5976 "The first <footnote><p>If you are using an http proxy server you must set "
5977 "the http_proxy environment variable first, see "
5978 "sources.list(5)</p></footnote> thing that should be done before using "
5979 "<prgn>apt-get</prgn> is to fetch the package lists from the <em>Sources</em> "
5980 "so that it knows what packages are available. This is done with <tt>apt-get "
5981 "update</tt>. For instance,"
5984 #. type: <example></example>
5988 "# apt-get update\n"
5989 "Get http://ftp.de.debian.org/debian-non-US/ stable/binary-i386/ Packages\n"
5990 "Get http://llug.sep.bnl.gov/debian/ testing/contrib Packages\n"
5991 "Reading Package Lists... Done\n"
5992 "Building Dependency Tree... Done"
5995 #. type: <p><taglist>
5997 msgid "Once updated there are several commands that can be used:"
6000 #. type: <tag></tag>
6008 "Upgrade will attempt to gently upgrade the whole system. Upgrade will never "
6009 "install a new package or remove an existing package, nor will it ever "
6010 "upgrade a package that might cause some other package to break. This can be "
6011 "used daily to relatively safely upgrade the system. Upgrade will list all of "
6012 "the packages that it could not upgrade, this usually means that they depend "
6013 "on new packages or conflict with some other package. <prgn>dselect</prgn> or "
6014 "<tt>apt-get install</tt> can be used to force these packages to install."
6017 #. type: <tag></tag>
6025 "Install is used to install packages by name. The package is automatically "
6026 "fetched and installed. This can be useful if you already know the name of "
6027 "the package to install and do not want to go into a GUI to select it. Any "
6028 "number of packages may be passed to install, they will all be "
6029 "fetched. Install automatically attempts to resolve dependency problems with "
6030 "the listed packages and will print a summary and ask for confirmation if "
6031 "anything other than its arguments are changed."
6034 #. type: <tag></tag>
6036 msgid "dist-upgrade"
6042 "Dist-upgrade is a complete upgrader designed to simplify upgrading between "
6043 "releases of Debian. It uses a sophisticated algorithm to determine the best "
6044 "set of packages to install, upgrade and remove to get as much of the system "
6045 "to the newest release. In some situations it may be desired to use "
6046 "dist-upgrade rather than spend the time manually resolving dependencies in "
6047 "<prgn>dselect</prgn>. Once dist-upgrade has completed then "
6048 "<prgn>dselect</prgn> can be used to install any packages that may have been "
6055 "It is important to closely look at what dist-upgrade is going to do, its "
6056 "decisions may sometimes be quite surprising."
6062 "<prgn>apt-get</prgn> has several command line options that are detailed in "
6063 "its man page, <manref section=\"8\" name=\"apt-get\">. The most useful "
6064 "option is <tt>-d</tt> which does not install the fetched files. If the "
6065 "system has to download a large number of package it would be undesired to "
6066 "start installing them in case something goes wrong. When <tt>-d</tt> is used "
6067 "the downloaded archives can be installed by simply running the command that "
6068 "caused them to be downloaded again without <tt>-d</tt>."
6071 #. type: <heading></heading>
6079 "The APT <prgn>dselect</prgn> method provides the complete APT system with "
6080 "the <prgn>dselect</prgn> package selection GUI. <prgn>dselect</prgn> is used "
6081 "to select the packages to be installed or removed and APT actually installs "
6088 "To enable the APT method you need to select [A]ccess in <prgn>dselect</prgn> "
6089 "and then choose the APT method. You will be prompted for a set of "
6090 "<em>Sources</em> which are places to fetch archives from. These can be "
6091 "remote Internet sites, local Debian mirrors or CD-ROMs. Each source can "
6092 "provide a fragment of the total Debian archive, APT will automatically "
6093 "combine them to form a complete set of packages. If you have a CD-ROM then "
6094 "it is a good idea to specify it first and then specify a mirror so that you "
6095 "have access to the latest bug fixes. APT will automatically use packages on "
6096 "your CD-ROM before downloading from the Internet."
6099 #. type: <example></example>
6103 " Set up a list of distribution source locations\n"
6105 " Please give the base URL of the debian distribution.\n"
6106 " The access schemes I know about are: http file\n"
6109 " file:/mnt/debian,\n"
6110 " ftp://ftp.debian.org/debian,\n"
6111 " http://ftp.de.debian.org/debian,\n"
6114 " URL [http://llug.sep.bnl.gov/debian]:"
6120 "The <em>Sources</em> setup starts by asking for the base of the Debian "
6121 "archive, defaulting to a HTTP mirror. Next it asks for the distribution to "
6125 #. type: <example></example>
6129 " Please give the distribution tag to get or a path to the\n"
6130 " package file ending in a /. The distribution\n"
6131 " tags are typically something like: stable unstable testing non-US\n"
6133 " Distribution [stable]:"
6139 "The distribution refers to the Debian version in the archive, "
6140 "<em>stable</em> refers to the latest released version and <em>unstable</em> "
6141 "refers to the developmental version. <em>non-US</em> is only available on "
6142 "some mirrors and refers to packages that contain encryption technology or "
6143 "other things that cannot be exported from the United States. Importing these "
6144 "packages into the US is legal however."
6147 #. type: <example></example>
6151 " Please give the components to get\n"
6152 " The components are typically something like: main contrib non-free\n"
6154 " Components [main contrib non-free]:"
6160 "The components list refers to the list of sub distributions to fetch. The "
6161 "distribution is split up based on software licenses, main being DFSG free "
6162 "packages while contrib and non-free contain things that have various "
6163 "restrictions placed on their use and distribution."
6169 "Any number of sources can be added, the setup script will continue to prompt "
6170 "until you have specified all that you want."
6176 "Before starting to use <prgn>dselect</prgn> it is necessary to update the "
6177 "available list by selecting [U]pdate from the menu. This is a superset of "
6178 "<tt>apt-get update</tt> that makes the fetched information available to "
6179 "<prgn>dselect</prgn>. [U]pdate must be performed even if <tt>apt-get "
6180 "update</tt> has been run before."
6186 "You can then go on and make your selections using [S]elect and then perform "
6187 "the installation using [I]nstall. When using the APT method the [C]onfig and "
6188 "[R]emove commands have no meaning, the [I]nstall command performs both of "
6195 "By default APT will automatically remove the package (.deb) files once they "
6196 "have been successfully installed. To change this behavior place "
6197 "<tt>Dselect::clean \"prompt\";</tt> in /etc/apt/apt.conf."
6200 #. type: <heading></heading>
6202 msgid "The Interface"
6208 "Both that APT <prgn>dselect</prgn> method and <prgn>apt-get</prgn> share the "
6209 "same interface. It is a simple system that generally tells you what it will "
6210 "do and then goes and does it. <footnote><p>The <prgn>dselect</prgn> method "
6211 "actually is a set of wrapper scripts to <prgn>apt-get</prgn>. The method "
6212 "actually provides more functionality than is present in <prgn>apt-get</prgn> "
6213 "alone.</p></footnote> After printing out a summary of what will happen APT "
6214 "then will print out some informative status messages so that you can "
6215 "estimate how far along it is and how much is left to do."
6218 #. type: <heading></heading>
6226 "Before all operations except update, APT performs a number of actions to "
6227 "prepare its internal state. It also does some checks of the system's "
6228 "state. At any time these operations can be performed by running <tt>apt-get "
6232 #. type: <example></example>
6237 "Reading Package Lists... Done\n"
6238 "Building Dependency Tree... Done"
6244 "The first thing it does is read all the package files into memory. APT uses "
6245 "a caching scheme so this operation will be faster the second time it is "
6246 "run. If some of the package files are not found then they will be ignored "
6247 "and a warning will be printed when apt-get exits."
6253 "The final operation performs a detailed analysis of the system's "
6254 "dependencies. It checks every dependency of every installed or unpacked "
6255 "package and considers if it is OK. Should this find a problem then a report "
6256 "will be printed out and <prgn>apt-get</prgn> will refuse to run."
6259 #. type: <example></example>
6264 "Reading Package Lists... Done\n"
6265 "Building Dependency Tree... Done\n"
6266 "You might want to run apt-get -f install' to correct these.\n"
6267 "Sorry, but the following packages have unmet dependencies:\n"
6268 " 9fonts: Depends: xlib6g but it is not installed\n"
6269 " uucp: Depends: mailx but it is not installed\n"
6270 " blast: Depends: xlib6g (>= 3.3-5) but it is not installed\n"
6271 " adduser: Depends: perl-base but it is not installed\n"
6272 " aumix: Depends: libgpmg1 but it is not installed\n"
6273 " debiandoc-sgml: Depends: sgml-base but it is not installed\n"
6274 " bash-builtins: Depends: bash (>= 2.01) but 2.0-3 is installed\n"
6275 " cthugha: Depends: svgalibg1 but it is not installed\n"
6276 " Depends: xlib6g (>= 3.3-5) but it is not installed\n"
6277 " libreadlineg2: Conflicts:libreadline2 (<< 2.1-2.1)"
6283 "In this example the system has many problems, including a serious problem "
6284 "with libreadlineg2. For each package that has unmet dependencies a line is "
6285 "printed out indicating the package with the problem and the dependencies "
6286 "that are unmet. A short explanation of why the package has a dependency "
6287 "problem is also included."
6293 "There are two ways a system can get into a broken state like this. The first "
6294 "is caused by <prgn>dpkg</prgn> missing some subtle relationships between "
6295 "packages when performing upgrades. <footnote><p>APT however considers all "
6296 "known dependencies and attempts to prevent broken "
6297 "packages</p></footnote>. The second is if a package installation fails "
6298 "during an operation. In this situation a package may have been unpacked "
6299 "without its dependents being installed."
6305 "The second situation is much less serious than the first because APT places "
6306 "certain constraints on the order that packages are installed. In both cases "
6307 "supplying the <tt>-f</tt> option to <prgn>apt-get</prgn> will cause APT to "
6308 "deduce a possible solution to the problem and then continue on. The APT "
6309 "<prgn>dselect</prgn> method always supplies the <tt>-f</tt> option to allow "
6310 "for easy continuation of failed maintainer scripts."
6316 "However, if the <tt>-f</tt> option is used to correct a seriously broken "
6317 "system caused by the first case then it is possible that it will either fail "
6318 "immediately or the installation sequence will fail. In either case it is "
6319 "necessary to manually use dpkg (possibly with forcing options) to correct "
6320 "the situation enough to allow APT to proceed."
6323 #. type: <heading></heading>
6325 msgid "The Status Report"
6331 "Before proceeding <prgn>apt-get</prgn> will present a report on what will "
6332 "happen. Generally the report reflects the type of operation being performed "
6333 "but there are several common elements. In all cases the lists reflect the "
6334 "final state of things, taking into account the <tt>-f</tt> option and any "
6335 "other relevant activities to the command being executed."
6338 #. type: <heading></heading>
6340 msgid "The Extra Package list"
6343 #. type: <example></example>
6347 "The following extra packages will be installed:\n"
6348 " libdbd-mysql-perl xlib6 zlib1 xzx libreadline2 libdbd-msql-perl\n"
6349 " mailpgp xdpkg fileutils pinepgp zlib1g xlib6g perl-base\n"
6350 " bin86 libgdbm1 libgdbmg1 quake-lib gmp2 bcc xbuffy\n"
6351 " squake pgp-i python-base debmake ldso perl libreadlineg2\n"
6358 "The Extra Package list shows all of the packages that will be installed or "
6359 "upgraded in excess of the ones mentioned on the command line. It is only "
6360 "generated for an <tt>install</tt> command. The listed packages are often the "
6361 "result of an Auto Install."
6364 #. type: <heading></heading>
6366 msgid "The Packages to Remove"
6369 #. type: <example></example>
6373 "The following packages will be REMOVED:\n"
6374 " xlib6-dev xpat2 tk40-dev xkeycaps xbattle xonix\n"
6375 " xdaliclock tk40 tk41 xforms0.86 ghostview xloadimage xcolorsel\n"
6376 " xadmin xboard perl-debug tkined xtetris libreadline2-dev perl-suid\n"
6383 "The Packages to Remove list shows all of the packages that will be removed "
6384 "from the system. It can be shown for any of the operations and should be "
6385 "given a careful inspection to ensure nothing important is to be taken "
6386 "off. The <tt>-f</tt> option is especially good at generating packages to "
6387 "remove so extreme care should be used in that case. The list may contain "
6388 "packages that are going to be removed because they are only partially "
6389 "installed, possibly due to an aborted installation."
6392 #. type: <heading></heading>
6394 msgid "The New Packages list"
6397 #. type: <example></example>
6401 "The following NEW packages will installed:\n"
6402 " zlib1g xlib6g perl-base libgdbmg1 quake-lib gmp2 pgp-i python-base"
6408 "The New Packages list is simply a reminder of what will happen. The packages "
6409 "listed are not presently installed in the system but will be when APT is "
6413 #. type: <heading></heading>
6415 msgid "The Kept Back list"
6418 #. type: <example></example>
6422 "The following packages have been kept back\n"
6423 " compface man-db tetex-base msql libpaper svgalib1\n"
6424 " gs snmp arena lynx xpat2 groff xscreensaver"
6430 "Whenever the whole system is being upgraded there is the possibility that "
6431 "new versions of packages cannot be installed because they require new things "
6432 "or conflict with already installed things. In this case the package will "
6433 "appear in the Kept Back list. The best way to convince packages listed there "
6434 "to install is with <tt>apt-get install</tt> or by using <prgn>dselect</prgn> "
6435 "to resolve their problems."
6438 #. type: <heading></heading>
6440 msgid "Held Packages warning"
6443 #. type: <example></example>
6447 "The following held packages will be changed:\n"
6454 "Sometimes you can ask APT to install a package that is on hold, in such a "
6455 "case it prints out a warning that the held package is going to be "
6456 "changed. This should only happen during dist-upgrade or install."
6459 #. type: <heading></heading>
6461 msgid "Final summary"
6466 msgid "Finally, APT will print out a summary of all the changes that will occur."
6469 #. type: <example></example>
6473 "206 packages upgraded, 8 newly installed, 23 to remove and 51 not "
6475 "12 packages not fully installed or removed.\n"
6476 "Need to get 65.7M/66.7M of archives. After unpacking 26.5M will be used."
6482 "The first line of the summary simply is a reduced version of all of the "
6483 "lists and includes the number of upgrades - that is packages already "
6484 "installed that have new versions available. The second line indicates the "
6485 "number of poorly configured packages, possibly the result of an aborted "
6486 "installation. The final line shows the space requirements that the "
6487 "installation needs. The first pair of numbers refer to the size of the "
6488 "archive files. The first number indicates the number of bytes that must be "
6489 "fetched from remote locations and the second indicates the total size of all "
6490 "the archives required. The next number indicates the size difference between "
6491 "the presently installed packages and the newly installed packages. It is "
6492 "roughly equivalent to the space required in /usr after everything is "
6493 "done. If a large number of packages are being removed then the value may "
6494 "indicate the amount of space that will be freed."
6500 "Some other reports can be generated by using the -u option to show packages "
6501 "to upgrade, they are similar to the previous examples."
6504 #. type: <heading></heading>
6506 msgid "The Status Display"
6512 "During the download of archives and package files APT prints out a series of "
6516 #. type: <example></example>
6520 "# apt-get update\n"
6521 "Get:1 http://ftp.de.debian.org/debian-non-US/ stable/non-US/ Packages\n"
6522 "Get:2 http://llug.sep.bnl.gov/debian/ testing/contrib Packages\n"
6523 "Hit http://llug.sep.bnl.gov/debian/ testing/main Packages\n"
6524 "Get:4 http://ftp.de.debian.org/debian-non-US/ unstable/binary-i386/ "
6526 "Get:5 http://llug.sep.bnl.gov/debian/ testing/non-free Packages\n"
6527 "11% [5 testing/non-free `Waiting for file' 0/32.1k 0%] 2203b/s 1m52s"
6533 "The lines starting with <em>Get</em> are printed out when APT begins to "
6534 "fetch a file while the last line indicates the progress of the download. The "
6535 "first percent value on the progress line indicates the total percent done of "
6536 "all files. Unfortunately since the size of the Package files is unknown "
6537 "<tt>apt-get update</tt> estimates the percent done which causes some "
6544 "The next section of the status line is repeated once for each download "
6545 "thread and indicates the operation being performed and some useful "
6546 "information about what is happening. Sometimes this section will simply read "
6547 "<em>Forking</em> which means the OS is loading the download module. The "
6548 "first word after the [ is the fetch number as shown on the history "
6549 "lines. The next word is the short form name of the object being "
6550 "downloaded. For archives it will contain the name of the package that is "
6557 "Inside of the single quote is an informative string indicating the progress "
6558 "of the negotiation phase of the download. Typically it progresses from "
6559 "<em>Connecting</em> to <em>Waiting for file</em> to <em>Downloading</em> or "
6560 "<em>Resuming</em>. The final value is the number of bytes downloaded from "
6561 "the remote site. Once the download begins this is represented as "
6562 "<tt>102/10.2k</tt> indicating that 102 bytes have been fetched and 10.2 "
6563 "kilobytes is expected. The total size is always shown in 4 figure notation "
6564 "to preserve space. After the size display is a percent meter for the file "
6565 "itself. The second last element is the instantaneous average speed. This "
6566 "values is updated every 5 seconds and reflects the rate of data transfer for "
6567 "that period. Finally is shown the estimated transfer time. This is updated "
6568 "regularly and reflects the time to complete everything at the shown transfer "
6575 "The status display updates every half second to provide a constant feedback "
6576 "on the download progress while the Get lines scroll back whenever a new file "
6577 "is started. Since the status display is constantly updated it is unsuitable "
6578 "for logging to a file, use the <tt>-q</tt> option to remove the status "
6582 #. type: <heading></heading>
6590 "APT uses <prgn>dpkg</prgn> for installing the archives and will switch over "
6591 "to the <prgn>dpkg</prgn> interface once downloading is "
6592 "completed. <prgn>dpkg</prgn> will also ask a number of questions as it "
6593 "processes the packages and the packages themselves may also ask several "
6594 "questions. Before each question there is usually a description of what it is "
6595 "asking and the questions are too varied to discuss completely here."
6598 #. type: <title></title>
6600 msgid "Using APT Offline"
6603 #. type: <version></version>
6605 msgid "$Id: offline.sgml,v 1.8 2003/02/12 15:06:41 doogie Exp $"
6608 #. type: <abstract></abstract>
6611 "This document describes how to use APT in a non-networked environment, "
6612 "specifically a 'sneaker-net' approach for performing upgrades."
6615 #. type: <copyrightsummary></copyrightsummary>
6617 msgid "Copyright © Jason Gunthorpe, 1999."
6620 #. type: <heading></heading>
6622 msgid "Introduction"
6625 #. type: <heading></heading>
6626 #: offline.sgml:34 offline.sgml:65 offline.sgml:180
6633 "Normally APT requires direct access to a Debian archive, either from a local "
6634 "media or through a network. Another common complaint is that a Debian "
6635 "machine is on a slow link, such as a modem and another machine has a very "
6636 "fast connection but they are physically distant."
6642 "The solution to this is to use large removable media such as a Zip disc or a "
6643 "SuperDisk disc. These discs are not large enough to store the entire Debian "
6644 "archive but can easily fit a subset large enough for most users. The idea is "
6645 "to use APT to generate a list of packages that are required and then fetch "
6646 "them onto the disc using another machine with good connectivity. It is even "
6647 "possible to use another Debian machine with APT or to use a completely "
6648 "different OS and a download tool like wget. Let <em>remote host</em> mean "
6649 "the machine downloading the packages, and <em>target host</em> the one with "
6650 "bad or no connection."
6656 "This is achieved by creatively manipulating the APT configuration file. The "
6657 "essential premise to tell APT to look on a disc for it's archive files. Note "
6658 "that the disc should be formated with a filesystem that can handle long file "
6659 "names such as ext2, fat32 or vfat."
6662 #. type: <heading></heading>
6664 msgid "Using APT on both machines"
6667 #. type: <p><example>
6670 "APT being available on both machines gives the simplest configuration. The "
6671 "basic idea is to place a copy of the status file on the disc and use the "
6672 "remote machine to fetch the latest package files and decide which packages "
6673 "to download. The disk directory structure should look like:"
6676 #. type: <example></example>
6690 #. type: <heading></heading>
6692 msgid "The configuration file"
6698 "The configuration file should tell APT to store its files on the disc and to "
6699 "use the configuration files on the disc as well. The sources.list should "
6700 "contain the proper sites that you wish to use from the remote machine, and "
6701 "the status file should be a copy of <em>/var/lib/dpkg/status</em> from the "
6702 "<em>target host</em>. Please note, if you are using a local archive you must "
6703 "use copy URIs, the syntax is identical to file URIs."
6706 #. type: <p><example>
6709 "<em>apt.conf</em> must contain the necessary information to make APT use the "
6713 #. type: <example></example>
6719 " /* This is not necessary if the two machines are the same arch, it "
6721 " the remote APT what architecture the target machine is */\n"
6722 " Architecture \"i386\";\n"
6724 " Get::Download-Only \"true\";\n"
6729 " /* Use the disc for state information and redirect the status file from\n"
6730 " the /var/lib/dpkg default */\n"
6731 " State \"/disc/\";\n"
6732 " State::status \"status\";\n"
6734 " // Binary caches will be stored locally\n"
6735 " Cache::archives \"/disc/archives/\";\n"
6736 " Cache \"/tmp/\";\n"
6738 " // Location of the source list.\n"
6739 " Etc \"/disc/\";\n"
6743 #. type: </example></p>
6746 "More details can be seen by examining the apt.conf man page and the sample "
6747 "configuration file in <em>/usr/share/doc/apt/examples/apt.conf</em>."
6750 #. type: <p><example>
6753 "On the target machine the first thing to do is mount the disc and copy "
6754 "<em>/var/lib/dpkg/status</em> to it. You will also need to create the "
6755 "directories outlined in the Overview, <em>archives/partial/</em> and "
6756 "<em>lists/partial/</em>. Then take the disc to the remote machine and "
6757 "configure the sources.list. On the remote machine execute the following:"
6760 #. type: <example></example>
6764 " # export APT_CONFIG=\"/disc/apt.conf\"\n"
6765 " # apt-get update\n"
6766 " [ APT fetches the package files ]\n"
6767 " # apt-get dist-upgrade\n"
6768 " [ APT fetches all the packages needed to upgrade the target machine ]"
6771 #. type: </example></p>
6774 "The dist-upgrade command can be replaced with any other standard APT "
6775 "commands, particularly dselect-upgrade. You can even use an APT front end "
6776 "such as <em>dselect</em>. However this presents a problem in communicating "
6777 "your selections back to the local computer."
6780 #. type: <p><example>
6783 "Now the disc contains all of the index files and archives needed to upgrade "
6784 "the target machine. Take the disc back and run:"
6787 #. type: <example></example>
6791 " # export APT_CONFIG=\"/disc/apt.conf\"\n"
6792 " # apt-get check\n"
6793 " [ APT generates a local copy of the cache files ]\n"
6794 " # apt-get --no-d -o dir::state::status=/var/lib/dpkg/status dist-upgrade\n"
6795 " [ Or any other APT command ]"
6801 "It is necessary for proper function to re-specify the status file to be the "
6802 "local one. This is very important!"
6808 "If you are using dselect you can do the very risky operation of copying "
6809 "disc/status to /var/lib/dpkg/status so that any selections you made on the "
6810 "remote machine are updated. I highly recommend that people only make "
6811 "selections on the local machine - but this may not always be possible. DO "
6812 "NOT copy the status file if dpkg or APT have been run in the mean time!!"
6815 #. type: <heading></heading>
6817 msgid "Using APT and wget"
6823 "<em>wget</em> is a popular and portable download tool that can run on nearly "
6824 "any machine. Unlike the method above this requires that the Debian machine "
6825 "already has a list of available packages."
6831 "The basic idea is to create a disc that has only the archive files "
6832 "downloaded from the remote site. This is done by using the --print-uris "
6833 "option to apt-get and then preparing a wget script to actually fetch the "
6837 #. type: <heading></heading>
6842 #. type: <p><example>
6845 "Unlike the previous technique no special configuration files are "
6846 "required. We merely use the standard APT commands to generate the file list."
6849 #. type: <example></example>
6853 " # apt-get dist-upgrade \n"
6854 " [ Press no when prompted, make sure you are happy with the actions ]\n"
6855 " # apt-get -qq --print-uris dist-upgrade > uris\n"
6856 " # awk '{print \"wget -O \" $2 \" \" $1}' < uris > /disc/wget-script"
6859 #. type: </example></p>
6862 "Any command other than dist-upgrade could be used here, including "
6869 "The /disc/wget-script file will now contain a list of wget commands to "
6870 "execute in order to fetch the necessary archives. This script should be run "
6871 "with the current directory as the disc's mount point so as to save the "
6872 "output on the disc."
6875 #. type: <p><example>
6877 msgid "The remote machine would do something like"
6880 #. type: <example></example>
6885 " # sh -x ./wget-script\n"
6889 #. type: </example><example>
6892 "Once the archives are downloaded and the disc returned to the Debian machine "
6893 "installation can proceed using,"
6896 #. type: <example></example>
6899 msgid " # apt-get -o dir::cache::archives=\"/disc/\" dist-upgrade"
6902 #. type: </example></p>
6904 msgid "Which will use the already fetched archives on the disc."