1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2009-10-19 21:56+0300\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Content-Type: text/plain; charset=utf-8\n"
16 "Content-Transfer-Encoding: ENCODING"
33 msgid "Debian GNU/Linux"
44 msgid "apt - Advanced Package Tool"
67 "APT is a management system for software packages. For normal day to day "
68 "package management there are several frontends available, such as "
69 "B<aptitude>(8) for the command line or B<synaptic>(8) for the X Window "
70 "System. Some options are only implemented in B<apt-get>(8) though."
99 "B<apt-cache>(8), B<apt-get>(8), B<apt.conf>(5), B<sources.list>(5), "
100 "B<apt_preferences>(5), B<apt-secure>(8)"
111 msgid "apt returns zero on normal operation, decimal 100 on error."
122 msgid "This manpage isn't even started."
128 "See E<lt>http://bugs.debian.org/aptE<gt>. If you wish to report a bug in "
129 "B<apt>, please see I</usr/share/doc/debian/bug-reporting.txt> or the "
130 "B<reportbug>(1) command."
141 msgid "apt was written by the APT team E<lt>apt@packages.debian.orgE<gt>."
146 msgid "<!-- -*- mode: sgml; mode: fold -*- -->"
152 "<!-- Some common paths.. --> <!ENTITY docdir \"/usr/share/doc/apt/\"> "
153 "<!ENTITY guidesdir \"/usr/share/doc/apt-doc/\"> <!ENTITY configureindex "
154 "\"<filename>&docdir;examples/configure-index.gz</filename>\"> <!ENTITY "
155 "aptconfdir \"<filename>/etc/apt.conf</filename>\"> <!ENTITY statedir "
156 "\"/var/lib/apt\"> <!ENTITY cachedir \"/var/cache/apt\">"
163 "<!-- Cross references to other man pages -->\n"
164 "<!ENTITY apt-conf \"<citerefentry>\n"
165 " <refentrytitle><filename>apt.conf</filename></refentrytitle>\n"
166 " <manvolnum>5</manvolnum>\n"
167 " </citerefentry>\"\n"
175 "<!ENTITY apt-get \"<citerefentry>\n"
176 " <refentrytitle><command>apt-get</command></refentrytitle>\n"
177 " <manvolnum>8</manvolnum>\n"
178 " </citerefentry>\"\n"
186 "<!ENTITY apt-config \"<citerefentry>\n"
187 " <refentrytitle><command>apt-config</command></refentrytitle>\n"
188 " <manvolnum>8</manvolnum>\n"
189 " </citerefentry>\"\n"
197 "<!ENTITY apt-cdrom \"<citerefentry>\n"
198 " <refentrytitle><command>apt-cdrom</command></refentrytitle>\n"
199 " <manvolnum>8</manvolnum>\n"
200 " </citerefentry>\"\n"
208 "<!ENTITY apt-cache \"<citerefentry>\n"
209 " <refentrytitle><command>apt-cache</command></refentrytitle>\n"
210 " <manvolnum>8</manvolnum>\n"
211 " </citerefentry>\"\n"
219 "<!ENTITY apt-preferences \"<citerefentry>\n"
220 " <refentrytitle><command>apt_preferences</command></refentrytitle>\n"
221 " <manvolnum>5</manvolnum>\n"
222 " </citerefentry>\"\n"
230 "<!ENTITY apt-key \"<citerefentry>\n"
231 " <refentrytitle><command>apt-key</command></refentrytitle>\n"
232 " <manvolnum>8</manvolnum>\n"
233 " </citerefentry>\"\n"
241 "<!ENTITY apt-secure \"<citerefentry>\n"
242 " <refentrytitle>apt-secure</refentrytitle>\n"
243 " <manvolnum>8</manvolnum>\n"
244 " </citerefentry>\"\n"
252 "<!ENTITY apt-ftparchive \"<citerefentry>\n"
253 " <refentrytitle><filename>apt-ftparchive</filename></refentrytitle>\n"
254 " <manvolnum>1</manvolnum>\n"
255 " </citerefentry>\"\n"
263 "<!ENTITY sources-list \"<citerefentry>\n"
264 " <refentrytitle><filename>sources.list</filename></refentrytitle>\n"
265 " <manvolnum>5</manvolnum>\n"
266 " </citerefentry>\"\n"
274 "<!ENTITY reportbug \"<citerefentry>\n"
275 " <refentrytitle><command>reportbug</command></refentrytitle>\n"
276 " <manvolnum>1</manvolnum>\n"
277 " </citerefentry>\"\n"
285 "<!ENTITY dpkg \"<citerefentry>\n"
286 " <refentrytitle><command>dpkg</command></refentrytitle>\n"
287 " <manvolnum>8</manvolnum>\n"
288 " </citerefentry>\"\n"
296 "<!ENTITY dpkg-buildpackage \"<citerefentry>\n"
297 " <refentrytitle><command>dpkg-buildpackage</command></refentrytitle>\n"
298 " <manvolnum>1</manvolnum>\n"
299 " </citerefentry>\"\n"
307 "<!ENTITY gzip \"<citerefentry>\n"
308 " <refentrytitle><command>gzip</command></refentrytitle>\n"
309 " <manvolnum>1</manvolnum>\n"
310 " </citerefentry>\"\n"
318 "<!ENTITY dpkg-scanpackages \"<citerefentry>\n"
319 " <refentrytitle><command>dpkg-scanpackages</command></refentrytitle>\n"
320 " <manvolnum>8</manvolnum>\n"
321 " </citerefentry>\"\n"
329 "<!ENTITY dpkg-scansources \"<citerefentry>\n"
330 " <refentrytitle><command>dpkg-scansources</command></refentrytitle>\n"
331 " <manvolnum>8</manvolnum>\n"
332 " </citerefentry>\"\n"
340 "<!ENTITY dselect \"<citerefentry>\n"
341 " <refentrytitle><command>dselect</command></refentrytitle>\n"
342 " <manvolnum>8</manvolnum>\n"
343 " </citerefentry>\"\n"
351 "<!ENTITY aptitude \"<citerefentry>\n"
352 " <refentrytitle><command>aptitude</command></refentrytitle>\n"
353 " <manvolnum>8</manvolnum>\n"
354 " </citerefentry>\"\n"
362 "<!ENTITY synaptic \"<citerefentry>\n"
363 " <refentrytitle><command>synaptic</command></refentrytitle>\n"
364 " <manvolnum>8</manvolnum>\n"
365 " </citerefentry>\"\n"
373 "<!ENTITY debsign \"<citerefentry>\n"
374 " <refentrytitle><command>debsign</command></refentrytitle>\n"
375 " <manvolnum>1</manvolnum>\n"
376 " </citerefentry>\"\n"
384 "<!ENTITY debsig-verify \"<citerefentry>\n"
385 " <refentrytitle><command>debsig-verify</command></refentrytitle>\n"
386 " <manvolnum>1</manvolnum>\n"
387 " </citerefentry>\"\n"
395 "<!ENTITY gpg \"<citerefentry>\n"
396 " <refentrytitle><command>gpg</command></refentrytitle>\n"
397 " <manvolnum>1</manvolnum>\n"
398 " </citerefentry>\"\n"
406 "<!ENTITY gnome-apt \"<citerefentry>\n"
407 " <refentrytitle><command>gnome-apt</command></refentrytitle>\n"
408 " <manvolnum>1</manvolnum>\n"
409 " </citerefentry>\"\n"
417 "<!ENTITY wajig \"<citerefentry>\n"
418 " <refentrytitle><command>wajig</command></refentrytitle>\n"
419 " <manvolnum>1</manvolnum>\n"
420 " </citerefentry>\"\n"
428 "<!-- Boiler plate docinfo section -->\n"
429 "<!ENTITY apt-docinfo \"\n"
431 " <address><email>apt@packages.debian.org</email></address>\n"
433 " <firstname>Jason</firstname> <surname>Gunthorpe</surname>\n"
434 " <contrib></contrib>\n"
436 " <copyright><year>1998-2001</year> <holder>Jason "
437 "Gunthorpe</holder></copyright>\n"
438 " <date>28 October 2008</date>\n"
439 " <productname>Linux</productname>\n"
454 "<!ENTITY apt-email \"\n"
456 " <email>apt@packages.debian.org</email>\n"
465 "<!ENTITY apt-author.jgunthorpe \"\n"
467 " <firstname>Jason</firstname>\n"
468 " <surname>Gunthorpe</surname>\n"
469 " <contrib></contrib>\n"
478 "<!ENTITY apt-author.moconnor \"\n"
480 " <firstname>Mike</firstname>\n"
481 " <surname>O'Connor</surname>\n"
482 " <contrib></contrib>\n"
491 "<!ENTITY apt-author.team \"\n"
493 " <othername>APT team</othername>\n"
494 " <contrib></contrib>\n"
500 #: apt.ent:204 apt.ent:215
503 "<!ENTITY apt-product \"\n"
504 " <productname>Linux</productname>\n"
512 "<!ENTITY apt-copyright \"\n"
514 " <holder>Jason Gunthorpe</holder>\n"
515 " <year>1998-2001</year>\n"
524 "<!ENTITY apt-qapage \"\n"
526 "\t\t<ulink url='http://packages.qa.debian.org/a/apt.html'>QA Page</ulink>\n"
535 "<!-- Boiler plate Bug reporting section -->\n"
536 "<!ENTITY manbugs \"\n"
537 " <refsect1><title>Bugs</title>\n"
538 " <para><ulink url='http://bugs.debian.org/src:apt'>APT bug "
540 " If you wish to report a bug in APT, please see\n"
541 " <filename>/usr/share/doc/debian/bug-reporting.txt</filename> or the\n"
542 " &reportbug; command.\n"
552 "<!-- Boiler plate Author section -->\n"
553 "<!ENTITY manauthor \"\n"
554 " <refsect1><title>Author</title>\n"
555 " <para>APT was written by the APT team "
556 "<email>apt@packages.debian.org</email>.\n"
566 "<!-- Should be used within the option section of the text to\n"
567 " put in the blurb about -h, -v, -c and -o -->\n"
568 "<!ENTITY apt-commonoptions \"\n"
569 " <varlistentry><term><option>-h</option></term>\n"
570 " <term><option>--help</option></term>\n"
571 " <listitem><para>Show a short usage summary.\n"
582 " <term><option>-v</option></term>\n"
583 " <term><option>--version</option></term>\n"
584 " <listitem><para>Show the program version.\n"
595 " <term><option>-c</option></term>\n"
596 " <term><option>--config-file</option></term>\n"
597 " <listitem><para>Configuration File; Specify a configuration file to "
599 " The program will read the default configuration file and then this \n"
600 " configuration file. See &apt-conf; for syntax information. \n"
611 " <term><option>-o</option></term>\n"
612 " <term><option>--option</option></term>\n"
613 " <listitem><para>Set a Configuration Option; This will set an "
615 " configuration option. The syntax is <option>-o "
616 "Foo::Bar=bar</option>.\n"
617 " <option>-o</option> and <option>--option</option> can be used "
619 " times to set different options.\n"
630 "<!-- Should be used within the option section of the text to\n"
631 " put in the blurb about -h, -v, -c and -o -->\n"
632 "<!ENTITY apt-cmdblurb \"\n"
633 " <para>All command line options may be set using the configuration file, "
635 " descriptions indicate the configuration option to set. For boolean\n"
636 " options you can override the config file by using something like \n"
637 " <option>-f-</option>,<option>--no-f</option>, <option>-f=no</option>\n"
638 " or several other variations.\n"
647 "<!ENTITY file-aptconf \"\n"
648 " <varlistentry><term><filename>/etc/apt/apt.conf</filename></term>\n"
649 " <listitem><para>APT configuration file.\n"
650 " Configuration Item: "
651 "<literal>Dir::Etc::Main</literal>.</para></listitem>\n"
659 " <varlistentry><term><filename>/etc/apt/apt.conf.d/</filename></term>\n"
660 " <listitem><para>APT configuration file fragments.\n"
661 " Configuration Item: "
662 "<literal>Dir::Etc::Parts</literal>.</para></listitem>\n"
671 "<!ENTITY file-cachearchives \"\n"
672 " <varlistentry><term><filename>&cachedir;/archives/</filename></term>\n"
673 " <listitem><para>Storage area for retrieved package files.\n"
674 " Configuration Item: "
675 "<literal>Dir::Cache::Archives</literal>.</para></listitem>\n"
684 "<varlistentry><term><filename>&cachedir;/archives/partial/</filename></term>\n"
685 " <listitem><para>Storage area for package files in transit.\n"
686 " Configuration Item: <literal>Dir::Cache::Archives</literal> (implicit "
687 "partial). </para></listitem>\n"
696 "<!ENTITY file-preferences \"\n"
697 " <varlistentry><term><filename>/etc/apt/preferences</filename></term>\n"
698 " <listitem><para>Version preferences file.\n"
699 " This is where you would specify "pinning",\n"
700 " i.e. a preference to get certain packages\n"
701 " from a separate source\n"
702 " or from a different version of a distribution.\n"
703 " Configuration Item: "
704 "<literal>Dir::Etc::Preferences</literal>.</para></listitem>\n"
713 "<varlistentry><term><filename>/etc/apt/preferences.d/</filename></term>\n"
714 " <listitem><para>File fragments for the version preferences.\n"
715 " Configuration Item: "
716 "<literal>Dir::Etc::PreferencesParts</literal>.</para></listitem>\n"
725 "<!ENTITY file-sourceslist \"\n"
726 " <varlistentry><term><filename>/etc/apt/sources.list</filename></term>\n"
727 " <listitem><para>Locations to fetch packages from.\n"
728 " Configuration Item: "
729 "<literal>Dir::Etc::SourceList</literal>.</para></listitem>\n"
738 "<varlistentry><term><filename>/etc/apt/sources.list.d/</filename></term>\n"
739 " <listitem><para>File fragments for locations to fetch packages from.\n"
740 " Configuration Item: "
741 "<literal>Dir::Etc::SourceParts</literal>.</para></listitem>\n"
750 "<!ENTITY file-statelists \"\n"
751 " <varlistentry><term><filename>&statedir;/lists/</filename></term>\n"
752 " <listitem><para>Storage area for state information for each package "
753 "resource specified in\n"
755 " Configuration Item: "
756 "<literal>Dir::State::Lists</literal>.</para></listitem>\n"
765 "<varlistentry><term><filename>&statedir;/lists/partial/</filename></term>\n"
766 " <listitem><para>Storage area for state information in transit.\n"
767 " Configuration Item: <literal>Dir::State::Lists</literal> (implicit "
768 "partial).</para></listitem>\n"
773 #. The last update date
774 #. type: Content of: <refentry><refentryinfo>
775 #: apt-cache.8.xml:13 apt-config.8.xml:13 apt-extracttemplates.1.xml:13 apt-ftparchive.1.xml:13 apt-sortpkgs.1.xml:13 sources.list.5.xml:13
777 "&apt-author.jgunthorpe; &apt-author.team; &apt-email; &apt-product; <date>29 "
778 "February 2004</date>"
781 #. type: Content of: <refentry><refnamediv><refname>
782 #: apt-cache.8.xml:22 apt-cache.8.xml:29
786 #. type: Content of: <refentry><refmeta><manvolnum>
787 #: apt-cache.8.xml:23 apt-cdrom.8.xml:22 apt-config.8.xml:23 apt-get.8.xml:23 apt-key.8.xml:15 apt-mark.8.xml:23 apt-secure.8.xml:15
791 #. type: Content of: <refentry><refmeta><refmiscinfo>
792 #: apt-cache.8.xml:24 apt-cdrom.8.xml:23 apt-config.8.xml:24 apt-extracttemplates.1.xml:24 apt-ftparchive.1.xml:24 apt-get.8.xml:24 apt-key.8.xml:16 apt-mark.8.xml:24 apt-secure.8.xml:16 apt-sortpkgs.1.xml:24 apt.conf.5.xml:30 apt_preferences.5.xml:23 sources.list.5.xml:24
796 #. type: Content of: <refentry><refnamediv><refpurpose>
797 #: apt-cache.8.xml:30
798 msgid "APT package handling utility -- cache manipulator"
801 #. type: Content of: <refentry><refsynopsisdiv><cmdsynopsis>
802 #: apt-cache.8.xml:36
804 "<command>apt-cache</command> <arg><option>-hvsn</option></arg> "
805 "<arg><option>-o=<replaceable>config string</replaceable></option></arg> "
806 "<arg><option>-c=<replaceable>file</replaceable></option></arg> <group "
807 "choice=\"req\"> <arg>add <arg choice=\"plain\" "
808 "rep=\"repeat\"><replaceable>file</replaceable></arg></arg> "
809 "<arg>gencaches</arg> <arg>showpkg <arg choice=\"plain\" "
810 "rep=\"repeat\"><replaceable>pkg</replaceable></arg></arg> <arg>showsrc <arg "
811 "choice=\"plain\" rep=\"repeat\"><replaceable>pkg</replaceable></arg></arg> "
812 "<arg>stats</arg> <arg>dump</arg> <arg>dumpavail</arg> <arg>unmet</arg> "
814 "choice=\"plain\"><replaceable>regex</replaceable></arg></arg> <arg>show <arg "
815 "choice=\"plain\" rep=\"repeat\"><replaceable>pkg</replaceable></arg></arg> "
816 "<arg>depends <arg choice=\"plain\" "
817 "rep=\"repeat\"><replaceable>pkg</replaceable></arg></arg> <arg>rdepends <arg "
818 "choice=\"plain\" rep=\"repeat\"><replaceable>pkg</replaceable></arg></arg> "
819 "<arg>pkgnames <arg "
820 "choice=\"plain\"><replaceable>prefix</replaceable></arg></arg> <arg>dotty "
821 "<arg choice=\"plain\" "
822 "rep=\"repeat\"><replaceable>pkg</replaceable></arg></arg> <arg>xvcg <arg "
823 "choice=\"plain\" rep=\"repeat\"><replaceable>pkg</replaceable></arg></arg> "
824 "<arg>policy <arg choice=\"plain\" "
825 "rep=\"repeat\"><replaceable>pkgs</replaceable></arg></arg> <arg>madison <arg "
826 "choice=\"plain\" rep=\"repeat\"><replaceable>pkgs</replaceable></arg></arg> "
830 #. type: Content of: <refentry><refsect1><title>
831 #: apt-cache.8.xml:62 apt-cdrom.8.xml:47 apt-config.8.xml:47 apt-extracttemplates.1.xml:43 apt-ftparchive.1.xml:55 apt-get.8.xml:125 apt-key.8.xml:34 apt-mark.8.xml:52 apt-secure.8.xml:40 apt-sortpkgs.1.xml:44 apt.conf.5.xml:39 apt_preferences.5.xml:33 sources.list.5.xml:33
835 #. type: Content of: <refentry><refsect1><para>
836 #: apt-cache.8.xml:63
838 "<command>apt-cache</command> performs a variety of operations on APT's "
839 "package cache. <command>apt-cache</command> does not manipulate the state of "
840 "the system but does provide operations to search and generate interesting "
841 "output from the package metadata."
844 #. type: Content of: <refentry><refsect1><para>
845 #: apt-cache.8.xml:68 apt-get.8.xml:131
847 "Unless the <option>-h</option>, or <option>--help</option> option is given, "
848 "one of the commands below must be present."
851 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
852 #: apt-cache.8.xml:72
853 msgid "add <replaceable>file(s)</replaceable>"
856 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
857 #: apt-cache.8.xml:73
859 "<literal>add</literal> adds the named package index files to the package "
860 "cache. This is for debugging only."
863 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
864 #: apt-cache.8.xml:77
868 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
869 #: apt-cache.8.xml:78
871 "<literal>gencaches</literal> performs the same operation as <command>apt-get "
872 "check</command>. It builds the source and package caches from the sources in "
873 "&sources-list; and from <filename>/var/lib/dpkg/status</filename>."
876 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
877 #: apt-cache.8.xml:84
878 msgid "showpkg <replaceable>pkg(s)</replaceable>"
881 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
882 #: apt-cache.8.xml:85
884 "<literal>showpkg</literal> displays information about the packages listed on "
885 "the command line. Remaining arguments are package names. The available "
886 "versions and reverse dependencies of each package listed are listed, as well "
887 "as forward dependencies for each version. Forward (normal) dependencies are "
888 "those packages upon which the package in question depends; reverse "
889 "dependencies are those packages that depend upon the package in "
890 "question. Thus, forward dependencies must be satisfied for a package, but "
891 "reverse dependencies need not be. For instance, <command>apt-cache showpkg "
892 "libreadline2</command> would produce output similar to the following:"
895 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><informalexample><programlisting>
896 #: apt-cache.8.xml:97
899 "Package: libreadline2\n"
900 "Versions: 2.1-12(/var/state/apt/lists/foo_Packages),\n"
901 "Reverse Depends: \n"
902 " libreadlineg2,libreadline2\n"
903 " libreadline2-altdev,libreadline2\n"
905 "2.1-12 - libc5 (2 5.4.0-0) ncurses3.0 (0 (null))\n"
908 "Reverse Provides: \n"
911 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
912 #: apt-cache.8.xml:109
914 "Thus it may be seen that libreadline2, version 2.1-12, depends on libc5 and "
915 "ncurses3.0 which must be installed for libreadline2 to work. In turn, "
916 "libreadlineg2 and libreadline2-altdev depend on libreadline2. If "
917 "libreadline2 is installed, libc5 and ncurses3.0 (and ldso) must also be "
918 "installed; libreadlineg2 and libreadline2-altdev do not have to be "
919 "installed. For the specific meaning of the remainder of the output it is "
920 "best to consult the apt source code."
923 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
924 #: apt-cache.8.xml:118
928 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
929 #: apt-cache.8.xml:118
931 "<literal>stats</literal> displays some statistics about the cache. No "
932 "further arguments are expected. Statistics reported are:"
935 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
936 #: apt-cache.8.xml:121
938 "<literal>Total package names</literal> is the number of package names found "
942 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
943 #: apt-cache.8.xml:125
945 "<literal>Normal packages</literal> is the number of regular, ordinary "
946 "package names; these are packages that bear a one-to-one correspondence "
947 "between their names and the names used by other packages for them in "
948 "dependencies. The majority of packages fall into this category."
951 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
952 #: apt-cache.8.xml:131
954 "<literal>Pure virtual packages</literal> is the number of packages that "
955 "exist only as a virtual package name; that is, packages only \"provide\" the "
956 "virtual package name, and no package actually uses the name. For instance, "
957 "\"mail-transport-agent\" in the Debian GNU/Linux system is a pure virtual "
958 "package; several packages provide \"mail-transport-agent\", but there is no "
959 "package named \"mail-transport-agent\"."
962 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
963 #: apt-cache.8.xml:139
965 "<literal>Single virtual packages</literal> is the number of packages with "
966 "only one package providing a particular virtual package. For example, in the "
967 "Debian GNU/Linux system, \"X11-text-viewer\" is a virtual package, but only "
968 "one package, xless, provides \"X11-text-viewer\"."
971 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
972 #: apt-cache.8.xml:145
974 "<literal>Mixed virtual packages</literal> is the number of packages that "
975 "either provide a particular virtual package or have the virtual package name "
976 "as the package name. For instance, in the Debian GNU/Linux system, "
977 "\"debconf\" is both an actual package, and provided by the debconf-tiny "
981 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
982 #: apt-cache.8.xml:152
984 "<literal>Missing</literal> is the number of package names that were "
985 "referenced in a dependency but were not provided by any package. Missing "
986 "packages may be in evidence if a full distribution is not accessed, or if a "
987 "package (real or virtual) has been dropped from the distribution. Usually "
988 "they are referenced from Conflicts or Breaks statements."
991 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
992 #: apt-cache.8.xml:159
994 "<literal>Total distinct</literal> versions is the number of package versions "
995 "found in the cache; this value is therefore at least equal to the number of "
996 "total package names. If more than one distribution (both \"stable\" and "
997 "\"unstable\", for instance), is being accessed, this value can be "
998 "considerably larger than the number of total package names."
1001 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1002 #: apt-cache.8.xml:166
1004 "<literal>Total dependencies</literal> is the number of dependency "
1005 "relationships claimed by all of the packages in the cache."
1008 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1009 #: apt-cache.8.xml:173
1010 msgid "showsrc <replaceable>pkg(s)</replaceable>"
1013 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1014 #: apt-cache.8.xml:174
1016 "<literal>showsrc</literal> displays all the source package records that "
1017 "match the given package names. All versions are shown, as well as all "
1018 "records that declare the name to be a Binary."
1021 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1022 #: apt-cache.8.xml:179 apt-config.8.xml:84
1026 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1027 #: apt-cache.8.xml:180
1029 "<literal>dump</literal> shows a short listing of every package in the "
1030 "cache. It is primarily for debugging."
1033 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1034 #: apt-cache.8.xml:184
1038 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1039 #: apt-cache.8.xml:185
1041 "<literal>dumpavail</literal> prints out an available list to stdout. This is "
1042 "suitable for use with &dpkg; and is used by the &dselect; method."
1045 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1046 #: apt-cache.8.xml:189
1050 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1051 #: apt-cache.8.xml:190
1053 "<literal>unmet</literal> displays a summary of all unmet dependencies in the "
1057 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1058 #: apt-cache.8.xml:194
1059 msgid "show <replaceable>pkg(s)</replaceable>"
1062 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1063 #: apt-cache.8.xml:195
1065 "<literal>show</literal> performs a function similar to <command>dpkg "
1066 "--print-avail</command>; it displays the package records for the named "
1070 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1071 #: apt-cache.8.xml:200
1072 msgid "search <replaceable>regex [ regex ... ]</replaceable>"
1075 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1076 #: apt-cache.8.xml:201
1078 "<literal>search</literal> performs a full text search on all available "
1079 "package lists for the POSIX regex pattern given, see "
1080 "<citerefentry><refentrytitle><command>regex</command></refentrytitle> "
1081 "<manvolnum>7</manvolnum></citerefentry>. It searches the package names and "
1082 "the descriptions for an occurrence of the regular expression and prints out "
1083 "the package name and the short description, including virtual package "
1084 "names. If <option>--full</option> is given then output identical to "
1085 "<literal>show</literal> is produced for each matched package, and if "
1086 "<option>--names-only</option> is given then the long description is not "
1087 "searched, only the package name is."
1090 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1091 #: apt-cache.8.xml:214
1093 "Separate arguments can be used to specify multiple search patterns that are "
1097 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1098 #: apt-cache.8.xml:218
1099 msgid "depends <replaceable>pkg(s)</replaceable>"
1102 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1103 #: apt-cache.8.xml:219
1105 "<literal>depends</literal> shows a listing of each dependency a package has "
1106 "and all the possible other packages that can fulfill that dependency."
1109 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1110 #: apt-cache.8.xml:223
1111 msgid "rdepends <replaceable>pkg(s)</replaceable>"
1114 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1115 #: apt-cache.8.xml:224
1117 "<literal>rdepends</literal> shows a listing of each reverse dependency a "
1121 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1122 #: apt-cache.8.xml:228
1123 msgid "pkgnames <replaceable>[ prefix ]</replaceable>"
1126 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1127 #: apt-cache.8.xml:229
1129 "This command prints the name of each package APT knows. The optional "
1130 "argument is a prefix match to filter the name list. The output is suitable "
1131 "for use in a shell tab complete function and the output is generated "
1132 "extremely quickly. This command is best used with the "
1133 "<option>--generate</option> option."
1136 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1137 #: apt-cache.8.xml:234
1139 "Note that a package which APT knows of is not necessarily available to "
1140 "download, installable or installed, e.g. virtual packages are also listed in "
1141 "the generated list."
1144 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1145 #: apt-cache.8.xml:239
1146 msgid "dotty <replaceable>pkg(s)</replaceable>"
1149 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1150 #: apt-cache.8.xml:240
1152 "<literal>dotty</literal> takes a list of packages on the command line and "
1153 "generates output suitable for use by dotty from the <ulink "
1154 "url=\"http://www.research.att.com/sw/tools/graphviz/\">GraphViz</ulink> "
1155 "package. The result will be a set of nodes and edges representing the "
1156 "relationships between the packages. By default the given packages will trace "
1157 "out all dependent packages; this can produce a very large graph. To limit "
1158 "the output to only the packages listed on the command line, set the "
1159 "<literal>APT::Cache::GivenOnly</literal> option."
1162 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1163 #: apt-cache.8.xml:249
1165 "The resulting nodes will have several shapes; normal packages are boxes, "
1166 "pure provides are triangles, mixed provides are diamonds, missing packages "
1167 "are hexagons. Orange boxes mean recursion was stopped [leaf packages], blue "
1168 "lines are pre-depends, green lines are conflicts."
1171 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1172 #: apt-cache.8.xml:254
1173 msgid "Caution, dotty cannot graph larger sets of packages."
1176 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1177 #: apt-cache.8.xml:257
1178 msgid "xvcg <replaceable>pkg(s)</replaceable>"
1181 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1182 #: apt-cache.8.xml:258
1184 "The same as <literal>dotty</literal>, only for xvcg from the <ulink "
1185 "url=\"http://rw4.cs.uni-sb.de/users/sander/html/gsvcg1.html\">VCG "
1189 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1190 #: apt-cache.8.xml:262
1191 msgid "policy <replaceable>[ pkg(s) ]</replaceable>"
1194 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1195 #: apt-cache.8.xml:263
1197 "<literal>policy</literal> is meant to help debug issues relating to the "
1198 "preferences file. With no arguments it will print out the priorities of each "
1199 "source. Otherwise it prints out detailed information about the priority "
1200 "selection of the named package."
1203 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1204 #: apt-cache.8.xml:269
1205 msgid "madison <replaceable>/[ pkg(s) ]</replaceable>"
1208 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1209 #: apt-cache.8.xml:270
1211 "<literal>apt-cache</literal>'s <literal>madison</literal> command attempts "
1212 "to mimic the output format and a subset of the functionality of the Debian "
1213 "archive management tool, <literal>madison</literal>. It displays available "
1214 "versions of a package in a tabular format. Unlike the original "
1215 "<literal>madison</literal>, it can only display information for the "
1216 "architecture for which APT has retrieved package lists "
1217 "(<literal>APT::Architecture</literal>)."
1220 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1221 #: apt-cache.8.xml:281 apt-config.8.xml:93 apt-extracttemplates.1.xml:56 apt-ftparchive.1.xml:492 apt-get.8.xml:319 apt-mark.8.xml:89 apt-sortpkgs.1.xml:54 apt.conf.5.xml:456 apt.conf.5.xml:478
1225 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1226 #: apt-cache.8.xml:285
1227 msgid "<option>-p</option>"
1230 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1231 #: apt-cache.8.xml:285
1232 msgid "<option>--pkg-cache</option>"
1235 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1236 #: apt-cache.8.xml:286
1238 "Select the file to store the package cache. The package cache is the primary "
1239 "cache used by all operations. Configuration Item: "
1240 "<literal>Dir::Cache::pkgcache</literal>."
1243 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1244 #: apt-cache.8.xml:291 apt-ftparchive.1.xml:535 apt-get.8.xml:376 apt-sortpkgs.1.xml:58
1245 msgid "<option>-s</option>"
1248 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1249 #: apt-cache.8.xml:291
1250 msgid "<option>--src-cache</option>"
1253 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1254 #: apt-cache.8.xml:292
1256 "Select the file to store the source cache. The source is used only by "
1257 "<literal>gencaches</literal> and it stores a parsed version of the package "
1258 "information from remote sources. When building the package cache the source "
1259 "cache is used to avoid reparsing all of the package files. Configuration "
1260 "Item: <literal>Dir::Cache::srcpkgcache</literal>."
1263 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1264 #: apt-cache.8.xml:299 apt-ftparchive.1.xml:509 apt-get.8.xml:366
1265 msgid "<option>-q</option>"
1268 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1269 #: apt-cache.8.xml:299 apt-ftparchive.1.xml:509 apt-get.8.xml:366
1270 msgid "<option>--quiet</option>"
1273 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1274 #: apt-cache.8.xml:300
1276 "Quiet; produces output suitable for logging, omitting progress indicators. "
1277 "More q's will produce more quietness up to a maximum of 2. You can also use "
1278 "<option>-q=#</option> to set the quietness level, overriding the "
1279 "configuration file. Configuration Item: <literal>quiet</literal>."
1282 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1283 #: apt-cache.8.xml:306
1284 msgid "<option>-i</option>"
1287 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1288 #: apt-cache.8.xml:306
1289 msgid "<option>--important</option>"
1292 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1293 #: apt-cache.8.xml:307
1295 "Print only important dependencies; for use with unmet and depends. Causes "
1296 "only Depends and Pre-Depends relations to be printed. Configuration Item: "
1297 "<literal>APT::Cache::Important</literal>."
1300 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1301 #: apt-cache.8.xml:312 apt-cdrom.8.xml:121 apt-get.8.xml:333
1302 msgid "<option>-f</option>"
1305 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1306 #: apt-cache.8.xml:312
1307 msgid "<option>--full</option>"
1310 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1311 #: apt-cache.8.xml:313
1313 "Print full package records when searching. Configuration Item: "
1314 "<literal>APT::Cache::ShowFull</literal>."
1317 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1318 #: apt-cache.8.xml:317 apt-cdrom.8.xml:131
1319 msgid "<option>-a</option>"
1322 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1323 #: apt-cache.8.xml:317
1324 msgid "<option>--all-versions</option>"
1327 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1328 #: apt-cache.8.xml:318
1330 "Print full records for all available versions. This is the default; to turn "
1331 "it off, use <option>--no-all-versions</option>. If "
1332 "<option>--no-all-versions</option> is specified, only the candidate version "
1333 "will displayed (the one which would be selected for installation). This "
1334 "option is only applicable to the <literal>show</literal> command. "
1335 "Configuration Item: <literal>APT::Cache::AllVersions</literal>."
1338 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1339 #: apt-cache.8.xml:326
1340 msgid "<option>-g</option>"
1343 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1344 #: apt-cache.8.xml:326
1345 msgid "<option>--generate</option>"
1348 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1349 #: apt-cache.8.xml:327
1351 "Perform automatic package cache regeneration, rather than use the cache as "
1352 "it is. This is the default; to turn it off, use "
1353 "<option>--no-generate</option>. Configuration Item: "
1354 "<literal>APT::Cache::Generate</literal>."
1357 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1358 #: apt-cache.8.xml:332
1359 msgid "<option>--names-only</option>"
1362 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1363 #: apt-cache.8.xml:332 apt-cdrom.8.xml:139
1364 msgid "<option>-n</option>"
1367 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1368 #: apt-cache.8.xml:333
1370 "Only search on the package names, not the long descriptions. Configuration "
1371 "Item: <literal>APT::Cache::NamesOnly</literal>."
1374 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1375 #: apt-cache.8.xml:337
1376 msgid "<option>--all-names</option>"
1379 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1380 #: apt-cache.8.xml:338
1382 "Make <literal>pkgnames</literal> print all names, including virtual packages "
1383 "and missing dependencies. Configuration Item: "
1384 "<literal>APT::Cache::AllNames</literal>."
1387 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1388 #: apt-cache.8.xml:343
1389 msgid "<option>--recurse</option>"
1392 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1393 #: apt-cache.8.xml:344
1395 "Make <literal>depends</literal> and <literal>rdepends</literal> recursive so "
1396 "that all packages mentioned are printed once. Configuration Item: "
1397 "<literal>APT::Cache::RecurseDepends</literal>."
1400 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1401 #: apt-cache.8.xml:349
1402 msgid "<option>--installed</option>"
1405 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1406 #: apt-cache.8.xml:351
1408 "Limit the output of <literal>depends</literal> and "
1409 "<literal>rdepends</literal> to packages which are currently installed. "
1410 "Configuration Item: <literal>APT::Cache::Installed</literal>."
1413 #. type: Content of: <refentry><refsect1><variablelist>
1414 #: apt-cache.8.xml:356 apt-cdrom.8.xml:150 apt-config.8.xml:98 apt-extracttemplates.1.xml:67 apt-ftparchive.1.xml:547 apt-get.8.xml:554 apt-sortpkgs.1.xml:64
1415 msgid "&apt-commonoptions;"
1418 #. type: Content of: <refentry><refsect1><title>
1419 #: apt-cache.8.xml:361 apt-get.8.xml:559 apt-key.8.xml:138 apt-mark.8.xml:122 apt.conf.5.xml:988 apt_preferences.5.xml:615
1423 #. type: Content of: <refentry><refsect1><variablelist>
1424 #: apt-cache.8.xml:363
1425 msgid "&file-sourceslist; &file-statelists;"
1428 #. type: Content of: <refentry><refsect1><title>
1429 #: apt-cache.8.xml:368 apt-cdrom.8.xml:155 apt-config.8.xml:103 apt-extracttemplates.1.xml:74 apt-ftparchive.1.xml:563 apt-get.8.xml:569 apt-key.8.xml:162 apt-mark.8.xml:133 apt-secure.8.xml:181 apt-sortpkgs.1.xml:69 apt.conf.5.xml:994 apt_preferences.5.xml:622 sources.list.5.xml:233
1433 #. type: Content of: <refentry><refsect1><para>
1434 #: apt-cache.8.xml:369
1435 msgid "&apt-conf;, &sources-list;, &apt-get;"
1438 #. type: Content of: <refentry><refsect1><title>
1439 #: apt-cache.8.xml:373 apt-cdrom.8.xml:160 apt-config.8.xml:108 apt-extracttemplates.1.xml:78 apt-ftparchive.1.xml:567 apt-get.8.xml:575 apt-mark.8.xml:137 apt-sortpkgs.1.xml:73
1443 #. type: Content of: <refentry><refsect1><para>
1444 #: apt-cache.8.xml:374
1446 "<command>apt-cache</command> returns zero on normal operation, decimal 100 "
1450 #. type: Content of: <refentry><refentryinfo>
1451 #: apt-cdrom.8.xml:13
1453 "&apt-author.jgunthorpe; &apt-author.team; &apt-email; &apt-product; <date>14 "
1454 "February 2004</date>"
1457 #. type: Content of: <refentry><refnamediv><refname>
1458 #: apt-cdrom.8.xml:21 apt-cdrom.8.xml:28
1462 #. type: Content of: <refentry><refnamediv><refpurpose>
1463 #: apt-cdrom.8.xml:29
1464 msgid "APT CDROM management utility"
1467 #. type: Content of: <refentry><refsynopsisdiv><cmdsynopsis>
1468 #: apt-cdrom.8.xml:35
1470 "<command>apt-cdrom</command> <arg><option>-hvrmfan</option></arg> "
1471 "<arg><option>-d=<replaceable>cdrom mount point</replaceable></option></arg> "
1472 "<arg><option>-o=<replaceable>config string</replaceable></option></arg> "
1473 "<arg><option>-c=<replaceable>file</replaceable></option></arg> <group> "
1474 "<arg>add</arg> <arg>ident</arg> </group>"
1477 #. type: Content of: <refentry><refsect1><para>
1478 #: apt-cdrom.8.xml:48
1480 "<command>apt-cdrom</command> is used to add a new CDROM to APTs list of "
1481 "available sources. <command>apt-cdrom</command> takes care of determining "
1482 "the structure of the disc as well as correcting for several possible "
1483 "mis-burns and verifying the index files."
1486 #. type: Content of: <refentry><refsect1><para>
1487 #: apt-cdrom.8.xml:55
1489 "It is necessary to use <command>apt-cdrom</command> to add CDs to the APT "
1490 "system, it cannot be done by hand. Furthermore each disk in a multi-cd set "
1491 "must be inserted and scanned separately to account for possible mis-burns."
1494 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
1495 #: apt-cdrom.8.xml:65
1499 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
1500 #: apt-cdrom.8.xml:66
1502 "<literal>add</literal> is used to add a new disc to the source list. It will "
1503 "unmount the CDROM device, prompt for a disk to be inserted and then procceed "
1504 "to scan it and copy the index files. If the disc does not have a proper "
1505 "<filename>disk</filename> directory you will be prompted for a descriptive "
1509 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
1510 #: apt-cdrom.8.xml:74
1512 "APT uses a CDROM ID to track which disc is currently in the drive and "
1513 "maintains a database of these IDs in "
1514 "<filename>&statedir;/cdroms.list</filename>"
1517 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
1518 #: apt-cdrom.8.xml:81
1522 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
1523 #: apt-cdrom.8.xml:82
1525 "A debugging tool to report the identity of the current disc as well as the "
1529 #. type: Content of: <refentry><refsect1><para>
1530 #: apt-cdrom.8.xml:61
1532 "Unless the <option>-h</option>, or <option>--help</option> option is given "
1533 "one of the commands below must be present. <placeholder "
1534 "type=\"variablelist\" id=\"0\"/>"
1537 #. type: Content of: <refentry><refsect1><title>
1538 #: apt-cdrom.8.xml:91
1542 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1543 #: apt-cdrom.8.xml:95 apt-ftparchive.1.xml:503 apt-get.8.xml:328
1544 msgid "<option>-d</option>"
1547 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1548 #: apt-cdrom.8.xml:95
1549 msgid "<option>--cdrom</option>"
1552 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1553 #: apt-cdrom.8.xml:96
1555 "Mount point; specify the location to mount the cdrom. This mount point must "
1556 "be listed in <filename>/etc/fstab</filename> and properly configured. "
1557 "Configuration Item: <literal>Acquire::cdrom::mount</literal>."
1560 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1561 #: apt-cdrom.8.xml:104
1562 msgid "<option>-r</option>"
1565 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1566 #: apt-cdrom.8.xml:104
1567 msgid "<option>--rename</option>"
1570 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1571 #: apt-cdrom.8.xml:105
1573 "Rename a disc; change the label of a disk or override the disks given "
1574 "label. This option will cause <command>apt-cdrom</command> to prompt for a "
1575 "new label. Configuration Item: <literal>APT::CDROM::Rename</literal>."
1578 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1579 #: apt-cdrom.8.xml:113 apt-get.8.xml:347
1580 msgid "<option>-m</option>"
1583 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1584 #: apt-cdrom.8.xml:113
1585 msgid "<option>--no-mount</option>"
1588 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1589 #: apt-cdrom.8.xml:114
1591 "No mounting; prevent <command>apt-cdrom</command> from mounting and "
1592 "unmounting the mount point. Configuration Item: "
1593 "<literal>APT::CDROM::NoMount</literal>."
1596 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1597 #: apt-cdrom.8.xml:121
1598 msgid "<option>--fast</option>"
1601 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1602 #: apt-cdrom.8.xml:122
1604 "Fast Copy; Assume the package files are valid and do not check every "
1605 "package. This option should be used only if <command>apt-cdrom</command> has "
1606 "been run on this disc before and did not detect any errors. Configuration "
1607 "Item: <literal>APT::CDROM::Fast</literal>."
1610 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1611 #: apt-cdrom.8.xml:131
1612 msgid "<option>--thorough</option>"
1615 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1616 #: apt-cdrom.8.xml:132
1618 "Thorough Package Scan; This option may be needed with some old Debian "
1619 "1.1/1.2 discs that have Package files in strange places. It takes much "
1620 "longer to scan the CD but will pick them all up."
1623 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1624 #: apt-cdrom.8.xml:140 apt-get.8.xml:378
1625 msgid "<option>--just-print</option>"
1628 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1629 #: apt-cdrom.8.xml:141 apt-get.8.xml:380
1630 msgid "<option>--recon</option>"
1633 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1634 #: apt-cdrom.8.xml:142 apt-get.8.xml:381
1635 msgid "<option>--no-act</option>"
1638 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1639 #: apt-cdrom.8.xml:143
1641 "No Changes; Do not change the &sources-list; file and do not write index "
1642 "files. Everything is still checked however. Configuration Item: "
1643 "<literal>APT::CDROM::NoAct</literal>."
1646 #. type: Content of: <refentry><refsect1><para>
1647 #: apt-cdrom.8.xml:156
1648 msgid "&apt-conf;, &apt-get;, &sources-list;"
1651 #. type: Content of: <refentry><refsect1><para>
1652 #: apt-cdrom.8.xml:161
1654 "<command>apt-cdrom</command> returns zero on normal operation, decimal 100 "
1658 #. type: Content of: <refentry><refnamediv><refname>
1659 #: apt-config.8.xml:22 apt-config.8.xml:29
1663 #. type: Content of: <refentry><refnamediv><refpurpose>
1664 #: apt-config.8.xml:30
1665 msgid "APT Configuration Query program"
1668 #. type: Content of: <refentry><refsynopsisdiv><cmdsynopsis>
1669 #: apt-config.8.xml:36
1671 "<command>apt-config</command> <arg><option>-hv</option></arg> "
1672 "<arg><option>-o=<replaceable>config string</replaceable></option></arg> "
1673 "<arg><option>-c=<replaceable>file</replaceable></option></arg> <group "
1674 "choice=\"req\"> <arg>shell</arg> <arg>dump</arg> </group>"
1677 #. type: Content of: <refentry><refsect1><para>
1678 #: apt-config.8.xml:48
1680 "<command>apt-config</command> is an internal program used by various "
1681 "portions of the APT suite to provide consistent configurability. It accesses "
1682 "the main configuration file <filename>/etc/apt/apt.conf</filename> in a "
1683 "manner that is easy to use by scripted applications."
1686 #. type: Content of: <refentry><refsect1><para>
1687 #: apt-config.8.xml:53 apt-ftparchive.1.xml:71
1689 "Unless the <option>-h</option>, or <option>--help</option> option is given "
1690 "one of the commands below must be present."
1693 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1694 #: apt-config.8.xml:58
1698 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1699 #: apt-config.8.xml:60
1701 "shell is used to access the configuration information from a shell "
1702 "script. It is given pairs of arguments, the first being a shell variable and "
1703 "the second the configuration value to query. As output it lists a series of "
1704 "shell assignments commands for each present value. In a shell script it "
1705 "should be used like:"
1708 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><informalexample><programlisting>
1709 #: apt-config.8.xml:68
1713 "RES=`apt-config shell OPTS MyApp::options`\n"
1717 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1718 #: apt-config.8.xml:73
1720 "This will set the shell environment variable $OPTS to the value of "
1721 "MyApp::options with a default of <option>-f</option>."
1724 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1725 #: apt-config.8.xml:77
1727 "The configuration item may be postfixed with a /[fdbi]. f returns file "
1728 "names, d returns directories, b returns true or false and i returns an "
1729 "integer. Each of the returns is normalized and verified internally."
1732 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1733 #: apt-config.8.xml:86
1734 msgid "Just show the contents of the configuration space."
1737 #. type: Content of: <refentry><refsect1><para>
1738 #: apt-config.8.xml:104 apt-extracttemplates.1.xml:75 apt-ftparchive.1.xml:564 apt-sortpkgs.1.xml:70
1742 #. type: Content of: <refentry><refsect1><para>
1743 #: apt-config.8.xml:109
1745 "<command>apt-config</command> returns zero on normal operation, decimal 100 "
1749 #. type: Content of: <refentry><refnamediv><refname>
1750 #: apt-extracttemplates.1.xml:22 apt-extracttemplates.1.xml:29
1751 msgid "apt-extracttemplates"
1754 #. type: Content of: <refentry><refmeta><manvolnum>
1755 #: apt-extracttemplates.1.xml:23 apt-ftparchive.1.xml:23 apt-sortpkgs.1.xml:23
1759 #. type: Content of: <refentry><refnamediv><refpurpose>
1760 #: apt-extracttemplates.1.xml:30
1761 msgid "Utility to extract DebConf config and templates from Debian packages"
1764 #. type: Content of: <refentry><refsynopsisdiv><cmdsynopsis>
1765 #: apt-extracttemplates.1.xml:36
1767 "<command>apt-extracttemplates</command> <arg><option>-hv</option></arg> "
1768 "<arg><option>-t=<replaceable>temporary "
1769 "directory</replaceable></option></arg> <arg choice=\"plain\" "
1770 "rep=\"repeat\"><replaceable>file</replaceable></arg>"
1773 #. type: Content of: <refentry><refsect1><para>
1774 #: apt-extracttemplates.1.xml:44
1776 "<command>apt-extracttemplates</command> will take one or more Debian package "
1777 "files as input and write out (to a temporary directory) all associated "
1778 "config scripts and template files. For each passed in package that contains "
1779 "config scripts and templates, one line of output will be generated in the "
1783 #. type: Content of: <refentry><refsect1><para>
1784 #: apt-extracttemplates.1.xml:49
1785 msgid "package version template-file config-script"
1788 #. type: Content of: <refentry><refsect1><para>
1789 #: apt-extracttemplates.1.xml:50
1791 "template-file and config-script are written to the temporary directory "
1792 "specified by the -t or --tempdir "
1793 "(<literal>APT::ExtractTemplates::TempDir</literal>) directory, with "
1794 "filenames of the form <filename>package.template.XXXX</filename> and "
1795 "<filename>package.config.XXXX</filename>"
1798 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1799 #: apt-extracttemplates.1.xml:60 apt-get.8.xml:488
1800 msgid "<option>-t</option>"
1803 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1804 #: apt-extracttemplates.1.xml:60
1805 msgid "<option>--tempdir</option>"
1808 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1809 #: apt-extracttemplates.1.xml:62
1811 "Temporary directory in which to write extracted debconf template files and "
1812 "config scripts Configuration Item: "
1813 "<literal>APT::ExtractTemplates::TempDir</literal>"
1816 #. type: Content of: <refentry><refsect1><para>
1817 #: apt-extracttemplates.1.xml:79
1819 "<command>apt-extracttemplates</command> returns zero on normal operation, "
1820 "decimal 100 on error."
1823 #. type: Content of: <refentry><refnamediv><refname>
1824 #: apt-ftparchive.1.xml:22 apt-ftparchive.1.xml:29
1825 msgid "apt-ftparchive"
1828 #. type: Content of: <refentry><refnamediv><refpurpose>
1829 #: apt-ftparchive.1.xml:30
1830 msgid "Utility to generate index files"
1833 #. type: Content of: <refentry><refsynopsisdiv><cmdsynopsis>
1834 #: apt-ftparchive.1.xml:36
1836 "<command>apt-ftparchive</command> <arg><option>-hvdsq</option></arg> "
1837 "<arg><option>--md5</option></arg> <arg><option>--delink</option></arg> "
1838 "<arg><option>--readonly</option></arg> "
1839 "<arg><option>--contents</option></arg> <arg><option>-o "
1840 "<replaceable>config</replaceable>=<replaceable>string</replaceable></option></arg> "
1841 "<arg><option>-c=<replaceable>file</replaceable></option></arg> <group "
1842 "choice=\"req\"> <arg>packages<arg choice=\"plain\" "
1843 "rep=\"repeat\"><replaceable>path</replaceable></arg><arg><replaceable>override</replaceable><arg><replaceable>pathprefix</replaceable></arg></arg></arg> "
1844 "<arg>sources<arg choice=\"plain\" "
1845 "rep=\"repeat\"><replaceable>path</replaceable></arg><arg><replaceable>override</replaceable><arg><replaceable>pathprefix</replaceable></arg></arg></arg> "
1846 "<arg>contents <arg "
1847 "choice=\"plain\"><replaceable>path</replaceable></arg></arg> <arg>release "
1848 "<arg choice=\"plain\"><replaceable>path</replaceable></arg></arg> "
1849 "<arg>generate <arg "
1850 "choice=\"plain\"><replaceable>config-file</replaceable></arg> <arg "
1852 "rep=\"repeat\"><replaceable>section</replaceable></arg></arg> <arg>clean "
1853 "<arg choice=\"plain\"><replaceable>config-file</replaceable></arg></arg> "
1857 #. type: Content of: <refentry><refsect1><para>
1858 #: apt-ftparchive.1.xml:56
1860 "<command>apt-ftparchive</command> is the command line tool that generates "
1861 "the index files that APT uses to access a distribution source. The index "
1862 "files should be generated on the origin site based on the content of that "
1866 #. type: Content of: <refentry><refsect1><para>
1867 #: apt-ftparchive.1.xml:60
1869 "<command>apt-ftparchive</command> is a superset of the &dpkg-scanpackages; "
1870 "program, incorporating its entire functionality via the "
1871 "<literal>packages</literal> command. It also contains a contents file "
1872 "generator, <literal>contents</literal>, and an elaborate means to 'script' "
1873 "the generation process for a complete archive."
1876 #. type: Content of: <refentry><refsect1><para>
1877 #: apt-ftparchive.1.xml:66
1879 "Internally <command>apt-ftparchive</command> can make use of binary "
1880 "databases to cache the contents of a .deb file and it does not rely on any "
1881 "external programs aside from &gzip;. When doing a full generate it "
1882 "automatically performs file-change checks and builds the desired compressed "
1886 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1887 #: apt-ftparchive.1.xml:75
1891 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1892 #: apt-ftparchive.1.xml:77
1894 "The packages command generates a package file from a directory tree. It "
1895 "takes the given directory and recursively searches it for .deb files, "
1896 "emitting a package record to stdout for each. This command is approximately "
1897 "equivalent to &dpkg-scanpackages;."
1900 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1901 #: apt-ftparchive.1.xml:82 apt-ftparchive.1.xml:106
1902 msgid "The option <option>--db</option> can be used to specify a binary caching DB."
1905 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1906 #: apt-ftparchive.1.xml:85
1910 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1911 #: apt-ftparchive.1.xml:87
1913 "The <literal>sources</literal> command generates a source index file from a "
1914 "directory tree. It takes the given directory and recursively searches it "
1915 "for .dsc files, emitting a source record to stdout for each. This command is "
1916 "approximately equivalent to &dpkg-scansources;."
1919 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1920 #: apt-ftparchive.1.xml:92
1922 "If an override file is specified then a source override file will be looked "
1923 "for with an extension of .src. The --source-override option can be used to "
1924 "change the source override file that will be used."
1927 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1928 #: apt-ftparchive.1.xml:97
1932 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1933 #: apt-ftparchive.1.xml:99
1935 "The <literal>contents</literal> command generates a contents file from a "
1936 "directory tree. It takes the given directory and recursively searches it for "
1937 ".deb files, and reads the file list from each file. It then sorts and writes "
1938 "to stdout the list of files matched to packages. Directories are not written "
1939 "to the output. If multiple packages own the same file then each package is "
1940 "separated by a comma in the output."
1943 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1944 #: apt-ftparchive.1.xml:109
1948 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1949 #: apt-ftparchive.1.xml:111
1951 "The <literal>release</literal> command generates a Release file from a "
1952 "directory tree. It recursively searches the given directory for Packages, "
1953 "Packages.gz, Packages.bz2, Sources, Sources.gz, Sources.bz2, Release and "
1954 "md5sum.txt files. It then writes to stdout a Release file containing an MD5 "
1955 "digest and SHA1 digest for each file."
1958 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1959 #: apt-ftparchive.1.xml:118
1961 "Values for the additional metadata fields in the Release file are taken from "
1962 "the corresponding variables under "
1963 "<literal>APT::FTPArchive::Release</literal>, "
1964 "e.g. <literal>APT::FTPArchive::Release::Origin</literal>. The supported "
1965 "fields are: <literal>Origin</literal>, <literal>Label</literal>, "
1966 "<literal>Suite</literal>, <literal>Version</literal>, "
1967 "<literal>Codename</literal>, <literal>Date</literal>, "
1968 "<literal>Architectures</literal>, <literal>Components</literal>, "
1969 "<literal>Description</literal>."
1972 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1973 #: apt-ftparchive.1.xml:128
1977 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1978 #: apt-ftparchive.1.xml:130
1980 "The <literal>generate</literal> command is designed to be runnable from a "
1981 "cron script and builds indexes according to the given config file. The "
1982 "config language provides a flexible means of specifying which index files "
1983 "are built from which directories, as well as providing a simple means of "
1984 "maintaining the required settings."
1987 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1988 #: apt-ftparchive.1.xml:137 apt-get.8.xml:292
1992 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1993 #: apt-ftparchive.1.xml:139
1995 "The <literal>clean</literal> command tidies the databases used by the given "
1996 "configuration file by removing any records that are no longer necessary."
1999 #. type: Content of: <refentry><refsect1><title>
2000 #: apt-ftparchive.1.xml:145
2001 msgid "The Generate Configuration"
2004 #. type: Content of: <refentry><refsect1><para>
2005 #: apt-ftparchive.1.xml:147
2007 "The <literal>generate</literal> command uses a configuration file to "
2008 "describe the archives that are going to be generated. It follows the typical "
2009 "ISC configuration format as seen in ISC tools like bind 8 and dhcpd. "
2010 "&apt-conf; contains a description of the syntax. Note that the generate "
2011 "configuration is parsed in sectional manner, but &apt-conf; is parsed in a "
2012 "tree manner. This only effects how the scope tag is handled."
2015 #. type: Content of: <refentry><refsect1><para>
2016 #: apt-ftparchive.1.xml:155
2017 msgid "The generate configuration has 4 separate sections, each described below."
2020 #. type: Content of: <refentry><refsect1><refsect2><title>
2021 #: apt-ftparchive.1.xml:157
2025 #. type: Content of: <refentry><refsect1><refsect2><para>
2026 #: apt-ftparchive.1.xml:159
2028 "The <literal>Dir</literal> section defines the standard directories needed "
2029 "to locate the files required during the generation process. These "
2030 "directories are prepended to certain relative paths defined in later "
2031 "sections to produce a complete an absolute path."
2034 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2035 #: apt-ftparchive.1.xml:164
2039 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2040 #: apt-ftparchive.1.xml:166
2042 "Specifies the root of the FTP archive, in a standard Debian configuration "
2043 "this is the directory that contains the <filename>ls-LR</filename> and dist "
2047 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2048 #: apt-ftparchive.1.xml:171
2052 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2053 #: apt-ftparchive.1.xml:173
2054 msgid "Specifies the location of the override files."
2057 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2058 #: apt-ftparchive.1.xml:176
2062 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2063 #: apt-ftparchive.1.xml:178
2064 msgid "Specifies the location of the cache files"
2067 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2068 #: apt-ftparchive.1.xml:181
2072 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2073 #: apt-ftparchive.1.xml:183
2075 "Specifies the location of the file list files, if the "
2076 "<literal>FileList</literal> setting is used below."
2079 #. type: Content of: <refentry><refsect1><refsect2><title>
2080 #: apt-ftparchive.1.xml:189
2081 msgid "Default Section"
2084 #. type: Content of: <refentry><refsect1><refsect2><para>
2085 #: apt-ftparchive.1.xml:191
2087 "The <literal>Default</literal> section specifies default values, and "
2088 "settings that control the operation of the generator. Other sections may "
2089 "override these defaults with a per-section setting."
2092 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2093 #: apt-ftparchive.1.xml:195
2094 msgid "Packages::Compress"
2097 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2098 #: apt-ftparchive.1.xml:197
2100 "Sets the default compression schemes to use for the Package index files. It "
2101 "is a string that contains a space separated list of at least one of: '.' (no "
2102 "compression), 'gzip' and 'bzip2'. The default for all compression schemes is "
2106 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2107 #: apt-ftparchive.1.xml:203
2108 msgid "Packages::Extensions"
2111 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2112 #: apt-ftparchive.1.xml:205
2114 "Sets the default list of file extensions that are package files. This "
2115 "defaults to '.deb'."
2118 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2119 #: apt-ftparchive.1.xml:209
2120 msgid "Sources::Compress"
2123 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2124 #: apt-ftparchive.1.xml:211
2126 "This is similar to <literal>Packages::Compress</literal> except that it "
2127 "controls the compression for the Sources files."
2130 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2131 #: apt-ftparchive.1.xml:215
2132 msgid "Sources::Extensions"
2135 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2136 #: apt-ftparchive.1.xml:217
2138 "Sets the default list of file extensions that are source files. This "
2139 "defaults to '.dsc'."
2142 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2143 #: apt-ftparchive.1.xml:221
2144 msgid "Contents::Compress"
2147 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2148 #: apt-ftparchive.1.xml:223
2150 "This is similar to <literal>Packages::Compress</literal> except that it "
2151 "controls the compression for the Contents files."
2154 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2155 #: apt-ftparchive.1.xml:227
2159 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2160 #: apt-ftparchive.1.xml:229
2162 "Specifies the number of kilobytes to delink (and replace with hard links) "
2163 "per run. This is used in conjunction with the per-section "
2164 "<literal>External-Links</literal> setting."
2167 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2168 #: apt-ftparchive.1.xml:234
2172 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2173 #: apt-ftparchive.1.xml:236
2175 "Specifies the mode of all created index files. It defaults to 0644. All "
2176 "index files are set to this mode with no regard to the umask."
2179 #. type: Content of: <refentry><refsect1><refsect2><title>
2180 #: apt-ftparchive.1.xml:243
2181 msgid "TreeDefault Section"
2184 #. type: Content of: <refentry><refsect1><refsect2><para>
2185 #: apt-ftparchive.1.xml:245
2187 "Sets defaults specific to <literal>Tree</literal> sections. All of these "
2188 "variables are substitution variables and have the strings $(DIST), "
2189 "$(SECTION) and $(ARCH) replaced with their respective values."
2192 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2193 #: apt-ftparchive.1.xml:250
2194 msgid "MaxContentsChange"
2197 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2198 #: apt-ftparchive.1.xml:252
2200 "Sets the number of kilobytes of contents files that are generated each "
2201 "day. The contents files are round-robined so that over several days they "
2202 "will all be rebuilt."
2205 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2206 #: apt-ftparchive.1.xml:257
2210 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2211 #: apt-ftparchive.1.xml:259
2213 "Controls the number of days a contents file is allowed to be checked without "
2214 "changing. If this limit is passed the mtime of the contents file is "
2215 "updated. This case can occur if the package file is changed in such a way "
2216 "that does not result in a new contents file [override edit for instance]. A "
2217 "hold off is allowed in hopes that new .debs will be installed, requiring a "
2218 "new file anyhow. The default is 10, the units are in days."
2221 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2222 #: apt-ftparchive.1.xml:268
2226 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2227 #: apt-ftparchive.1.xml:270
2229 "Sets the top of the .deb directory tree. Defaults to "
2230 "<filename>$(DIST)/$(SECTION)/binary-$(ARCH)/</filename>"
2233 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2234 #: apt-ftparchive.1.xml:274
2235 msgid "SrcDirectory"
2238 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2239 #: apt-ftparchive.1.xml:276
2241 "Sets the top of the source package directory tree. Defaults to "
2242 "<filename>$(DIST)/$(SECTION)/source/</filename>"
2245 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2246 #: apt-ftparchive.1.xml:280 apt-ftparchive.1.xml:406
2250 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2251 #: apt-ftparchive.1.xml:282
2253 "Sets the output Packages file. Defaults to "
2254 "<filename>$(DIST)/$(SECTION)/binary-$(ARCH)/Packages</filename>"
2257 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2258 #: apt-ftparchive.1.xml:286 apt-ftparchive.1.xml:411
2262 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2263 #: apt-ftparchive.1.xml:288
2265 "Sets the output Packages file. Defaults to "
2266 "<filename>$(DIST)/$(SECTION)/source/Sources</filename>"
2269 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2270 #: apt-ftparchive.1.xml:292
2271 msgid "InternalPrefix"
2274 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2275 #: apt-ftparchive.1.xml:294
2277 "Sets the path prefix that causes a symlink to be considered an internal link "
2278 "instead of an external link. Defaults to "
2279 "<filename>$(DIST)/$(SECTION)/</filename>"
2282 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2283 #: apt-ftparchive.1.xml:299 apt-ftparchive.1.xml:417
2287 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2288 #: apt-ftparchive.1.xml:301
2290 "Sets the output Contents file. Defaults to "
2291 "<filename>$(DIST)/Contents-$(ARCH)</filename>. If this setting causes "
2292 "multiple Packages files to map onto a single Contents file (such as the "
2293 "default) then <command>apt-ftparchive</command> will integrate those "
2294 "package files together automatically."
2297 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2298 #: apt-ftparchive.1.xml:308
2299 msgid "Contents::Header"
2302 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2303 #: apt-ftparchive.1.xml:310
2304 msgid "Sets header file to prepend to the contents output."
2307 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2308 #: apt-ftparchive.1.xml:313 apt-ftparchive.1.xml:442
2312 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2313 #: apt-ftparchive.1.xml:315
2315 "Sets the binary cache database to use for this section. Multiple sections "
2316 "can share the same database."
2319 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2320 #: apt-ftparchive.1.xml:319
2324 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2325 #: apt-ftparchive.1.xml:321
2327 "Specifies that instead of walking the directory tree, "
2328 "<command>apt-ftparchive</command> should read the list of files from the "
2329 "given file. Relative files names are prefixed with the archive directory."
2332 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2333 #: apt-ftparchive.1.xml:326
2334 msgid "SourceFileList"
2337 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2338 #: apt-ftparchive.1.xml:328
2340 "Specifies that instead of walking the directory tree, "
2341 "<command>apt-ftparchive</command> should read the list of files from the "
2342 "given file. Relative files names are prefixed with the archive directory. "
2343 "This is used when processing source indexes."
2346 #. type: Content of: <refentry><refsect1><refsect2><title>
2347 #: apt-ftparchive.1.xml:336
2348 msgid "Tree Section"
2351 #. type: Content of: <refentry><refsect1><refsect2><para>
2352 #: apt-ftparchive.1.xml:338
2354 "The <literal>Tree</literal> section defines a standard Debian file tree "
2355 "which consists of a base directory, then multiple sections in that base "
2356 "directory and finally multiple Architectures in each section. The exact "
2357 "pathing used is defined by the <literal>Directory</literal> substitution "
2361 #. type: Content of: <refentry><refsect1><refsect2><para>
2362 #: apt-ftparchive.1.xml:343
2364 "The <literal>Tree</literal> section takes a scope tag which sets the "
2365 "<literal>$(DIST)</literal> variable and defines the root of the tree (the "
2366 "path is prefixed by <literal>ArchiveDir</literal>). Typically this is a "
2367 "setting such as <filename>dists/woody</filename>."
2370 #. type: Content of: <refentry><refsect1><refsect2><para>
2371 #: apt-ftparchive.1.xml:348
2373 "All of the settings defined in the <literal>TreeDefault</literal> section "
2374 "can be use in a <literal>Tree</literal> section as well as three new "
2378 #. type: Content of: <refentry><refsect1><refsect2><para>
2379 #: apt-ftparchive.1.xml:351
2381 "When processing a <literal>Tree</literal> section "
2382 "<command>apt-ftparchive</command> performs an operation similar to:"
2385 #. type: Content of: <refentry><refsect1><refsect2><para><informalexample><programlisting>
2386 #: apt-ftparchive.1.xml:354
2389 "for i in Sections do \n"
2390 " for j in Architectures do\n"
2391 " Generate for DIST=scope SECTION=i ARCH=j\n"
2394 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2395 #: apt-ftparchive.1.xml:360
2399 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2400 #: apt-ftparchive.1.xml:362
2402 "This is a space separated list of sections which appear under the "
2403 "distribution, typically this is something like <literal>main contrib "
2404 "non-free</literal>"
2407 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2408 #: apt-ftparchive.1.xml:367
2409 msgid "Architectures"
2412 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2413 #: apt-ftparchive.1.xml:369
2415 "This is a space separated list of all the architectures that appear under "
2416 "search section. The special architecture 'source' is used to indicate that "
2417 "this tree has a source archive."
2420 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2421 #: apt-ftparchive.1.xml:374 apt-ftparchive.1.xml:422
2425 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2426 #: apt-ftparchive.1.xml:376
2428 "Sets the binary override file. The override file contains section, priority "
2429 "and maintainer address information."
2432 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2433 #: apt-ftparchive.1.xml:380 apt-ftparchive.1.xml:427
2437 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2438 #: apt-ftparchive.1.xml:382
2440 "Sets the source override file. The override file contains section "
2444 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2445 #: apt-ftparchive.1.xml:386 apt-ftparchive.1.xml:432
2446 msgid "ExtraOverride"
2449 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2450 #: apt-ftparchive.1.xml:388 apt-ftparchive.1.xml:434
2451 msgid "Sets the binary extra override file."
2454 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2455 #: apt-ftparchive.1.xml:391 apt-ftparchive.1.xml:437
2456 msgid "SrcExtraOverride"
2459 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2460 #: apt-ftparchive.1.xml:393 apt-ftparchive.1.xml:439
2461 msgid "Sets the source extra override file."
2464 #. type: Content of: <refentry><refsect1><refsect2><title>
2465 #: apt-ftparchive.1.xml:398
2466 msgid "BinDirectory Section"
2469 #. type: Content of: <refentry><refsect1><refsect2><para>
2470 #: apt-ftparchive.1.xml:400
2472 "The <literal>bindirectory</literal> section defines a binary directory tree "
2473 "with no special structure. The scope tag specifies the location of the "
2474 "binary directory and the settings are similar to the <literal>Tree</literal> "
2475 "section with no substitution variables or "
2476 "<literal>Section</literal><literal>Architecture</literal> settings."
2479 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2480 #: apt-ftparchive.1.xml:408
2481 msgid "Sets the Packages file output."
2484 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2485 #: apt-ftparchive.1.xml:413
2487 "Sets the Sources file output. At least one of <literal>Packages</literal> or "
2488 "<literal>Sources</literal> is required."
2491 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2492 #: apt-ftparchive.1.xml:419
2493 msgid "Sets the Contents file output. (optional)"
2496 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2497 #: apt-ftparchive.1.xml:424
2498 msgid "Sets the binary override file."
2501 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2502 #: apt-ftparchive.1.xml:429
2503 msgid "Sets the source override file."
2506 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2507 #: apt-ftparchive.1.xml:444
2508 msgid "Sets the cache DB."
2511 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2512 #: apt-ftparchive.1.xml:447
2516 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2517 #: apt-ftparchive.1.xml:449
2518 msgid "Appends a path to all the output paths."
2521 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
2522 #: apt-ftparchive.1.xml:452
2523 msgid "FileList, SourceFileList"
2526 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2527 #: apt-ftparchive.1.xml:454
2528 msgid "Specifies the file list file."
2531 #. type: Content of: <refentry><refsect1><title>
2532 #: apt-ftparchive.1.xml:461
2533 msgid "The Binary Override File"
2536 #. type: Content of: <refentry><refsect1><para>
2537 #: apt-ftparchive.1.xml:462
2539 "The binary override file is fully compatible with &dpkg-scanpackages;. It "
2540 "contains 4 fields separated by spaces. The first field is the package name, "
2541 "the second is the priority to force that package to, the third is the the "
2542 "section to force that package to and the final field is the maintainer "
2543 "permutation field."
2546 #. type: Content of: <refentry><refsect1><para><literallayout>
2547 #: apt-ftparchive.1.xml:468
2549 msgid "old [// oldn]* => new"
2552 #. type: Content of: <refentry><refsect1><para><literallayout>
2553 #: apt-ftparchive.1.xml:470
2558 #. type: Content of: <refentry><refsect1><para>
2559 #: apt-ftparchive.1.xml:467
2561 "The general form of the maintainer field is: <placeholder "
2562 "type=\"literallayout\" id=\"0\"/> or simply, <placeholder "
2563 "type=\"literallayout\" id=\"1\"/> The first form allows a double-slash "
2564 "separated list of old email addresses to be specified. If any of those are "
2565 "found then new is substituted for the maintainer field. The second form "
2566 "unconditionally substitutes the maintainer field."
2569 #. type: Content of: <refentry><refsect1><title>
2570 #: apt-ftparchive.1.xml:478
2571 msgid "The Source Override File"
2574 #. type: Content of: <refentry><refsect1><para>
2575 #: apt-ftparchive.1.xml:480
2577 "The source override file is fully compatible with &dpkg-scansources;. It "
2578 "contains 2 fields separated by spaces. The first fields is the source "
2579 "package name, the second is the section to assign it."
2582 #. type: Content of: <refentry><refsect1><title>
2583 #: apt-ftparchive.1.xml:485
2584 msgid "The Extra Override File"
2587 #. type: Content of: <refentry><refsect1><para>
2588 #: apt-ftparchive.1.xml:487
2590 "The extra override file allows any arbitrary tag to be added or replaced in "
2591 "the output. It has 3 columns, the first is the package, the second is the "
2592 "tag and the remainder of the line is the new value."
2595 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2596 #: apt-ftparchive.1.xml:496
2597 msgid "<option>--md5</option>"
2600 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2601 #: apt-ftparchive.1.xml:498
2603 "Generate MD5 sums. This defaults to on, when turned off the generated index "
2604 "files will not have MD5Sum fields where possible. Configuration Item: "
2605 "<literal>APT::FTPArchive::MD5</literal>"
2608 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2609 #: apt-ftparchive.1.xml:503
2610 msgid "<option>--db</option>"
2613 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2614 #: apt-ftparchive.1.xml:505
2616 "Use a binary caching DB. This has no effect on the generate command. "
2617 "Configuration Item: <literal>APT::FTPArchive::DB</literal>."
2620 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2621 #: apt-ftparchive.1.xml:511
2623 "Quiet; produces output suitable for logging, omitting progress indicators. "
2624 "More q's will produce more quiet up to a maximum of 2. You can also use "
2625 "<option>-q=#</option> to set the quiet level, overriding the configuration "
2626 "file. Configuration Item: <literal>quiet</literal>."
2629 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2630 #: apt-ftparchive.1.xml:517
2631 msgid "<option>--delink</option>"
2634 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2635 #: apt-ftparchive.1.xml:519
2637 "Perform Delinking. If the <literal>External-Links</literal> setting is used "
2638 "then this option actually enables delinking of the files. It defaults to on "
2639 "and can be turned off with <option>--no-delink</option>. Configuration "
2640 "Item: <literal>APT::FTPArchive::DeLinkAct</literal>."
2643 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2644 #: apt-ftparchive.1.xml:525
2645 msgid "<option>--contents</option>"
2648 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2649 #: apt-ftparchive.1.xml:527
2651 "Perform contents generation. When this option is set and package indexes are "
2652 "being generated with a cache DB then the file listing will also be extracted "
2653 "and stored in the DB for later use. When using the generate command this "
2654 "option also allows the creation of any Contents files. The default is on. "
2655 "Configuration Item: <literal>APT::FTPArchive::Contents</literal>."
2658 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2659 #: apt-ftparchive.1.xml:535
2660 msgid "<option>--source-override</option>"
2663 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2664 #: apt-ftparchive.1.xml:537
2666 "Select the source override file to use with the <literal>sources</literal> "
2667 "command. Configuration Item: "
2668 "<literal>APT::FTPArchive::SourceOverride</literal>."
2671 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2672 #: apt-ftparchive.1.xml:541
2673 msgid "<option>--readonly</option>"
2676 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2677 #: apt-ftparchive.1.xml:543
2679 "Make the caching databases read only. Configuration Item: "
2680 "<literal>APT::FTPArchive::ReadOnlyDB</literal>."
2683 #. type: Content of: <refentry><refsect1><title>
2684 #: apt-ftparchive.1.xml:552 apt.conf.5.xml:982 apt_preferences.5.xml:462 sources.list.5.xml:193
2688 #. type: Content of: <refentry><refsect1><para><programlisting>
2689 #: apt-ftparchive.1.xml:558
2692 "<command>apt-ftparchive</command> packages "
2693 "<replaceable>directory</replaceable> | <command>gzip</command> > "
2694 "<filename>Packages.gz</filename>\n"
2697 #. type: Content of: <refentry><refsect1><para>
2698 #: apt-ftparchive.1.xml:554
2700 "To create a compressed Packages file for a directory containing binary "
2701 "packages (.deb): <placeholder type=\"programlisting\" id=\"0\"/>"
2704 #. type: Content of: <refentry><refsect1><para>
2705 #: apt-ftparchive.1.xml:568
2707 "<command>apt-ftparchive</command> returns zero on normal operation, decimal "
2711 #. The last update date
2712 #. type: Content of: <refentry><refentryinfo>
2715 "&apt-author.jgunthorpe; &apt-author.team; &apt-email; &apt-product; <date>08 "
2716 "November 2008</date>"
2719 #. type: <heading></heading>
2720 #: apt-get.8.xml:22 apt-get.8.xml:29 guide.sgml:96
2724 #. type: Content of: <refentry><refnamediv><refpurpose>
2726 msgid "APT package handling utility -- command-line interface"
2729 #. type: Content of: <refentry><refsynopsisdiv><cmdsynopsis>
2732 "<command>apt-get</command> <arg><option>-sqdyfmubV</option></arg> <arg> "
2733 "<option>-o= <replaceable>config_string</replaceable> </option> </arg> <arg> "
2734 "<option>-c= <replaceable>config_file</replaceable> </option> </arg> <arg> "
2735 "<option>-t=</option> <group choice='req'> <arg choice='plain'> "
2736 "<replaceable>target_release_name</replaceable> </arg> <arg choice='plain'> "
2737 "<replaceable>target_release_number_expression</replaceable> </arg> <arg "
2738 "choice='plain'> <replaceable>target_release_codename</replaceable> </arg> "
2739 "</group> </arg> <group choice=\"req\"> <arg choice='plain'>update</arg> <arg "
2740 "choice='plain'>upgrade</arg> <arg choice='plain'>dselect-upgrade</arg> <arg "
2741 "choice='plain'>dist-upgrade</arg> <arg choice='plain'>install <arg "
2742 "choice=\"plain\" rep=\"repeat\"><replaceable>pkg</replaceable> <arg> <group "
2743 "choice='req'> <arg choice='plain'> "
2744 "=<replaceable>pkg_version_number</replaceable> </arg> <arg choice='plain'> "
2745 "/<replaceable>target_release_name</replaceable> </arg> <arg choice='plain'> "
2746 "/<replaceable>target_release_codename</replaceable> </arg> </group> </arg> "
2747 "</arg> </arg> <arg choice='plain'>remove <arg choice=\"plain\" "
2748 "rep=\"repeat\"><replaceable>pkg</replaceable></arg></arg> <arg "
2749 "choice='plain'>purge <arg choice=\"plain\" "
2750 "rep=\"repeat\"><replaceable>pkg</replaceable></arg></arg> <arg "
2751 "choice='plain'>source <arg choice=\"plain\" "
2752 "rep=\"repeat\"><replaceable>pkg</replaceable> <arg> <group choice='req'> "
2753 "<arg choice='plain'> =<replaceable>pkg_version_number</replaceable> </arg> "
2754 "<arg choice='plain'> /<replaceable>target_release_name</replaceable> </arg> "
2755 "<arg choice='plain'> /<replaceable>target_release_codename</replaceable> "
2756 "</arg> </group> </arg> </arg> </arg> <arg choice='plain'>build-dep <arg "
2757 "choice=\"plain\" rep=\"repeat\"><replaceable>pkg</replaceable></arg></arg> "
2758 "<arg choice='plain'>check</arg> <arg choice='plain'>clean</arg> <arg "
2759 "choice='plain'>autoclean</arg> <arg choice='plain'>autoremove</arg> <arg "
2760 "choice='plain'> <group choice='req'> <arg choice='plain'>-v</arg> <arg "
2761 "choice='plain'>--version</arg> </group> </arg> <arg choice='plain'> <group "
2762 "choice='req'> <arg choice='plain'>-h</arg> <arg choice='plain'>--help</arg> "
2763 "</group> </arg> </group>"
2766 #. type: Content of: <refentry><refsect1><para>
2767 #: apt-get.8.xml:126
2769 "<command>apt-get</command> is the command-line tool for handling packages, "
2770 "and may be considered the user's \"back-end\" to other tools using the APT "
2771 "library. Several \"front-end\" interfaces exist, such as &dselect;, "
2772 "&aptitude;, &synaptic;, &gnome-apt; and &wajig;."
2775 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2776 #: apt-get.8.xml:135 apt-key.8.xml:123
2780 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2781 #: apt-get.8.xml:136
2783 "<literal>update</literal> is used to resynchronize the package index files "
2784 "from their sources. The indexes of available packages are fetched from the "
2785 "location(s) specified in <filename>/etc/apt/sources.list</filename>. For "
2786 "example, when using a Debian archive, this command retrieves and scans the "
2787 "<filename>Packages.gz</filename> files, so that information about new and "
2788 "updated packages is available. An <literal>update</literal> should always be "
2789 "performed before an <literal>upgrade</literal> or "
2790 "<literal>dist-upgrade</literal>. Please be aware that the overall progress "
2791 "meter will be incorrect as the size of the package files cannot be known in "
2795 #. type: <tag></tag>
2796 #: apt-get.8.xml:147 guide.sgml:121
2800 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2801 #: apt-get.8.xml:148
2803 "<literal>upgrade</literal> is used to install the newest versions of all "
2804 "packages currently installed on the system from the sources enumerated in "
2805 "<filename>/etc/apt/sources.list</filename>. Packages currently installed "
2806 "with new versions available are retrieved and upgraded; under no "
2807 "circumstances are currently installed packages removed, or packages not "
2808 "already installed retrieved and installed. New versions of currently "
2809 "installed packages that cannot be upgraded without changing the install "
2810 "status of another package will be left at their current version. An "
2811 "<literal>update</literal> must be performed first so that "
2812 "<command>apt-get</command> knows that new versions of packages are "
2816 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2817 #: apt-get.8.xml:160
2818 msgid "dselect-upgrade"
2821 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2822 #: apt-get.8.xml:161
2824 "<literal>dselect-upgrade</literal> is used in conjunction with the "
2825 "traditional Debian packaging front-end, "
2826 "&dselect;. <literal>dselect-upgrade</literal> follows the changes made by "
2827 "&dselect; to the <literal>Status</literal> field of available packages, and "
2828 "performs the actions necessary to realize that state (for instance, the "
2829 "removal of old and the installation of new packages)."
2832 #. type: <tag></tag>
2833 #: apt-get.8.xml:170 guide.sgml:140
2834 msgid "dist-upgrade"
2837 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2838 #: apt-get.8.xml:171
2840 "<literal>dist-upgrade</literal> in addition to performing the function of "
2841 "<literal>upgrade</literal>, also intelligently handles changing dependencies "
2842 "with new versions of packages; <command>apt-get</command> has a \"smart\" "
2843 "conflict resolution system, and it will attempt to upgrade the most "
2844 "important packages at the expense of less important ones if necessary. So, "
2845 "<literal>dist-upgrade</literal> command may remove some packages. The "
2846 "<filename>/etc/apt/sources.list</filename> file contains a list of locations "
2847 "from which to retrieve desired package files. See also &apt-preferences; "
2848 "for a mechanism for overriding the general settings for individual packages."
2851 #. type: <tag></tag>
2852 #: apt-get.8.xml:183 guide.sgml:131
2856 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2857 #: apt-get.8.xml:185
2859 "<literal>install</literal> is followed by one or more packages desired for "
2860 "installation or upgrading. Each package is a package name, not a fully "
2861 "qualified filename (for instance, in a Debian GNU/Linux system, libc6 would "
2862 "be the argument provided, not <literal>libc6_1.9.6-2.deb</literal>). All "
2863 "packages required by the package(s) specified for installation will also be "
2864 "retrieved and installed. The <filename>/etc/apt/sources.list</filename> "
2865 "file is used to locate the desired packages. If a hyphen is appended to the "
2866 "package name (with no intervening space), the identified package will be "
2867 "removed if it is installed. Similarly a plus sign can be used to designate "
2868 "a package to install. These latter features may be used to override "
2869 "decisions made by apt-get's conflict resolution system."
2872 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2873 #: apt-get.8.xml:203
2875 "A specific version of a package can be selected for installation by "
2876 "following the package name with an equals and the version of the package to "
2877 "select. This will cause that version to be located and selected for "
2878 "install. Alternatively a specific distribution can be selected by following "
2879 "the package name with a slash and the version of the distribution or the "
2880 "Archive name (stable, testing, unstable)."
2883 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2884 #: apt-get.8.xml:210
2886 "Both of the version selection mechanisms can downgrade packages and must be "
2890 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2891 #: apt-get.8.xml:213
2893 "This is also the target to use if you want to upgrade one or more "
2894 "already-installed packages without upgrading every package you have on your "
2895 "system. Unlike the \"upgrade\" target, which installs the newest version of "
2896 "all currently installed packages, \"install\" will install the newest "
2897 "version of only the package(s) specified. Simply provide the name of the "
2898 "package(s) you wish to upgrade, and if a newer version is available, it (and "
2899 "its dependencies, as described above) will be downloaded and installed."
2902 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2903 #: apt-get.8.xml:224
2905 "Finally, the &apt-preferences; mechanism allows you to create an alternative "
2906 "installation policy for individual packages."
2909 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2910 #: apt-get.8.xml:228
2912 "If no package matches the given expression and the expression contains one "
2913 "of '.', '?' or '*' then it is assumed to be a POSIX regular expression, and "
2914 "it is applied to all package names in the database. Any matches are then "
2915 "installed (or removed). Note that matching is done by substring so 'lo.*' "
2916 "matches 'how-lo' and 'lowest'. If this is undesired, anchor the regular "
2917 "expression with a '^' or '$' character, or create a more specific regular "
2921 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2922 #: apt-get.8.xml:237
2926 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2927 #: apt-get.8.xml:238
2929 "<literal>remove</literal> is identical to <literal>install</literal> except "
2930 "that packages are removed instead of installed. Note the removing a package "
2931 "leaves its configuration files in system. If a plus sign is appended to the "
2932 "package name (with no intervening space), the identified package will be "
2933 "installed instead of removed."
2936 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2937 #: apt-get.8.xml:245
2941 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2942 #: apt-get.8.xml:246
2944 "<literal>purge</literal> is identical to <literal>remove</literal> except "
2945 "that packages are removed and purged (any configuration files are deleted "
2949 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
2950 #: apt-get.8.xml:250
2954 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2955 #: apt-get.8.xml:251
2957 "<literal>source</literal> causes <command>apt-get</command> to fetch source "
2958 "packages. APT will examine the available packages to decide which source "
2959 "package to fetch. It will then find and download into the current directory "
2960 "the newest available version of that source package while respect the "
2961 "default release, set with the option "
2962 "<literal>APT::Default-Release</literal>, the <option>-t</option> option or "
2963 "per package with the <literal>pkg/release</literal> syntax, if possible."
2966 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2967 #: apt-get.8.xml:259
2969 "Source packages are tracked separately from binary packages via "
2970 "<literal>deb-src</literal> type lines in the &sources-list; file. This means "
2971 "that you will need to add such a line for each repository you want to get "
2972 "sources from. If you don't do this you will properly get another (newer, "
2973 "older or none) source version than the one you have installed or could "
2977 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2978 #: apt-get.8.xml:266
2980 "If the <option>--compile</option> options is specified then the package will "
2981 "be compiled to a binary .deb using <command>dpkg-buildpackage</command>, if "
2982 "<option>--download-only</option> is specified then the source package will "
2986 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2987 #: apt-get.8.xml:271
2989 "A specific source version can be retrieved by postfixing the source name "
2990 "with an equals and then the version to fetch, similar to the mechanism used "
2991 "for the package files. This enables exact matching of the source package "
2992 "name and version, implicitly enabling the "
2993 "<literal>APT::Get::Only-Source</literal> option."
2996 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2997 #: apt-get.8.xml:277
2999 "Note that source packages are not tracked like binary packages, they exist "
3000 "only in the current directory and are similar to downloading source tar "
3004 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3005 #: apt-get.8.xml:282
3009 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3010 #: apt-get.8.xml:283
3012 "<literal>build-dep</literal> causes apt-get to install/remove packages in an "
3013 "attempt to satisfy the build dependencies for a source package."
3016 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3017 #: apt-get.8.xml:287
3021 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3022 #: apt-get.8.xml:288
3024 "<literal>check</literal> is a diagnostic tool; it updates the package cache "
3025 "and checks for broken dependencies."
3028 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3029 #: apt-get.8.xml:293
3031 "<literal>clean</literal> clears out the local repository of retrieved "
3032 "package files. It removes everything but the lock file from "
3033 "<filename>&cachedir;/archives/</filename> and "
3034 "<filename>&cachedir;/archives/partial/</filename>. When APT is used as a "
3035 "&dselect; method, <literal>clean</literal> is run automatically. Those who "
3036 "do not use dselect will likely want to run <literal>apt-get clean</literal> "
3037 "from time to time to free up disk space."
3040 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3041 #: apt-get.8.xml:302
3045 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3046 #: apt-get.8.xml:303
3048 "Like <literal>clean</literal>, <literal>autoclean</literal> clears out the "
3049 "local repository of retrieved package files. The difference is that it only "
3050 "removes package files that can no longer be downloaded, and are largely "
3051 "useless. This allows a cache to be maintained over a long period without it "
3052 "growing out of control. The configuration option "
3053 "<literal>APT::Clean-Installed</literal> will prevent installed packages from "
3054 "being erased if it is set to off."
3057 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3058 #: apt-get.8.xml:312
3062 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3063 #: apt-get.8.xml:313
3065 "<literal>autoremove</literal> is used to remove packages that were "
3066 "automatically installed to satisfy dependencies for some package and that "
3067 "are no more needed."
3070 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3071 #: apt-get.8.xml:323 apt-get.8.xml:429
3072 msgid "<option>--no-install-recommends</option>"
3075 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3076 #: apt-get.8.xml:324
3078 "Do not consider recommended packages as a dependency for installing. "
3079 "Configuration Item: <literal>APT::Install-Recommends</literal>."
3082 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3083 #: apt-get.8.xml:328
3084 msgid "<option>--download-only</option>"
3087 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3088 #: apt-get.8.xml:329
3090 "Download only; package files are only retrieved, not unpacked or installed. "
3091 "Configuration Item: <literal>APT::Get::Download-Only</literal>."
3094 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3095 #: apt-get.8.xml:333
3096 msgid "<option>--fix-broken</option>"
3099 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3100 #: apt-get.8.xml:334
3102 "Fix; attempt to correct a system with broken dependencies in place. This "
3103 "option, when used with install/remove, can omit any packages to permit APT "
3104 "to deduce a likely solution. Any Package that are specified must completely "
3105 "correct the problem. The option is sometimes necessary when running APT for "
3106 "the first time; APT itself does not allow broken package dependencies to "
3107 "exist on a system. It is possible that a system's dependency structure can "
3108 "be so corrupt as to require manual intervention (which usually means using "
3109 "&dselect; or <command>dpkg --remove</command> to eliminate some of the "
3110 "offending packages). Use of this option together with <option>-m</option> "
3111 "may produce an error in some situations. Configuration Item: "
3112 "<literal>APT::Get::Fix-Broken</literal>."
3115 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3116 #: apt-get.8.xml:347
3117 msgid "<option>--ignore-missing</option>"
3120 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3121 #: apt-get.8.xml:348
3122 msgid "<option>--fix-missing</option>"
3125 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3126 #: apt-get.8.xml:349
3128 "Ignore missing packages; If packages cannot be retrieved or fail the "
3129 "integrity check after retrieval (corrupted package files), hold back those "
3130 "packages and handle the result. Use of this option together with "
3131 "<option>-f</option> may produce an error in some situations. If a package is "
3132 "selected for installation (particularly if it is mentioned on the command "
3133 "line) and it could not be downloaded then it will be silently held back. "
3134 "Configuration Item: <literal>APT::Get::Fix-Missing</literal>."
3137 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3138 #: apt-get.8.xml:359
3139 msgid "<option>--no-download</option>"
3142 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3143 #: apt-get.8.xml:360
3145 "Disables downloading of packages. This is best used with "
3146 "<option>--ignore-missing</option> to force APT to use only the .debs it has "
3147 "already downloaded. Configuration Item: "
3148 "<literal>APT::Get::Download</literal>."
3151 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3152 #: apt-get.8.xml:367
3154 "Quiet; produces output suitable for logging, omitting progress indicators. "
3155 "More q's will produce more quiet up to a maximum of 2. You can also use "
3156 "<option>-q=#</option> to set the quiet level, overriding the configuration "
3157 "file. Note that quiet level 2 implies <option>-y</option>, you should never "
3158 "use -qq without a no-action modifier such as -d, --print-uris or -s as APT "
3159 "may decided to do something you did not expect. Configuration Item: "
3160 "<literal>quiet</literal>."
3163 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3164 #: apt-get.8.xml:377
3165 msgid "<option>--simulate</option>"
3168 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3169 #: apt-get.8.xml:379
3170 msgid "<option>--dry-run</option>"
3173 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3174 #: apt-get.8.xml:382
3176 "No action; perform a simulation of events that would occur but do not "
3177 "actually change the system. Configuration Item: "
3178 "<literal>APT::Get::Simulate</literal>."
3181 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3182 #: apt-get.8.xml:386
3184 "Simulation run as user will deactivate locking "
3185 "(<literal>Debug::NoLocking</literal>) automatic. Also a notice will be "
3186 "displayed indicating that this is only a simulation, if the option "
3187 "<literal>APT::Get::Show-User-Simulation-Note</literal> is set (Default: "
3188 "true). Neither NoLocking nor the notice will be triggered if run as root "
3189 "(root should know what he is doing without further warnings by "
3190 "<literal>apt-get</literal>)."
3193 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3194 #: apt-get.8.xml:392
3196 "Simulate prints out a series of lines each one representing a dpkg "
3197 "operation, Configure (Conf), Remove (Remv), Unpack (Inst). Square brackets "
3198 "indicate broken packages with and empty set of square brackets meaning "
3199 "breaks that are of no consequence (rare)."
3202 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3203 #: apt-get.8.xml:399
3204 msgid "<option>-y</option>"
3207 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3208 #: apt-get.8.xml:399
3209 msgid "<option>--yes</option>"
3212 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3213 #: apt-get.8.xml:400
3214 msgid "<option>--assume-yes</option>"
3217 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3218 #: apt-get.8.xml:401
3220 "Automatic yes to prompts; assume \"yes\" as answer to all prompts and run "
3221 "non-interactively. If an undesirable situation, such as changing a held "
3222 "package, trying to install a unauthenticated package or removing an "
3223 "essential package occurs then <literal>apt-get</literal> will abort. "
3224 "Configuration Item: <literal>APT::Get::Assume-Yes</literal>."
3227 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3228 #: apt-get.8.xml:408
3229 msgid "<option>-u</option>"
3232 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3233 #: apt-get.8.xml:408
3234 msgid "<option>--show-upgraded</option>"
3237 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3238 #: apt-get.8.xml:409
3240 "Show upgraded packages; Print out a list of all packages that are to be "
3241 "upgraded. Configuration Item: <literal>APT::Get::Show-Upgraded</literal>."
3244 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3245 #: apt-get.8.xml:414
3246 msgid "<option>-V</option>"
3249 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3250 #: apt-get.8.xml:414
3251 msgid "<option>--verbose-versions</option>"
3254 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3255 #: apt-get.8.xml:415
3257 "Show full versions for upgraded and installed packages. Configuration Item: "
3258 "<literal>APT::Get::Show-Versions</literal>."
3261 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3262 #: apt-get.8.xml:419
3263 msgid "<option>-b</option>"
3266 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3267 #: apt-get.8.xml:419
3268 msgid "<option>--compile</option>"
3271 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3272 #: apt-get.8.xml:420
3273 msgid "<option>--build</option>"
3276 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3277 #: apt-get.8.xml:421
3279 "Compile source packages after downloading them. Configuration Item: "
3280 "<literal>APT::Get::Compile</literal>."
3283 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3284 #: apt-get.8.xml:425
3285 msgid "<option>--install-recommends</option>"
3288 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3289 #: apt-get.8.xml:426
3290 msgid "Also install recommended packages."
3293 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3294 #: apt-get.8.xml:430
3295 msgid "Do not install recommended packages."
3298 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3299 #: apt-get.8.xml:433
3300 msgid "<option>--ignore-hold</option>"
3303 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3304 #: apt-get.8.xml:434
3306 "Ignore package Holds; This causes <command>apt-get</command> to ignore a "
3307 "hold placed on a package. This may be useful in conjunction with "
3308 "<literal>dist-upgrade</literal> to override a large number of undesired "
3309 "holds. Configuration Item: <literal>APT::Ignore-Hold</literal>."
3312 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3313 #: apt-get.8.xml:440
3314 msgid "<option>--no-upgrade</option>"
3317 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3318 #: apt-get.8.xml:441
3320 "Do not upgrade packages; When used in conjunction with "
3321 "<literal>install</literal>, <literal>no-upgrade</literal> will prevent "
3322 "packages on the command line from being upgraded if they are already "
3323 "installed. Configuration Item: <literal>APT::Get::Upgrade</literal>."
3326 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3327 #: apt-get.8.xml:447
3328 msgid "<option>--force-yes</option>"
3331 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3332 #: apt-get.8.xml:448
3334 "Force yes; This is a dangerous option that will cause apt to continue "
3335 "without prompting if it is doing something potentially harmful. It should "
3336 "not be used except in very special situations. Using "
3337 "<literal>force-yes</literal> can potentially destroy your system! "
3338 "Configuration Item: <literal>APT::Get::force-yes</literal>."
3341 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3342 #: apt-get.8.xml:455
3343 msgid "<option>--print-uris</option>"
3346 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3347 #: apt-get.8.xml:456
3349 "Instead of fetching the files to install their URIs are printed. Each URI "
3350 "will have the path, the destination file name, the size and the expected md5 "
3351 "hash. Note that the file name to write to will not always match the file "
3352 "name on the remote site! This also works with the <literal>source</literal> "
3353 "and <literal>update</literal> commands. When used with the "
3354 "<literal>update</literal> command the MD5 and size are not included, and it "
3355 "is up to the user to decompress any compressed files. Configuration Item: "
3356 "<literal>APT::Get::Print-URIs</literal>."
3359 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3360 #: apt-get.8.xml:466
3361 msgid "<option>--purge</option>"
3364 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3365 #: apt-get.8.xml:467
3367 "Use purge instead of remove for anything that would be removed. An asterisk "
3368 "(\"*\") will be displayed next to packages which are scheduled to be "
3369 "purged. <option>remove --purge</option> is equivalent for "
3370 "<option>purge</option> command. Configuration Item: "
3371 "<literal>APT::Get::Purge</literal>."
3374 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3375 #: apt-get.8.xml:474
3376 msgid "<option>--reinstall</option>"
3379 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3380 #: apt-get.8.xml:475
3382 "Re-Install packages that are already installed and at the newest version. "
3383 "Configuration Item: <literal>APT::Get::ReInstall</literal>."
3386 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3387 #: apt-get.8.xml:479
3388 msgid "<option>--list-cleanup</option>"
3391 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3392 #: apt-get.8.xml:480
3394 "This option defaults to on, use <literal>--no-list-cleanup</literal> to turn "
3395 "it off. When on <command>apt-get</command> will automatically manage the "
3396 "contents of <filename>&statedir;/lists</filename> to ensure that obsolete "
3397 "files are erased. The only reason to turn it off is if you frequently "
3398 "change your source list. Configuration Item: "
3399 "<literal>APT::Get::List-Cleanup</literal>."
3402 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3403 #: apt-get.8.xml:489
3404 msgid "<option>--target-release</option>"
3407 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3408 #: apt-get.8.xml:490
3409 msgid "<option>--default-release</option>"
3412 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3413 #: apt-get.8.xml:491
3415 "This option controls the default input to the policy engine, it creates a "
3416 "default pin at priority 990 using the specified release string. This "
3417 "overrides the general settings in "
3418 "<filename>/etc/apt/preferences</filename>. Specifically pinned packages are "
3419 "not affected by the value of this option. In short, this option lets you "
3420 "have simple control over which distribution packages will be retrieved "
3421 "from. Some common examples might be <option>-t '2.1*'</option>, <option>-t "
3422 "unstable</option> or <option>-t sid</option>. Configuration Item: "
3423 "<literal>APT::Default-Release</literal>; see also the &apt-preferences; "
3427 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3428 #: apt-get.8.xml:504
3429 msgid "<option>--trivial-only</option>"
3432 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3433 #: apt-get.8.xml:506
3435 "Only perform operations that are 'trivial'. Logically this can be considered "
3436 "related to <option>--assume-yes</option>, where "
3437 "<option>--assume-yes</option> will answer yes to any prompt, "
3438 "<option>--trivial-only</option> will answer no. Configuration Item: "
3439 "<literal>APT::Get::Trivial-Only</literal>."
3442 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3443 #: apt-get.8.xml:512
3444 msgid "<option>--no-remove</option>"
3447 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3448 #: apt-get.8.xml:513
3450 "If any packages are to be removed apt-get immediately aborts without "
3451 "prompting. Configuration Item: <literal>APT::Get::Remove</literal>."
3454 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3455 #: apt-get.8.xml:518
3456 msgid "<option>--auto-remove</option>"
3459 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3460 #: apt-get.8.xml:519
3462 "If the command is either <literal>install</literal> or "
3463 "<literal>remove</literal>, then this option acts like running "
3464 "<literal>autoremove</literal> command, removing the unused dependency "
3465 "packages. Configuration Item: <literal>APT::Get::AutomaticRemove</literal>."
3468 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3469 #: apt-get.8.xml:525
3470 msgid "<option>--only-source</option>"
3473 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3474 #: apt-get.8.xml:526
3476 "Only has meaning for the <literal>source</literal> and "
3477 "<literal>build-dep</literal> commands. Indicates that the given source "
3478 "names are not to be mapped through the binary table. This means that if "
3479 "this option is specified, these commands will only accept source package "
3480 "names as arguments, rather than accepting binary package names and looking "
3481 "up the corresponding source package. Configuration Item: "
3482 "<literal>APT::Get::Only-Source</literal>."
3485 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3486 #: apt-get.8.xml:536
3487 msgid "<option>--diff-only</option>"
3490 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3491 #: apt-get.8.xml:536
3492 msgid "<option>--dsc-only</option>"
3495 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3496 #: apt-get.8.xml:536
3497 msgid "<option>--tar-only</option>"
3500 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3501 #: apt-get.8.xml:537
3503 "Download only the diff, dsc, or tar file of a source archive. Configuration "
3504 "Item: <literal>APT::Get::Diff-Only</literal>, "
3505 "<literal>APT::Get::Dsc-Only</literal>, and "
3506 "<literal>APT::Get::Tar-Only</literal>."
3509 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3510 #: apt-get.8.xml:542
3511 msgid "<option>--arch-only</option>"
3514 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3515 #: apt-get.8.xml:543
3517 "Only process architecture-dependent build-dependencies. Configuration Item: "
3518 "<literal>APT::Get::Arch-Only</literal>."
3521 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3522 #: apt-get.8.xml:547
3523 msgid "<option>--allow-unauthenticated</option>"
3526 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3527 #: apt-get.8.xml:548
3529 "Ignore if packages can't be authenticated and don't prompt about it. This "
3530 "is useful for tools like pbuilder. Configuration Item: "
3531 "<literal>APT::Get::AllowUnauthenticated</literal>."
3534 #. type: Content of: <refentry><refsect1><variablelist>
3535 #: apt-get.8.xml:561
3537 "&file-sourceslist; &file-aptconf; &file-preferences; &file-cachearchives; "
3541 #. type: Content of: <refentry><refsect1><para>
3542 #: apt-get.8.xml:570
3544 "&apt-cache;, &apt-cdrom;, &dpkg;, &dselect;, &sources-list;, &apt-conf;, "
3545 "&apt-config;, &apt-secure;, The APT User's guide in &guidesdir;, "
3546 "&apt-preferences;, the APT Howto."
3549 #. type: Content of: <refentry><refsect1><para>
3550 #: apt-get.8.xml:576
3552 "<command>apt-get</command> returns zero on normal operation, decimal 100 on "
3556 #. type: Content of: <refentry><refsect1><title>
3557 #: apt-get.8.xml:579
3558 msgid "ORIGINAL AUTHORS"
3561 #. type: Content of: <refentry><refsect1><para>
3562 #: apt-get.8.xml:580
3563 msgid "&apt-author.jgunthorpe;"
3566 #. type: Content of: <refentry><refsect1><title>
3567 #: apt-get.8.xml:583
3568 msgid "CURRENT AUTHORS"
3571 #. type: Content of: <refentry><refsect1><para>
3572 #: apt-get.8.xml:585
3573 msgid "&apt-author.team;"
3576 #. type: Content of: <refentry><refnamediv><refname>
3577 #: apt-key.8.xml:14 apt-key.8.xml:21
3581 #. type: Content of: <refentry><refnamediv><refpurpose>
3583 msgid "APT key management utility"
3586 #. type: Content of: <refentry><refsynopsisdiv><cmdsynopsis>
3589 "<command>apt-key</command> <arg><replaceable>command</replaceable>/</arg> "
3591 "rep=\"repeat\"><option><replaceable>arguments</replaceable></option></arg>"
3594 #. type: Content of: <refentry><refsect1><para>
3597 "<command>apt-key</command> is used to manage the list of keys used by apt to "
3598 "authenticate packages. Packages which have been authenticated using these "
3599 "keys will be considered trusted."
3602 #. type: Content of: <refentry><refsect1><title>
3607 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3609 msgid "add <replaceable>filename</replaceable>"
3612 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3615 "Add a new key to the list of trusted keys. The key is read from "
3616 "<replaceable>filename</replaceable>, or standard input if "
3617 "<replaceable>filename</replaceable> is <literal>-</literal>."
3620 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3622 msgid "del <replaceable>keyid</replaceable>"
3625 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3627 msgid "Remove a key from the list of trusted keys."
3630 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3632 msgid "export <replaceable>keyid</replaceable>"
3635 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3637 msgid "Output the key <replaceable>keyid</replaceable> to standard output."
3640 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3645 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3647 msgid "Output all trusted keys to standard output."
3650 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3655 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3657 msgid "List trusted keys."
3660 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3661 #: apt-key.8.xml:100
3665 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3666 #: apt-key.8.xml:104
3667 msgid "List fingerprints of trusted keys."
3670 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3671 #: apt-key.8.xml:111
3675 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3676 #: apt-key.8.xml:115
3678 "Pass advanced options to gpg. With adv --recv-key you can download the "
3682 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3683 #: apt-key.8.xml:127
3685 "Update the local keyring with the keyring of Debian archive keys and removes "
3686 "from the keyring the archive keys which are no longer valid."
3689 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3690 #: apt-key.8.xml:140
3691 msgid "<filename>/etc/apt/trusted.gpg</filename>"
3694 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3695 #: apt-key.8.xml:141
3696 msgid "Keyring of local trusted keys, new keys will be added here."
3699 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3700 #: apt-key.8.xml:144
3701 msgid "<filename>/etc/apt/trustdb.gpg</filename>"
3704 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3705 #: apt-key.8.xml:145
3706 msgid "Local trust database of archive keys."
3709 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3710 #: apt-key.8.xml:148
3711 msgid "<filename>/usr/share/keyrings/debian-archive-keyring.gpg</filename>"
3714 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3715 #: apt-key.8.xml:149
3716 msgid "Keyring of Debian archive trusted keys."
3719 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3720 #: apt-key.8.xml:152
3721 msgid "<filename>/usr/share/keyrings/debian-archive-removed-keys.gpg</filename>"
3724 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3725 #: apt-key.8.xml:153
3726 msgid "Keyring of Debian archive removed trusted keys."
3729 #. type: Content of: <refentry><refsect1><para>
3730 #: apt-key.8.xml:164
3731 msgid "&apt-get;, &apt-secure;"
3734 #. The last update date
3735 #. type: Content of: <refentry><refentryinfo>
3736 #: apt-mark.8.xml:13
3738 "&apt-author.moconnor; &apt-author.team; &apt-email; &apt-product; <date>9 "
3739 "August 2009</date>"
3742 #. type: Content of: <refentry><refnamediv><refname>
3743 #: apt-mark.8.xml:22 apt-mark.8.xml:29
3747 #. type: Content of: <refentry><refnamediv><refpurpose>
3748 #: apt-mark.8.xml:30
3749 msgid "mark/unmark a package as being automatically-installed"
3752 #. type: Content of: <refentry><refsynopsisdiv><cmdsynopsis>
3753 #: apt-mark.8.xml:36
3755 " <command>apt-mark</command> <arg><option>-hv</option></arg> "
3756 "<arg><option>-f=<replaceable>FILENAME</replaceable></option></arg> <group "
3757 "choice=\"plain\"> <arg choice=\"plain\"> <group choice=\"req\"> <arg "
3758 "choice=\"plain\">markauto</arg> <arg choice=\"plain\">unmarkauto</arg> "
3759 "</group> <arg choice=\"plain\" "
3760 "rep=\"repeat\"><replaceable>package</replaceable></arg> </arg> <arg "
3761 "choice=\"plain\">showauto</arg> </group>"
3764 #. type: Content of: <refentry><refsect1><para>
3765 #: apt-mark.8.xml:53
3767 "<command>apt-mark</command> will change whether a package has been marked as "
3768 "being automatically installed."
3771 #. type: Content of: <refentry><refsect1><para>
3772 #: apt-mark.8.xml:57
3774 "When you request that a package is installed, and as a result other packages "
3775 "are installed to satisfy its dependencies, the dependencies are marked as "
3776 "being automatically installed. Once these automatically installed packages "
3777 "are no longer depended on by any manually installed packages, they will be "
3778 "removed by e.g. <command>apt-get</command> or <command>aptitude</command>."
3781 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3782 #: apt-mark.8.xml:65
3786 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3787 #: apt-mark.8.xml:66
3789 "<literal>markauto</literal> is used to mark a package as being automatically "
3790 "installed, which will cause the package to be removed when no more manually "
3791 "installed packages depend on this package."
3794 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3795 #: apt-mark.8.xml:73
3799 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3800 #: apt-mark.8.xml:74
3802 "<literal>unmarkauto</literal> is used to mark a package as being manually "
3803 "installed, which will prevent the package from being automatically removed "
3804 "if no other packages depend on it."
3807 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3808 #: apt-mark.8.xml:81
3812 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3813 #: apt-mark.8.xml:82
3815 "<literal>showauto</literal> is used to print a list of automatically "
3816 "installed packages with each package on a new line."
3819 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3820 #: apt-mark.8.xml:93
3821 msgid "<option>-f=<filename><replaceable>FILENAME</replaceable></filename></option>"
3824 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3825 #: apt-mark.8.xml:94
3826 msgid "<option>--file=<filename><replaceable>FILENAME</replaceable></filename></option>"
3829 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3830 #: apt-mark.8.xml:97
3832 "Read/Write package stats from "
3833 "<filename><replaceable>FILENAME</replaceable></filename> instead of the "
3834 "default location, which is <filename>extended_status</filename> in the "
3835 "directory defined by the Configuration Item: <literal>Dir::State</literal>."
3838 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3839 #: apt-mark.8.xml:103
3840 msgid "<option>-h</option>"
3843 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3844 #: apt-mark.8.xml:104
3845 msgid "<option>--help</option>"
3848 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3849 #: apt-mark.8.xml:105
3850 msgid "Show a short usage summary."
3853 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3854 #: apt-mark.8.xml:111
3855 msgid "<option>-v</option>"
3858 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3859 #: apt-mark.8.xml:112
3860 msgid "<option>--version</option>"
3863 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3864 #: apt-mark.8.xml:113
3865 msgid "Show the program version."
3868 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3869 #: apt-mark.8.xml:124
3870 msgid "<filename>/var/lib/apt/extended_states</filename>"
3873 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3874 #: apt-mark.8.xml:125
3876 "Status list of auto-installed packages. Configuration Item: "
3877 "<literal>Dir::State</literal> sets the path to the "
3878 "<filename>extended_states</filename> file."
3881 #. type: Content of: <refentry><refsect1><para>
3882 #: apt-mark.8.xml:134
3883 msgid "&apt-get;,&aptitude;,&apt-conf;"
3886 #. type: Content of: <refentry><refsect1><para>
3887 #: apt-mark.8.xml:138
3889 "<command>apt-mark</command> returns zero on normal operation, non-zero on "
3893 #. type: Content of: <refentry><refnamediv><refname>
3894 #: apt-secure.8.xml:14 apt-secure.8.xml:36
3898 #. type: Content of: <refentry><refnamediv><refpurpose>
3899 #: apt-secure.8.xml:37
3900 msgid "Archive authentication support for APT"
3903 #. type: Content of: <refentry><refsect1><para>
3904 #: apt-secure.8.xml:42
3906 "Starting with version 0.6, <command>apt</command> contains code that does "
3907 "signature checking of the Release file for all archives. This ensures that "
3908 "packages in the archive can't be modified by people who have no access to "
3909 "the Release file signing key."
3912 #. type: Content of: <refentry><refsect1><para>
3913 #: apt-secure.8.xml:50
3915 "If a package comes from a archive without a signature or with a signature "
3916 "that apt does not have a key for that package is considered untrusted and "
3917 "installing it will result in a big warning. <command>apt-get</command> will "
3918 "currently only warn for unsigned archives, future releases might force all "
3919 "sources to be verified before downloading packages from them."
3922 #. type: Content of: <refentry><refsect1><para>
3923 #: apt-secure.8.xml:59
3925 "The package frontends &apt-get;, &aptitude; and &synaptic; support this new "
3926 "authentication feature."
3929 #. type: Content of: <refentry><refsect1><title>
3930 #: apt-secure.8.xml:64
3931 msgid "Trusted archives"
3934 #. type: Content of: <refentry><refsect1><para>
3935 #: apt-secure.8.xml:67
3937 "The chain of trust from an apt archive to the end user is made up of "
3938 "different steps. <command>apt-secure</command> is the last step in this "
3939 "chain, trusting an archive does not mean that the packages that you trust it "
3940 "do not contain malicious code but means that you trust the archive "
3941 "maintainer. Its the archive maintainer responsibility to ensure that the "
3942 "archive integrity is correct."
3945 #. type: Content of: <refentry><refsect1><para>
3946 #: apt-secure.8.xml:75
3948 "apt-secure does not review signatures at a package level. If you require "
3949 "tools to do this you should look at <command>debsig-verify</command> and "
3950 "<command>debsign</command> (provided in the debsig-verify and devscripts "
3951 "packages respectively)."
3954 #. type: Content of: <refentry><refsect1><para>
3955 #: apt-secure.8.xml:82
3957 "The chain of trust in Debian starts when a maintainer uploads a new package "
3958 "or a new version of a package to the Debian archive. This upload in order to "
3959 "become effective needs to be signed by a key of a maintainer within the "
3960 "Debian maintainer's keyring (available in the debian-keyring "
3961 "package). Maintainer's keys are signed by other maintainers following "
3962 "pre-established procedures to ensure the identity of the key holder."
3965 #. type: Content of: <refentry><refsect1><para>
3966 #: apt-secure.8.xml:92
3968 "Once the uploaded package is verified and included in the archive, the "
3969 "maintainer signature is stripped off, an MD5 sum of the package is computed "
3970 "and put in the Packages file. The MD5 sum of all of the packages files are "
3971 "then computed and put into the Release file. The Release file is then signed "
3972 "by the archive key (which is created once a year and distributed through the "
3973 "FTP server. This key is also on the Debian keyring."
3976 #. type: Content of: <refentry><refsect1><para>
3977 #: apt-secure.8.xml:102
3979 "Any end user can check the signature of the Release file, extract the MD5 "
3980 "sum of a package from it and compare it with the MD5 sum of the package he "
3981 "downloaded. Prior to version 0.6 only the MD5 sum of the downloaded Debian "
3982 "package was checked. Now both the MD5 sum and the signature of the Release "
3986 #. type: Content of: <refentry><refsect1><para>
3987 #: apt-secure.8.xml:109
3989 "Notice that this is distinct from checking signatures on a per package "
3990 "basis. It is designed to prevent two possible attacks:"
3993 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
3994 #: apt-secure.8.xml:114
3996 "<literal>Network \"man in the middle\" attacks</literal>. Without signature "
3997 "checking, a malicious agent can introduce himself in the package download "
3998 "process and provide malicious software either by controlling a network "
3999 "element (router, switch, etc.) or by redirecting traffic to a rogue server "
4000 "(through arp or DNS spoofing attacks)."
4003 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
4004 #: apt-secure.8.xml:122
4006 "<literal>Mirror network compromise</literal>. Without signature checking, a "
4007 "malicious agent can compromise a mirror host and modify the files in it to "
4008 "propagate malicious software to all users downloading packages from that "
4012 #. type: Content of: <refentry><refsect1><para>
4013 #: apt-secure.8.xml:129
4015 "However, it does not defend against a compromise of the Debian master server "
4016 "itself (which signs the packages) or against a compromise of the key used to "
4017 "sign the Release files. In any case, this mechanism can complement a "
4018 "per-package signature."
4021 #. type: Content of: <refentry><refsect1><title>
4022 #: apt-secure.8.xml:135
4023 msgid "User configuration"
4026 #. type: Content of: <refentry><refsect1><para>
4027 #: apt-secure.8.xml:137
4029 "<command>apt-key</command> is the program that manages the list of keys used "
4030 "by apt. It can be used to add or remove keys although an installation of "
4031 "this release will automatically provide the default Debian archive signing "
4032 "keys used in the Debian package repositories."
4035 #. type: Content of: <refentry><refsect1><para>
4036 #: apt-secure.8.xml:144
4038 "In order to add a new key you need to first download it (you should make "
4039 "sure you are using a trusted communication channel when retrieving it), add "
4040 "it with <command>apt-key</command> and then run <command>apt-get "
4041 "update</command> so that apt can download and verify the "
4042 "<filename>Release.gpg</filename> files from the archives you have "
4046 #. type: Content of: <refentry><refsect1><title>
4047 #: apt-secure.8.xml:153
4048 msgid "Archive configuration"
4051 #. type: Content of: <refentry><refsect1><para>
4052 #: apt-secure.8.xml:155
4054 "If you want to provide archive signatures in an archive under your "
4055 "maintenance you have to:"
4058 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
4059 #: apt-secure.8.xml:160
4061 "<literal>Create a toplevel Release file</literal>. if it does not exist "
4062 "already. You can do this by running <command>apt-ftparchive "
4063 "release</command> (provided in apt-utils)."
4066 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
4067 #: apt-secure.8.xml:165
4069 "<literal>Sign it</literal>. You can do this by running <command>gpg -abs -o "
4070 "Release.gpg Release</command>."
4073 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
4074 #: apt-secure.8.xml:168
4076 "<literal>Publish the key fingerprint</literal>, that way your users will "
4077 "know what key they need to import in order to authenticate the files in the "
4081 #. type: Content of: <refentry><refsect1><para>
4082 #: apt-secure.8.xml:175
4084 "Whenever the contents of the archive changes (new packages are added or "
4085 "removed) the archive maintainer has to follow the first two steps previously "
4089 #. type: Content of: <refentry><refsect1><para>
4090 #: apt-secure.8.xml:183
4092 "&apt-conf;, &apt-get;, &sources-list;, &apt-key;, &apt-ftparchive;, "
4093 "&debsign; &debsig-verify;, &gpg;"
4096 #. type: Content of: <refentry><refsect1><para>
4097 #: apt-secure.8.xml:187
4099 "For more background information you might want to review the <ulink "
4100 "url=\"http://www.debian.org/doc/manuals/securing-debian-howto/ch7.en.html\">Debian "
4101 "Security Infrastructure</ulink> chapter of the Securing Debian Manual "
4102 "(available also in the harden-doc package) and the <ulink "
4103 "url=\"http://www.cryptnet.net/fdp/crypto/strong_distro.html\" >Strong "
4104 "Distribution HOWTO</ulink> by V. Alex Brennen."
4107 #. type: Content of: <refentry><refsect1><title>
4108 #: apt-secure.8.xml:200
4109 msgid "Manpage Authors"
4112 #. type: Content of: <refentry><refsect1><para>
4113 #: apt-secure.8.xml:202
4115 "This man-page is based on the work of Javier Fernández-Sanguino Peña, Isaac "
4116 "Jones, Colin Walters, Florian Weimer and Michael Vogt."
4119 #. type: Content of: <refentry><refnamediv><refname>
4120 #: apt-sortpkgs.1.xml:22 apt-sortpkgs.1.xml:29
4121 msgid "apt-sortpkgs"
4124 #. type: Content of: <refentry><refnamediv><refpurpose>
4125 #: apt-sortpkgs.1.xml:30
4126 msgid "Utility to sort package index files"
4129 #. type: Content of: <refentry><refsynopsisdiv><cmdsynopsis>
4130 #: apt-sortpkgs.1.xml:36
4132 "<command>apt-sortpkgs</command> <arg><option>-hvs</option></arg> "
4133 "<arg><option>-o=<replaceable>config string</replaceable></option></arg> "
4134 "<arg><option>-c=<replaceable>file</replaceable></option></arg> <arg "
4135 "choice=\"plain\" rep=\"repeat\"><replaceable>file</replaceable></arg>"
4138 #. type: Content of: <refentry><refsect1><para>
4139 #: apt-sortpkgs.1.xml:45
4141 "<command>apt-sortpkgs</command> will take an index file (Source index or "
4142 "Package index) and sort the records so that they are ordered by the package "
4143 "name. It will also sort the internal fields of each record according to the "
4144 "internal sorting rules."
4147 #. type: Content of: <refentry><refsect1><para>
4148 #: apt-sortpkgs.1.xml:51
4149 msgid "All output is sent to stdout, the input must be a seekable file."
4152 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4153 #: apt-sortpkgs.1.xml:58
4154 msgid "<option>--source</option>"
4157 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4158 #: apt-sortpkgs.1.xml:60
4160 "Use Source index field ordering. Configuration Item: "
4161 "<literal>APT::SortPkgs::Source</literal>."
4164 #. type: Content of: <refentry><refsect1><para>
4165 #: apt-sortpkgs.1.xml:74
4167 "<command>apt-sortpkgs</command> returns zero on normal operation, decimal "
4171 #. The last update date
4172 #. type: Content of: <refentry><refentryinfo>
4173 #: apt.conf.5.xml:13
4175 "&apt-author.jgunthorpe; &apt-author.team; <author> "
4176 "<firstname>Daniel</firstname> <surname>Burrows</surname> <contrib>Initial "
4177 "documentation of Debug::*.</contrib> <email>dburrows@debian.org</email> "
4178 "</author> &apt-email; &apt-product; <date>18 September 2009</date>"
4181 #. type: Content of: <refentry><refnamediv><refname>
4182 #: apt.conf.5.xml:28 apt.conf.5.xml:35
4186 #. type: Content of: <refentry><refmeta><manvolnum>
4187 #: apt.conf.5.xml:29 apt_preferences.5.xml:22 sources.list.5.xml:23
4191 #. type: Content of: <refentry><refnamediv><refpurpose>
4192 #: apt.conf.5.xml:36
4193 msgid "Configuration file for APT"
4196 #. type: Content of: <refentry><refsect1><para>
4197 #: apt.conf.5.xml:40
4199 "<filename>apt.conf</filename> is the main configuration file for the APT "
4200 "suite of tools, all tools make use of the configuration file and a common "
4201 "command line parser to provide a uniform environment. When an APT tool "
4202 "starts up it will read the configuration specified by the "
4203 "<envar>APT_CONFIG</envar> environment variable (if any) and then read the "
4204 "files in <literal>Dir::Etc::Parts</literal> then read the main configuration "
4205 "file specified by <literal>Dir::Etc::main</literal> then finally apply the "
4206 "command line options to override the configuration directives, possibly "
4207 "loading even more config files."
4210 #. type: Content of: <refentry><refsect1><para>
4211 #: apt.conf.5.xml:50
4213 "The configuration file is organized in a tree with options organized into "
4214 "functional groups. option specification is given with a double colon "
4215 "notation, for instance <literal>APT::Get::Assume-Yes</literal> is an option "
4216 "within the APT tool group, for the Get tool. options do not inherit from "
4217 "their parent groups."
4220 #. type: Content of: <refentry><refsect1><para>
4221 #: apt.conf.5.xml:56
4223 "Syntactically the configuration language is modeled after what the ISC tools "
4224 "such as bind and dhcp use. Lines starting with <literal>//</literal> are "
4225 "treated as comments (ignored), as well as all text between "
4226 "<literal>/*</literal> and <literal>*/</literal>, just like C/C++ comments. "
4227 "Each line is of the form <literal>APT::Get::Assume-Yes \"true\";</literal> "
4228 "The trailing semicolon and the quotes are required. The value must be on one "
4229 "line, and there is no kind of string concatenation. It must not include "
4230 "inside quotes. The behavior of the backslash \"\\\" and escaped characters "
4231 "inside a value is undefined and it should not be used. An option name may "
4232 "include alphanumerical characters and the \"/-:._+\" characters. A new scope "
4233 "can be opened with curly braces, like:"
4236 #. type: Content of: <refentry><refsect1><informalexample><programlisting>
4237 #: apt.conf.5.xml:70
4242 " Assume-Yes \"true\";\n"
4243 " Fix-Broken \"true\";\n"
4248 #. type: Content of: <refentry><refsect1><para>
4249 #: apt.conf.5.xml:78
4251 "with newlines placed to make it more readable. Lists can be created by "
4252 "opening a scope and including a single string enclosed in quotes followed by "
4253 "a semicolon. Multiple entries can be included, each separated by a "
4257 #. type: Content of: <refentry><refsect1><informalexample><programlisting>
4258 #: apt.conf.5.xml:83
4260 msgid "DPkg::Pre-Install-Pkgs {\"/usr/sbin/dpkg-preconfigure --apt\";};\n"
4263 #. type: Content of: <refentry><refsect1><para>
4264 #: apt.conf.5.xml:86
4266 "In general the sample configuration file in "
4267 "<filename>&docdir;examples/apt.conf</filename> &configureindex; is a good "
4268 "guide for how it should look."
4271 #. type: Content of: <refentry><refsect1><para>
4272 #: apt.conf.5.xml:90
4274 "The names of the configuration items are not case-sensitive. So in the "
4275 "previous example you could use <literal>dpkg::pre-install-pkgs</literal>."
4278 #. type: Content of: <refentry><refsect1><para>
4279 #: apt.conf.5.xml:93
4281 "Names for the configuration items are optional if a list is defined as it "
4282 "can be see in the <literal>DPkg::Pre-Install-Pkgs</literal> example "
4283 "above. If you don't specify a name a new entry will simply add a new option "
4284 "to the list. If you specify a name you can override the option as every "
4285 "other option by reassigning a new value to the option."
4288 #. type: Content of: <refentry><refsect1><para>
4289 #: apt.conf.5.xml:98
4291 "Two specials are allowed, <literal>#include</literal> (which is deprecated "
4292 "and not supported by alternative implementations) and "
4293 "<literal>#clear</literal>: <literal>#include</literal> will include the "
4294 "given file, unless the filename ends in a slash, then the whole directory is "
4295 "included. <literal>#clear</literal> is used to erase a part of the "
4296 "configuration tree. The specified element and all its descendants are "
4297 "erased. (Note that these lines also need to end with a semicolon.)"
4300 #. type: Content of: <refentry><refsect1><para>
4301 #: apt.conf.5.xml:106
4303 "The #clear command is the only way to delete a list or a complete scope. "
4304 "Reopening a scope or the ::-style described below will "
4305 "<emphasis>not</emphasis> override previously written entries. Only options "
4306 "can be overridden by addressing a new value to it - lists and scopes can't "
4307 "be overridden, only cleared."
4310 #. type: Content of: <refentry><refsect1><para>
4311 #: apt.conf.5.xml:111
4313 "All of the APT tools take a -o option which allows an arbitrary "
4314 "configuration directive to be specified on the command line. The syntax is a "
4315 "full option name (<literal>APT::Get::Assume-Yes</literal> for instance) "
4316 "followed by an equals sign then the new value of the option. Lists can be "
4317 "appended too by adding a trailing :: to the list name. (As you might "
4318 "suspect: The scope syntax can't be used on the command line.)"
4321 #. type: Content of: <refentry><refsect1><para>
4322 #: apt.conf.5.xml:118
4324 "Note that you can use :: only for appending one item per line to a list and "
4325 "that you should not use it in combination with the scope syntax. (The scope "
4326 "syntax implicit insert ::) Using both syntaxes together will trigger a bug "
4327 "which some users unfortunately relay on: An option with the unusual name "
4328 "\"<literal>::</literal>\" which acts like every other option with a "
4329 "name. These introduces many problems including that a user who writes "
4330 "multiple lines in this <emphasis>wrong</emphasis> syntax in the hope to "
4331 "append to a list will gain the opposite as only the last assignment for this "
4332 "option \"<literal>::</literal>\" will be used. Upcoming APT versions will "
4333 "raise errors and will stop working if they encounter this misuse, so please "
4334 "correct such statements now as long as APT doesn't complain explicit about "
4338 #. type: Content of: <refentry><refsect1><title>
4339 #: apt.conf.5.xml:130
4340 msgid "The APT Group"
4343 #. type: Content of: <refentry><refsect1><para>
4344 #: apt.conf.5.xml:131
4346 "This group of options controls general APT behavior as well as holding the "
4347 "options for all of the tools."
4350 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4351 #: apt.conf.5.xml:135
4352 msgid "Architecture"
4355 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4356 #: apt.conf.5.xml:136
4358 "System Architecture; sets the architecture to use when fetching files and "
4359 "parsing package lists. The internal default is the architecture apt was "
4363 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4364 #: apt.conf.5.xml:141
4365 msgid "Default-Release"
4368 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4369 #: apt.conf.5.xml:142
4371 "Default release to install packages from if more than one version "
4372 "available. Contains release name, codename or release version. Examples: "
4373 "'stable', 'testing', 'unstable', 'lenny', 'squeeze', '4.0', '5.0*'. See also "
4374 "&apt-preferences;."
4377 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4378 #: apt.conf.5.xml:146
4382 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4383 #: apt.conf.5.xml:147
4385 "Ignore Held packages; This global option causes the problem resolver to "
4386 "ignore held packages in its decision making."
4389 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4390 #: apt.conf.5.xml:151
4391 msgid "Clean-Installed"
4394 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4395 #: apt.conf.5.xml:152
4397 "Defaults to on. When turned on the autoclean feature will remove any "
4398 "packages which can no longer be downloaded from the cache. If turned off "
4399 "then packages that are locally installed are also excluded from cleaning - "
4400 "but note that APT provides no direct means to reinstall them."
4403 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4404 #: apt.conf.5.xml:158
4405 msgid "Immediate-Configure"
4408 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4409 #: apt.conf.5.xml:159
4411 "Defaults to on which will cause APT to install essential and important "
4412 "packages as fast as possible in the install/upgrade operation. This is done "
4413 "to limit the effect of a failing &dpkg; call: If this option is disabled APT "
4414 "does treat an important package in the same way as an extra package: Between "
4415 "the unpacking of the important package A and his configuration can then be "
4416 "many other unpack or configuration calls, e.g. for package B which has no "
4417 "relation to A, but causes the dpkg call to fail (e.g. because maintainer "
4418 "script of package B generates an error) which results in a system state in "
4419 "which package A is unpacked but unconfigured - each package depending on A "
4420 "is now no longer guaranteed to work as their dependency on A is not longer "
4421 "satisfied. The immediate configuration marker is also applied to all "
4422 "dependencies which can generate a problem if the dependencies e.g. form a "
4423 "circle as a dependency with the immediate flag is comparable with a "
4424 "Pre-Dependency. So in theory it is possible that APT encounters a situation "
4425 "in which it is unable to perform immediate configuration, error out and "
4426 "refers to this option so the user can deactivate the immediate configuration "
4427 "temporary to be able to perform an install/upgrade again. Note the use of "
4428 "the word \"theory\" here as this problem was only encountered by now in real "
4429 "world a few times in non-stable distribution versions and caused by wrong "
4430 "dependencies of the package in question or by a system in an already broken "
4431 "state, so you should not blindly disable this option as the mentioned "
4432 "scenario above is not the only problem immediate configuration can help to "
4433 "prevent in the first place. Before a big operation like "
4434 "<literal>dist-upgrade</literal> is run with this option disabled it should "
4435 "be tried to explicitly <literal>install</literal> the package APT is unable "
4436 "to configure immediately, but please make sure to report your problem also "
4437 "to your distribution and to the APT team with the buglink below so they can "
4438 "work on improving or correcting the upgrade process."
4441 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4442 #: apt.conf.5.xml:181
4443 msgid "Force-LoopBreak"
4446 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4447 #: apt.conf.5.xml:182
4449 "Never Enable this option unless you -really- know what you are doing. It "
4450 "permits APT to temporarily remove an essential package to break a "
4451 "Conflicts/Conflicts or Conflicts/Pre-Depend loop between two essential "
4452 "packages. SUCH A LOOP SHOULD NEVER EXIST AND IS A GRAVE BUG. This option "
4453 "will work if the essential packages are not tar, gzip, libc, dpkg, bash or "
4454 "anything that those packages depend on."
4457 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4458 #: apt.conf.5.xml:190
4462 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4463 #: apt.conf.5.xml:191
4465 "APT uses a fixed size memory mapped cache file to store the 'available' "
4466 "information. This sets the size of that cache (in bytes)."
4469 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4470 #: apt.conf.5.xml:195
4471 msgid "Build-Essential"
4474 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4475 #: apt.conf.5.xml:196
4476 msgid "Defines which package(s) are considered essential build dependencies."
4479 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4480 #: apt.conf.5.xml:199
4484 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4485 #: apt.conf.5.xml:200
4487 "The Get subsection controls the &apt-get; tool, please see its documentation "
4488 "for more information about the options here."
4491 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4492 #: apt.conf.5.xml:204
4496 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4497 #: apt.conf.5.xml:205
4499 "The Cache subsection controls the &apt-cache; tool, please see its "
4500 "documentation for more information about the options here."
4503 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4504 #: apt.conf.5.xml:209
4508 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4509 #: apt.conf.5.xml:210
4511 "The CDROM subsection controls the &apt-cdrom; tool, please see its "
4512 "documentation for more information about the options here."
4515 #. type: Content of: <refentry><refsect1><title>
4516 #: apt.conf.5.xml:216
4517 msgid "The Acquire Group"
4520 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
4521 #: apt.conf.5.xml:221
4525 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4526 #: apt.conf.5.xml:222
4528 "Try to download deltas called <literal>PDiffs</literal> for Packages or "
4529 "Sources files instead of downloading whole ones. True by default."
4532 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
4533 #: apt.conf.5.xml:227
4537 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4538 #: apt.conf.5.xml:228
4540 "Queuing mode; <literal>Queue-Mode</literal> can be one of "
4541 "<literal>host</literal> or <literal>access</literal> which determines how "
4542 "APT parallelizes outgoing connections. <literal>host</literal> means that "
4543 "one connection per target host will be opened, <literal>access</literal> "
4544 "means that one connection per URI type will be opened."
4547 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
4548 #: apt.conf.5.xml:235
4552 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4553 #: apt.conf.5.xml:236
4555 "Number of retries to perform. If this is non-zero APT will retry failed "
4556 "files the given number of times."
4559 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
4560 #: apt.conf.5.xml:240
4561 msgid "Source-Symlinks"
4564 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4565 #: apt.conf.5.xml:241
4567 "Use symlinks for source archives. If set to true then source archives will "
4568 "be symlinked when possible instead of copying. True is the default."
4571 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
4572 #: apt.conf.5.xml:245 sources.list.5.xml:139
4576 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4577 #: apt.conf.5.xml:246
4579 "HTTP URIs; http::Proxy is the default http proxy to use. It is in the "
4580 "standard form of <literal>http://[[user][:pass]@]host[:port]/</literal>. Per "
4581 "host proxies can also be specified by using the form "
4582 "<literal>http::Proxy::<host></literal> with the special keyword "
4583 "<literal>DIRECT</literal> meaning to use no proxies. If no one of the above "
4584 "settings is specified, <envar>http_proxy</envar> environment variable will "
4588 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4589 #: apt.conf.5.xml:254
4591 "Three settings are provided for cache control with HTTP/1.1 compliant proxy "
4592 "caches. <literal>No-Cache</literal> tells the proxy to not use its cached "
4593 "response under any circumstances, <literal>Max-Age</literal> is sent only "
4594 "for index files and tells the cache to refresh its object if it is older "
4595 "than the given number of seconds. Debian updates its index files daily so "
4596 "the default is 1 day. <literal>No-Store</literal> specifies that the cache "
4597 "should never store this request, it is only set for archive files. This may "
4598 "be useful to prevent polluting a proxy cache with very large .deb "
4599 "files. Note: Squid 2.0.2 does not support any of these options."
4602 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4603 #: apt.conf.5.xml:264 apt.conf.5.xml:321
4605 "The option <literal>timeout</literal> sets the timeout timer used by the "
4606 "method, this applies to all things including connection timeout and data "
4610 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4611 #: apt.conf.5.xml:267
4613 "One setting is provided to control the pipeline depth in cases where the "
4614 "remote server is not RFC conforming or buggy (such as Squid 2.0.2) "
4615 "<literal>Acquire::http::Pipeline-Depth</literal> can be a value from 0 to 5 "
4616 "indicating how many outstanding requests APT should send. A value of zero "
4617 "MUST be specified if the remote host does not properly linger on TCP "
4618 "connections - otherwise data corruption will occur. Hosts which require this "
4619 "are in violation of RFC 2068."
4622 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4623 #: apt.conf.5.xml:275
4625 "The used bandwidth can be limited with "
4626 "<literal>Acquire::http::Dl-Limit</literal> which accepts integer values in "
4627 "kilobyte. The default value is 0 which deactivates the limit and tries uses "
4628 "as much as possible of the bandwidth (Note that this option implicit "
4629 "deactivates the download from multiple servers at the same time.)"
4632 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
4633 #: apt.conf.5.xml:281
4637 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4638 #: apt.conf.5.xml:282
4640 "HTTPS URIs. Cache-control and proxy options are the same as for "
4641 "<literal>http</literal> method. <literal>Pipeline-Depth</literal> option is "
4642 "not supported yet."
4645 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4646 #: apt.conf.5.xml:286
4648 "<literal>CaInfo</literal> suboption specifies place of file that holds info "
4649 "about trusted certificates. <literal><host>::CaInfo</literal> is "
4650 "corresponding per-host option. <literal>Verify-Peer</literal> boolean "
4651 "suboption determines whether verify server's host certificate against "
4652 "trusted certificates or not. <literal><host>::Verify-Peer</literal> "
4653 "is corresponding per-host option. <literal>Verify-Host</literal> boolean "
4654 "suboption determines whether verify server's hostname or not. "
4655 "<literal><host>::Verify-Host</literal> is corresponding per-host "
4656 "option. <literal>SslCert</literal> determines what certificate to use for "
4657 "client authentication. <literal><host>::SslCert</literal> is "
4658 "corresponding per-host option. <literal>SslKey</literal> determines what "
4659 "private key to use for client "
4660 "authentication. <literal><host>::SslKey</literal> is corresponding "
4661 "per-host option. <literal>SslForceVersion</literal> overrides default SSL "
4662 "version to use. Can contain 'TLSv1' or 'SSLv3' string. "
4663 "<literal><host>::SslForceVersion</literal> is corresponding per-host "
4667 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
4668 #: apt.conf.5.xml:304 sources.list.5.xml:150
4672 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4673 #: apt.conf.5.xml:305
4675 "FTP URIs; ftp::Proxy is the default ftp proxy to use. It is in the standard "
4676 "form of <literal>ftp://[[user][:pass]@]host[:port]/</literal>. Per host "
4677 "proxies can also be specified by using the form "
4678 "<literal>ftp::Proxy::<host></literal> with the special keyword "
4679 "<literal>DIRECT</literal> meaning to use no proxies. If no one of the above "
4680 "settings is specified, <envar>ftp_proxy</envar> environment variable will be "
4681 "used. To use a ftp proxy you will have to set the "
4682 "<literal>ftp::ProxyLogin</literal> script in the configuration file. This "
4683 "entry specifies the commands to send to tell the proxy server what to "
4684 "connect to. Please see &configureindex; for an example of how to do "
4685 "this. The substitution variables available are "
4686 "<literal>$(PROXY_USER)</literal> <literal>$(PROXY_PASS)</literal> "
4687 "<literal>$(SITE_USER)</literal> <literal>$(SITE_PASS)</literal> "
4688 "<literal>$(SITE)</literal> and <literal>$(SITE_PORT)</literal> Each is taken "
4689 "from it's respective URI component."
4692 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4693 #: apt.conf.5.xml:324
4695 "Several settings are provided to control passive mode. Generally it is safe "
4696 "to leave passive mode on, it works in nearly every environment. However "
4697 "some situations require that passive mode be disabled and port mode ftp used "
4698 "instead. This can be done globally, for connections that go through a proxy "
4699 "or for a specific host (See the sample config file for examples)."
4702 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4703 #: apt.conf.5.xml:331
4705 "It is possible to proxy FTP over HTTP by setting the "
4706 "<envar>ftp_proxy</envar> environment variable to a http url - see the "
4707 "discussion of the http method above for syntax. You cannot set this in the "
4708 "configuration file and it is not recommended to use FTP over HTTP due to its "
4712 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4713 #: apt.conf.5.xml:336
4715 "The setting <literal>ForceExtended</literal> controls the use of RFC2428 "
4716 "<literal>EPSV</literal> and <literal>EPRT</literal> commands. The default is "
4717 "false, which means these commands are only used if the control connection is "
4718 "IPv6. Setting this to true forces their use even on IPv4 connections. Note "
4719 "that most FTP servers do not support RFC2428."
4722 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
4723 #: apt.conf.5.xml:343 sources.list.5.xml:132
4727 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para><literallayout>
4728 #: apt.conf.5.xml:349
4730 msgid "/cdrom/::Mount \"foo\";"
4733 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4734 #: apt.conf.5.xml:344
4736 "CDROM URIs; the only setting for CDROM URIs is the mount point, "
4737 "<literal>cdrom::Mount</literal> which must be the mount point for the CDROM "
4738 "drive as specified in <filename>/etc/fstab</filename>. It is possible to "
4739 "provide alternate mount and unmount commands if your mount point cannot be "
4740 "listed in the fstab (such as an SMB mount and old mount packages). The "
4741 "syntax is to put <placeholder type=\"literallayout\" id=\"0\"/> within the "
4742 "cdrom block. It is important to have the trailing slash. Unmount commands "
4743 "can be specified using UMount."
4746 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
4747 #: apt.conf.5.xml:354
4751 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4752 #: apt.conf.5.xml:355
4754 "GPGV URIs; the only option for GPGV URIs is the option to pass additional "
4755 "parameters to gpgv. <literal>gpgv::Options</literal> Additional options "
4759 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
4760 #: apt.conf.5.xml:360
4761 msgid "CompressionTypes"
4764 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para><synopsis>
4765 #: apt.conf.5.xml:366
4768 "Acquire::CompressionTypes::<replaceable>FileExtension</replaceable> "
4769 "\"<replaceable>Methodname</replaceable>\";"
4772 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4773 #: apt.conf.5.xml:361
4775 "List of compression types which are understood by the acquire methods. "
4776 "Files like <filename>Packages</filename> can be available in various "
4777 "compression formats. Per default the acquire methods can decompress "
4778 "<command>bzip2</command>, <command>lzma</command> and "
4779 "<command>gzip</command> compressed files, with this setting more formats can "
4780 "be added on the fly or the used method can be changed. The syntax for this "
4781 "is: <placeholder type=\"synopsis\" id=\"0\"/>"
4784 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para><synopsis>
4785 #: apt.conf.5.xml:371
4787 msgid "Acquire::CompressionTypes::Order:: \"gz\";"
4790 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para><synopsis>
4791 #: apt.conf.5.xml:374
4793 msgid "Acquire::CompressionTypes::Order { \"lzma\"; \"gz\"; };"
4796 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4797 #: apt.conf.5.xml:367
4799 "Also the <literal>Order</literal> subgroup can be used to define in which "
4800 "order the acquire system will try to download the compressed files. The "
4801 "acquire system will try the first and proceed with the next compression type "
4802 "in this list on error, so to prefer one over the other type simple add the "
4803 "preferred type at first - not already added default types will be added at "
4804 "run time to the end of the list, so e.g. <placeholder type=\"synopsis\" "
4805 "id=\"0\"/> can be used to prefer <command>gzip</command> compressed files "
4806 "over <command>bzip2</command> and <command>lzma</command>. If "
4807 "<command>lzma</command> should be preferred over <command>gzip</command> and "
4808 "<command>bzip2</command> the configure setting should look like this "
4809 "<placeholder type=\"synopsis\" id=\"1\"/> It is not needed to add "
4810 "<literal>bz2</literal> explicit to the list as it will be added automatic."
4813 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para><literallayout>
4814 #: apt.conf.5.xml:378
4816 msgid "Dir::Bin::bzip2 \"/bin/bzip2\";"
4819 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4820 #: apt.conf.5.xml:376
4822 "Note that at run time the "
4823 "<literal>Dir::Bin::<replaceable>Methodname</replaceable></literal> will be "
4824 "checked: If this setting exists the method will only be used if this file "
4825 "exists, e.g. for the bzip2 method (the inbuilt) setting is <placeholder "
4826 "type=\"literallayout\" id=\"0\"/> Note also that list entries specified on "
4827 "the command line will be added at the end of the list specified in the "
4828 "configuration files, but before the default entries. To prefer a type in "
4829 "this case over the ones specified in in the configuration files you can set "
4830 "the option direct - not in list style. This will not override the defined "
4831 "list, it will only prefix the list with this type."
4834 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
4835 #: apt.conf.5.xml:383
4837 "While it is possible to add an empty compression type to the order list, but "
4838 "APT in its current version doesn't understand it correctly and will display "
4839 "many warnings about not downloaded files - these warnings are most of the "
4840 "time false negatives. Future versions will maybe include a way to really "
4841 "prefer uncompressed files to support the usage of local mirrors."
4844 #. type: Content of: <refentry><refsect1><para>
4845 #: apt.conf.5.xml:217
4847 "The <literal>Acquire</literal> group of options controls the download of "
4848 "packages and the URI handlers. <placeholder type=\"variablelist\" "
4852 #. type: Content of: <refentry><refsect1><title>
4853 #: apt.conf.5.xml:392
4857 #. type: Content of: <refentry><refsect1><para>
4858 #: apt.conf.5.xml:394
4860 "The <literal>Dir::State</literal> section has directories that pertain to "
4861 "local state information. <literal>lists</literal> is the directory to place "
4862 "downloaded package lists in and <literal>status</literal> is the name of the "
4863 "dpkg status file. <literal>preferences</literal> is the name of the APT "
4864 "preferences file. <literal>Dir::State</literal> contains the default "
4865 "directory to prefix on all sub items if they do not start with "
4866 "<filename>/</filename> or <filename>./</filename>."
4869 #. type: Content of: <refentry><refsect1><para>
4870 #: apt.conf.5.xml:401
4872 "<literal>Dir::Cache</literal> contains locations pertaining to local cache "
4873 "information, such as the two package caches <literal>srcpkgcache</literal> "
4874 "and <literal>pkgcache</literal> as well as the location to place downloaded "
4875 "archives, <literal>Dir::Cache::archives</literal>. Generation of caches can "
4876 "be turned off by setting their names to be blank. This will slow down "
4877 "startup but save disk space. It is probably preferred to turn off the "
4878 "pkgcache rather than the srcpkgcache. Like <literal>Dir::State</literal> the "
4879 "default directory is contained in <literal>Dir::Cache</literal>"
4882 #. type: Content of: <refentry><refsect1><para>
4883 #: apt.conf.5.xml:410
4885 "<literal>Dir::Etc</literal> contains the location of configuration files, "
4886 "<literal>sourcelist</literal> gives the location of the sourcelist and "
4887 "<literal>main</literal> is the default configuration file (setting has no "
4888 "effect, unless it is done from the config file specified by "
4889 "<envar>APT_CONFIG</envar>)."
4892 #. type: Content of: <refentry><refsect1><para>
4893 #: apt.conf.5.xml:416
4895 "The <literal>Dir::Parts</literal> setting reads in all the config fragments "
4896 "in lexical order from the directory specified. After this is done then the "
4897 "main config file is loaded."
4900 #. type: Content of: <refentry><refsect1><para>
4901 #: apt.conf.5.xml:420
4903 "Binary programs are pointed to by "
4904 "<literal>Dir::Bin</literal>. <literal>Dir::Bin::Methods</literal> specifies "
4905 "the location of the method handlers and <literal>gzip</literal>, "
4906 "<literal>bzip2</literal>, <literal>lzma</literal>, <literal>dpkg</literal>, "
4907 "<literal>apt-get</literal> <literal>dpkg-source</literal> "
4908 "<literal>dpkg-buildpackage</literal> and <literal>apt-cache</literal> "
4909 "specify the location of the respective programs."
4912 #. type: Content of: <refentry><refsect1><para>
4913 #: apt.conf.5.xml:428
4915 "The configuration item <literal>RootDir</literal> has a special meaning. If "
4916 "set, all paths in <literal>Dir::</literal> will be relative to "
4917 "<literal>RootDir</literal>, <emphasis>even paths that are specified "
4918 "absolutely</emphasis>. So, for instance, if <literal>RootDir</literal> is "
4919 "set to <filename>/tmp/staging</filename> and "
4920 "<literal>Dir::State::status</literal> is set to "
4921 "<filename>/var/lib/dpkg/status</filename>, then the status file will be "
4922 "looked up in <filename>/tmp/staging/var/lib/dpkg/status</filename>."
4925 #. type: Content of: <refentry><refsect1><title>
4926 #: apt.conf.5.xml:441
4927 msgid "APT in DSelect"
4930 #. type: Content of: <refentry><refsect1><para>
4931 #: apt.conf.5.xml:443
4933 "When APT is used as a &dselect; method several configuration directives "
4934 "control the default behaviour. These are in the <literal>DSelect</literal> "
4938 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4939 #: apt.conf.5.xml:447
4943 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4944 #: apt.conf.5.xml:448
4946 "Cache Clean mode; this value may be one of always, prompt, auto, pre-auto "
4947 "and never. always and prompt will remove all packages from the cache after "
4948 "upgrading, prompt (the default) does so conditionally. auto removes only "
4949 "those packages which are no longer downloadable (replaced with a new version "
4950 "for instance). pre-auto performs this action before downloading new "
4954 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4955 #: apt.conf.5.xml:457
4957 "The contents of this variable is passed to &apt-get; as command line options "
4958 "when it is run for the install phase."
4961 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4962 #: apt.conf.5.xml:461
4963 msgid "Updateoptions"
4966 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4967 #: apt.conf.5.xml:462
4969 "The contents of this variable is passed to &apt-get; as command line options "
4970 "when it is run for the update phase."
4973 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
4974 #: apt.conf.5.xml:466
4975 msgid "PromptAfterUpdate"
4978 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4979 #: apt.conf.5.xml:467
4981 "If true the [U]pdate operation in &dselect; will always prompt to continue. "
4982 "The default is to prompt only on error."
4985 #. type: Content of: <refentry><refsect1><title>
4986 #: apt.conf.5.xml:473
4987 msgid "How APT calls dpkg"
4990 #. type: Content of: <refentry><refsect1><para>
4991 #: apt.conf.5.xml:474
4993 "Several configuration directives control how APT invokes &dpkg;. These are "
4994 "in the <literal>DPkg</literal> section."
4997 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4998 #: apt.conf.5.xml:479
5000 "This is a list of options to pass to dpkg. The options must be specified "
5001 "using the list notation and each list item is passed as a single argument to "
5005 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5006 #: apt.conf.5.xml:484
5010 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5011 #: apt.conf.5.xml:484
5015 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5016 #: apt.conf.5.xml:485
5018 "This is a list of shell commands to run before/after invoking &dpkg;. Like "
5019 "<literal>options</literal> this must be specified in list notation. The "
5020 "commands are invoked in order using <filename>/bin/sh</filename>, should any "
5021 "fail APT will abort."
5024 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5025 #: apt.conf.5.xml:491
5026 msgid "Pre-Install-Pkgs"
5029 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5030 #: apt.conf.5.xml:492
5032 "This is a list of shell commands to run before invoking dpkg. Like "
5033 "<literal>options</literal> this must be specified in list notation. The "
5034 "commands are invoked in order using <filename>/bin/sh</filename>, should any "
5035 "fail APT will abort. APT will pass to the commands on standard input the "
5036 "filenames of all .deb files it is going to install, one per line."
5039 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5040 #: apt.conf.5.xml:498
5042 "Version 2 of this protocol dumps more information, including the protocol "
5043 "version, the APT configuration space and the packages, files and versions "
5044 "being changed. Version 2 is enabled by setting "
5045 "<literal>DPkg::Tools::options::cmd::Version</literal> to "
5046 "2. <literal>cmd</literal> is a command given to "
5047 "<literal>Pre-Install-Pkgs</literal>."
5050 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5051 #: apt.conf.5.xml:505
5052 msgid "Run-Directory"
5055 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5056 #: apt.conf.5.xml:506
5058 "APT chdirs to this directory before invoking dpkg, the default is "
5059 "<filename>/</filename>."
5062 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5063 #: apt.conf.5.xml:510
5064 msgid "Build-options"
5067 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5068 #: apt.conf.5.xml:511
5070 "These options are passed to &dpkg-buildpackage; when compiling packages, the "
5071 "default is to disable signing and produce all binaries."
5074 #. type: Content of: <refentry><refsect1><refsect2><title>
5075 #: apt.conf.5.xml:516
5076 msgid "dpkg trigger usage (and related options)"
5079 #. type: Content of: <refentry><refsect1><refsect2><para>
5080 #: apt.conf.5.xml:517
5082 "APT can call dpkg in a way so it can make aggressive use of triggers over "
5083 "multiply calls of dpkg. Without further options dpkg will use triggers only "
5084 "in between his own run. Activating these options can therefore decrease the "
5085 "time needed to perform the install / upgrade. Note that it is intended to "
5086 "activate these options per default in the future, but as it changes the way "
5087 "APT calling dpkg drastically it needs a lot more testing. <emphasis>These "
5088 "options are therefore currently experimental and should not be used in "
5089 "productive environments.</emphasis> Also it breaks the progress reporting so "
5090 "all frontends will currently stay around half (or more) of the time in the "
5091 "100% state while it actually configures all packages."
5094 #. type: Content of: <refentry><refsect1><refsect2><para><literallayout>
5095 #: apt.conf.5.xml:532
5098 "DPkg::NoTriggers \"true\";\n"
5099 "PackageManager::Configure \"smart\";\n"
5100 "DPkg::ConfigurePending \"true\";\n"
5101 "DPkg::TriggersPending \"true\";"
5104 #. type: Content of: <refentry><refsect1><refsect2><para>
5105 #: apt.conf.5.xml:526
5107 "Note that it is not guaranteed that APT will support these options or that "
5108 "these options will not cause (big) trouble in the future. If you have "
5109 "understand the current risks and problems with these options, but are brave "
5110 "enough to help testing them create a new configuration file and test a "
5111 "combination of options. Please report any bugs, problems and improvements "
5112 "you encounter and make sure to note which options you have used in your "
5113 "reports. Asking dpkg for help could also be useful for debugging proposes, "
5114 "see e.g. <command>dpkg --audit</command>. A defensive option combination "
5115 "would be <placeholder type=\"literallayout\" id=\"0\"/>"
5118 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
5119 #: apt.conf.5.xml:538
5120 msgid "DPkg::NoTriggers"
5123 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5124 #: apt.conf.5.xml:539
5126 "Add the no triggers flag to all dpkg calls (expect the ConfigurePending "
5127 "call). See &dpkg; if you are interested in what this actually means. In "
5128 "short: dpkg will not run the triggers then this flag is present unless it is "
5129 "explicit called to do so in an extra call. Note that this option exists "
5130 "(undocumented) also in older apt versions with a slightly different meaning: "
5131 "Previously these option only append --no-triggers to the configure calls to "
5132 "dpkg - now apt will add these flag also to the unpack and remove calls."
5135 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
5136 #: apt.conf.5.xml:546
5137 msgid "PackageManager::Configure"
5140 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5141 #: apt.conf.5.xml:547
5143 "Valid values are \"<literal>all</literal>\", \"<literal>smart</literal>\" "
5144 "and \"<literal>no</literal>\". \"<literal>all</literal>\" is the default "
5145 "value and causes APT to configure all packages explicit. The "
5146 "\"<literal>smart</literal>\" way is it to configure only packages which need "
5147 "to be configured before another package can be unpacked (Pre-Depends) and "
5148 "let the rest configure by dpkg with a call generated by the next "
5149 "option. \"<literal>no</literal>\" on the other hand will not configure "
5150 "anything and totally relay on dpkg for configuration (which will at the "
5151 "moment fail if a Pre-Depends is encountered). Setting this option to "
5152 "another than the all value will implicit activate also the next option per "
5153 "default as otherwise the system could end in an unconfigured status which "
5154 "could be unbootable!"
5157 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
5158 #: apt.conf.5.xml:557
5159 msgid "DPkg::ConfigurePending"
5162 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5163 #: apt.conf.5.xml:558
5165 "If this option is set apt will call <command>dpkg --configure "
5166 "--pending</command> to let dpkg handle all required configurations and "
5167 "triggers. This option is activated automatic per default if the previous "
5168 "option is not set to <literal>all</literal>, but deactivating could be "
5169 "useful if you want to run APT multiple times in a row - e.g. in an "
5170 "installer. In this sceneries you could deactivate this option in all but the "
5174 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
5175 #: apt.conf.5.xml:564
5176 msgid "DPkg::TriggersPending"
5179 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5180 #: apt.conf.5.xml:565
5182 "Useful for <literal>smart</literal> configuration as a package which has "
5183 "pending triggers is not considered as <literal>installed</literal> and dpkg "
5184 "treats them as <literal>unpacked</literal> currently which is a dealbreaker "
5185 "for Pre-Dependencies (see debbugs #526774). Note that this will process all "
5186 "triggers, not only the triggers needed to configure this package."
5189 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
5190 #: apt.conf.5.xml:570
5191 msgid "PackageManager::UnpackAll"
5194 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5195 #: apt.conf.5.xml:571
5197 "As the configuration can be deferred to be done at the end by dpkg it can be "
5198 "tried to order the unpack series only by critical needs, e.g. by "
5199 "Pre-Depends. Default is true and therefore the \"old\" method of ordering in "
5200 "various steps by everything. While both method were present in earlier APT "
5201 "versions the <literal>OrderCritical</literal> method was unused, so this "
5202 "method is very experimental and needs further improvements before becoming "
5206 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><term>
5207 #: apt.conf.5.xml:578
5208 msgid "OrderList::Score::Immediate"
5211 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para><literallayout>
5212 #: apt.conf.5.xml:586
5215 "OrderList::Score {\n"
5217 "\tEssential 200;\n"
5219 "\tPreDepends 50;\n"
5223 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
5224 #: apt.conf.5.xml:579
5226 "Essential packages (and there dependencies) should be configured immediately "
5227 "after unpacking. It will be a good idea to do this quite early in the "
5228 "upgrade process as these these configure calls require currently also "
5229 "<literal>DPkg::TriggersPending</literal> which will run quite a few triggers "
5230 "(which maybe not needed). Essentials get per default a high score but the "
5231 "immediate flag is relatively low (a package which has a Pre-Depends is "
5232 "higher rated). These option and the others in the same group can be used to "
5233 "change the scoring. The following example shows the settings with there "
5234 "default values. <placeholder type=\"literallayout\" id=\"0\"/>"
5237 #. type: Content of: <refentry><refsect1><title>
5238 #: apt.conf.5.xml:599
5239 msgid "Periodic and Archives options"
5242 #. type: Content of: <refentry><refsect1><para>
5243 #: apt.conf.5.xml:600
5245 "<literal>APT::Periodic</literal> and <literal>APT::Archives</literal> groups "
5246 "of options configure behavior of apt periodic updates, which is done by "
5247 "<literal>/etc/cron.daily/apt</literal> script. See header of this script for "
5248 "the brief documentation of these options."
5251 #. type: Content of: <refentry><refsect1><title>
5252 #: apt.conf.5.xml:608
5253 msgid "Debug options"
5256 #. type: Content of: <refentry><refsect1><para>
5257 #: apt.conf.5.xml:610
5259 "Enabling options in the <literal>Debug::</literal> section will cause "
5260 "debugging information to be sent to the standard error stream of the program "
5261 "utilizing the <literal>apt</literal> libraries, or enable special program "
5262 "modes that are primarily useful for debugging the behavior of "
5263 "<literal>apt</literal>. Most of these options are not interesting to a "
5264 "normal user, but a few may be:"
5267 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5268 #: apt.conf.5.xml:621
5270 "<literal>Debug::pkgProblemResolver</literal> enables output about the "
5271 "decisions made by <literal>dist-upgrade, upgrade, install, remove, "
5275 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5276 #: apt.conf.5.xml:629
5278 "<literal>Debug::NoLocking</literal> disables all file locking. This can be "
5279 "used to run some operations (for instance, <literal>apt-get -s "
5280 "install</literal>) as a non-root user."
5283 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5284 #: apt.conf.5.xml:638
5286 "<literal>Debug::pkgDPkgPM</literal> prints out the actual command line each "
5287 "time that <literal>apt</literal> invokes &dpkg;."
5291 #. motivating example, except I haven't a clue why you'd want
5293 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5294 #: apt.conf.5.xml:646
5296 "<literal>Debug::IdentCdrom</literal> disables the inclusion of statfs data "
5300 #. type: Content of: <refentry><refsect1><para>
5301 #: apt.conf.5.xml:656
5302 msgid "A full list of debugging options to apt follows."
5305 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5306 #: apt.conf.5.xml:661
5307 msgid "<literal>Debug::Acquire::cdrom</literal>"
5310 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5311 #: apt.conf.5.xml:665
5312 msgid "Print information related to accessing <literal>cdrom://</literal> sources."
5315 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5316 #: apt.conf.5.xml:672
5317 msgid "<literal>Debug::Acquire::ftp</literal>"
5320 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5321 #: apt.conf.5.xml:676
5322 msgid "Print information related to downloading packages using FTP."
5325 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5326 #: apt.conf.5.xml:683
5327 msgid "<literal>Debug::Acquire::http</literal>"
5330 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5331 #: apt.conf.5.xml:687
5332 msgid "Print information related to downloading packages using HTTP."
5335 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5336 #: apt.conf.5.xml:694
5337 msgid "<literal>Debug::Acquire::https</literal>"
5340 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5341 #: apt.conf.5.xml:698
5342 msgid "Print information related to downloading packages using HTTPS."
5345 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5346 #: apt.conf.5.xml:705
5347 msgid "<literal>Debug::Acquire::gpgv</literal>"
5350 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5351 #: apt.conf.5.xml:709
5353 "Print information related to verifying cryptographic signatures using "
5354 "<literal>gpg</literal>."
5357 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5358 #: apt.conf.5.xml:716
5359 msgid "<literal>Debug::aptcdrom</literal>"
5362 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5363 #: apt.conf.5.xml:720
5365 "Output information about the process of accessing collections of packages "
5366 "stored on CD-ROMs."
5369 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5370 #: apt.conf.5.xml:727
5371 msgid "<literal>Debug::BuildDeps</literal>"
5374 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5375 #: apt.conf.5.xml:730
5376 msgid "Describes the process of resolving build-dependencies in &apt-get;."
5379 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5380 #: apt.conf.5.xml:737
5381 msgid "<literal>Debug::Hashes</literal>"
5384 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5385 #: apt.conf.5.xml:740
5387 "Output each cryptographic hash that is generated by the "
5388 "<literal>apt</literal> libraries."
5391 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5392 #: apt.conf.5.xml:747
5393 msgid "<literal>Debug::IdentCDROM</literal>"
5396 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5397 #: apt.conf.5.xml:750
5399 "Do not include information from <literal>statfs</literal>, namely the number "
5400 "of used and free blocks on the CD-ROM filesystem, when generating an ID for "
5404 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5405 #: apt.conf.5.xml:758
5406 msgid "<literal>Debug::NoLocking</literal>"
5409 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5410 #: apt.conf.5.xml:761
5412 "Disable all file locking. For instance, this will allow two instances of "
5413 "<quote><literal>apt-get update</literal></quote> to run at the same time."
5416 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5417 #: apt.conf.5.xml:769
5418 msgid "<literal>Debug::pkgAcquire</literal>"
5421 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5422 #: apt.conf.5.xml:773
5423 msgid "Log when items are added to or removed from the global download queue."
5426 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5427 #: apt.conf.5.xml:780
5428 msgid "<literal>Debug::pkgAcquire::Auth</literal>"
5431 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5432 #: apt.conf.5.xml:783
5434 "Output status messages and errors related to verifying checksums and "
5435 "cryptographic signatures of downloaded files."
5438 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5439 #: apt.conf.5.xml:790
5440 msgid "<literal>Debug::pkgAcquire::Diffs</literal>"
5443 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5444 #: apt.conf.5.xml:793
5446 "Output information about downloading and applying package index list diffs, "
5447 "and errors relating to package index list diffs."
5450 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5451 #: apt.conf.5.xml:801
5452 msgid "<literal>Debug::pkgAcquire::RRed</literal>"
5455 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5456 #: apt.conf.5.xml:805
5458 "Output information related to patching apt package lists when downloading "
5459 "index diffs instead of full indices."
5462 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5463 #: apt.conf.5.xml:812
5464 msgid "<literal>Debug::pkgAcquire::Worker</literal>"
5467 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5468 #: apt.conf.5.xml:816
5469 msgid "Log all interactions with the sub-processes that actually perform downloads."
5472 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5473 #: apt.conf.5.xml:823
5474 msgid "<literal>Debug::pkgAutoRemove</literal>"
5477 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5478 #: apt.conf.5.xml:827
5480 "Log events related to the automatically-installed status of packages and to "
5481 "the removal of unused packages."
5484 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5485 #: apt.conf.5.xml:834
5486 msgid "<literal>Debug::pkgDepCache::AutoInstall</literal>"
5489 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5490 #: apt.conf.5.xml:837
5492 "Generate debug messages describing which packages are being automatically "
5493 "installed to resolve dependencies. This corresponds to the initial "
5494 "auto-install pass performed in, e.g., <literal>apt-get install</literal>, "
5495 "and not to the full <literal>apt</literal> dependency resolver; see "
5496 "<literal>Debug::pkgProblemResolver</literal> for that."
5499 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5500 #: apt.conf.5.xml:848
5501 msgid "<literal>Debug::pkgDepCache::Marker</literal>"
5504 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5505 #: apt.conf.5.xml:851
5507 "Generate debug messages describing which package is marked as "
5508 "keep/install/remove while the ProblemResolver does his work. Each addition "
5509 "or deletion may trigger additional actions; they are shown indented two "
5510 "additional space under the original entry. The format for each line is "
5511 "<literal>MarkKeep</literal>, <literal>MarkDelete</literal> or "
5512 "<literal>MarkInstall</literal> followed by <literal>package-name <a.b.c "
5513 "-> d.e.f | x.y.z> (section)</literal> where <literal>a.b.c</literal> "
5514 "is the current version of the package, <literal>d.e.f</literal> is the "
5515 "version considered for installation and <literal>x.y.z</literal> is a newer "
5516 "version, but not considered for installation (because of a low pin "
5517 "score). The later two can be omitted if there is none or if it is the same "
5518 "version as the installed. <literal>section</literal> is the name of the "
5519 "section the package appears in."
5522 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5523 #: apt.conf.5.xml:870
5524 msgid "<literal>Debug::pkgInitConfig</literal>"
5527 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5528 #: apt.conf.5.xml:873
5529 msgid "Dump the default configuration to standard error on startup."
5532 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5533 #: apt.conf.5.xml:880
5534 msgid "<literal>Debug::pkgDPkgPM</literal>"
5537 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5538 #: apt.conf.5.xml:883
5540 "When invoking &dpkg;, output the precise command line with which it is being "
5541 "invoked, with arguments separated by a single space character."
5544 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5545 #: apt.conf.5.xml:891
5546 msgid "<literal>Debug::pkgDPkgProgressReporting</literal>"
5549 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5550 #: apt.conf.5.xml:894
5552 "Output all the data received from &dpkg; on the status file descriptor and "
5553 "any errors encountered while parsing it."
5556 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5557 #: apt.conf.5.xml:901
5558 msgid "<literal>Debug::pkgOrderList</literal>"
5561 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5562 #: apt.conf.5.xml:905
5564 "Generate a trace of the algorithm that decides the order in which "
5565 "<literal>apt</literal> should pass packages to &dpkg;."
5568 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5569 #: apt.conf.5.xml:913
5570 msgid "<literal>Debug::pkgPackageManager</literal>"
5573 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5574 #: apt.conf.5.xml:917
5575 msgid "Output status messages tracing the steps performed when invoking &dpkg;."
5578 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5579 #: apt.conf.5.xml:924
5580 msgid "<literal>Debug::pkgPolicy</literal>"
5583 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5584 #: apt.conf.5.xml:928
5585 msgid "Output the priority of each package list on startup."
5588 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5589 #: apt.conf.5.xml:934
5590 msgid "<literal>Debug::pkgProblemResolver</literal>"
5593 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5594 #: apt.conf.5.xml:938
5596 "Trace the execution of the dependency resolver (this applies only to what "
5597 "happens when a complex dependency problem is encountered)."
5600 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5601 #: apt.conf.5.xml:946
5602 msgid "<literal>Debug::pkgProblemResolver::ShowScores</literal>"
5605 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5606 #: apt.conf.5.xml:949
5608 "Display a list of all installed packages with their calculated score used by "
5609 "the pkgProblemResolver. The description of the package is the same as "
5610 "described in <literal>Debug::pkgDepCache::Marker</literal>"
5613 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
5614 #: apt.conf.5.xml:957
5615 msgid "<literal>Debug::sourceList</literal>"
5618 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
5619 #: apt.conf.5.xml:961
5621 "Print information about the vendors read from "
5622 "<filename>/etc/apt/vendors.list</filename>."
5625 #. type: Content of: <refentry><refsect1><para>
5626 #: apt.conf.5.xml:983
5628 "&configureindex; is a configuration file showing example values for all "
5632 #. type: Content of: <refentry><refsect1><variablelist>
5633 #: apt.conf.5.xml:990
5634 msgid "&file-aptconf;"
5637 #. ? reading apt.conf
5638 #. type: Content of: <refentry><refsect1><para>
5639 #: apt.conf.5.xml:995
5640 msgid "&apt-cache;, &apt-config;, &apt-preferences;."
5643 #. The last update date
5644 #. type: Content of: <refentry><refentryinfo>
5645 #: apt_preferences.5.xml:13
5646 msgid "&apt-author.team; &apt-email; &apt-product; <date>04 May 2009</date>"
5649 #. type: Content of: <refentry><refnamediv><refname>
5650 #: apt_preferences.5.xml:21 apt_preferences.5.xml:28
5651 msgid "apt_preferences"
5654 #. type: Content of: <refentry><refnamediv><refpurpose>
5655 #: apt_preferences.5.xml:29
5656 msgid "Preference control file for APT"
5659 #. type: Content of: <refentry><refsect1><para>
5660 #: apt_preferences.5.xml:34
5662 "The APT preferences file <filename>/etc/apt/preferences</filename> and the "
5663 "fragment files in the <filename>/etc/apt/preferences.d/</filename> folder "
5664 "can be used to control which versions of packages will be selected for "
5668 #. type: Content of: <refentry><refsect1><para>
5669 #: apt_preferences.5.xml:39
5671 "Several versions of a package may be available for installation when the "
5672 "&sources-list; file contains references to more than one distribution (for "
5673 "example, <literal>stable</literal> and <literal>testing</literal>). APT "
5674 "assigns a priority to each version that is available. Subject to dependency "
5675 "constraints, <command>apt-get</command> selects the version with the highest "
5676 "priority for installation. The APT preferences file overrides the "
5677 "priorities that APT assigns to package versions by default, thus giving the "
5678 "user control over which one is selected for installation."
5681 #. type: Content of: <refentry><refsect1><para>
5682 #: apt_preferences.5.xml:49
5684 "Several instances of the same version of a package may be available when the "
5685 "&sources-list; file contains references to more than one source. In this "
5686 "case <command>apt-get</command> downloads the instance listed earliest in "
5687 "the &sources-list; file. The APT preferences file does not affect the "
5688 "choice of instance, only the choice of version."
5691 #. type: Content of: <refentry><refsect1><refsect2><title>
5692 #: apt_preferences.5.xml:56
5693 msgid "APT's Default Priority Assignments"
5696 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5697 #: apt_preferences.5.xml:71
5700 "<command>apt-get install -t testing "
5701 "<replaceable>some-package</replaceable></command>\n"
5704 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5705 #: apt_preferences.5.xml:74
5707 msgid "APT::Default-Release \"stable\";\n"
5710 #. type: Content of: <refentry><refsect1><refsect2><para>
5711 #: apt_preferences.5.xml:58
5713 "If there is no preferences file or if there is no entry in the file that "
5714 "applies to a particular version then the priority assigned to that version "
5715 "is the priority of the distribution to which that version belongs. It is "
5716 "possible to single out a distribution, \"the target release\", which "
5717 "receives a higher priority than other distributions do by default. The "
5718 "target release can be set on the <command>apt-get</command> command line or "
5719 "in the APT configuration file <filename>/etc/apt/apt.conf</filename>. Note "
5720 "that this has precedence over any general priority you set in the "
5721 "<filename>/etc/apt/preferences</filename> file described later, but not over "
5722 "specifically pinned packages. For example, <placeholder "
5723 "type=\"programlisting\" id=\"0\"/> <placeholder type=\"programlisting\" "
5727 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5728 #: apt_preferences.5.xml:83
5729 msgid "priority 100"
5732 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5733 #: apt_preferences.5.xml:84
5734 msgid "to the version that is already installed (if any)."
5737 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5738 #: apt_preferences.5.xml:88
5739 msgid "priority 500"
5742 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5743 #: apt_preferences.5.xml:89
5745 "to the versions that are not installed and do not belong to the target "
5749 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5750 #: apt_preferences.5.xml:93
5751 msgid "priority 990"
5754 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5755 #: apt_preferences.5.xml:94
5756 msgid "to the versions that are not installed and belong to the target release."
5759 #. type: Content of: <refentry><refsect1><refsect2><para>
5760 #: apt_preferences.5.xml:78
5762 "If the target release has been specified then APT uses the following "
5763 "algorithm to set the priorities of the versions of a package. Assign: "
5764 "<placeholder type=\"variablelist\" id=\"0\"/>"
5767 #. type: Content of: <refentry><refsect1><refsect2><para>
5768 #: apt_preferences.5.xml:99
5770 "If the target release has not been specified then APT simply assigns "
5771 "priority 100 to all installed package versions and priority 500 to all "
5772 "uninstalled package versions."
5775 #. type: Content of: <refentry><refsect1><refsect2><para>
5776 #: apt_preferences.5.xml:103
5778 "APT then applies the following rules, listed in order of precedence, to "
5779 "determine which version of a package to install."
5782 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5783 #: apt_preferences.5.xml:106
5785 "Never downgrade unless the priority of an available version exceeds 1000. "
5786 "(\"Downgrading\" is installing a less recent version of a package in place "
5787 "of a more recent version. Note that none of APT's default priorities "
5788 "exceeds 1000; such high priorities can only be set in the preferences file. "
5789 "Note also that downgrading a package can be risky.)"
5792 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5793 #: apt_preferences.5.xml:112
5794 msgid "Install the highest priority version."
5797 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5798 #: apt_preferences.5.xml:113
5800 "If two or more versions have the same priority, install the most recent one "
5801 "(that is, the one with the higher version number)."
5804 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5805 #: apt_preferences.5.xml:116
5807 "If two or more versions have the same priority and version number but either "
5808 "the packages differ in some of their metadata or the "
5809 "<literal>--reinstall</literal> option is given, install the uninstalled one."
5812 #. type: Content of: <refentry><refsect1><refsect2><para>
5813 #: apt_preferences.5.xml:122
5815 "In a typical situation, the installed version of a package (priority 100) "
5816 "is not as recent as one of the versions available from the sources listed in "
5817 "the &sources-list; file (priority 500 or 990). Then the package will be "
5818 "upgraded when <command>apt-get install "
5819 "<replaceable>some-package</replaceable></command> or <command>apt-get "
5820 "upgrade</command> is executed."
5823 #. type: Content of: <refentry><refsect1><refsect2><para>
5824 #: apt_preferences.5.xml:129
5826 "More rarely, the installed version of a package is <emphasis>more</emphasis> "
5827 "recent than any of the other available versions. The package will not be "
5828 "downgraded when <command>apt-get install "
5829 "<replaceable>some-package</replaceable></command> or <command>apt-get "
5830 "upgrade</command> is executed."
5833 #. type: Content of: <refentry><refsect1><refsect2><para>
5834 #: apt_preferences.5.xml:134
5836 "Sometimes the installed version of a package is more recent than the version "
5837 "belonging to the target release, but not as recent as a version belonging to "
5838 "some other distribution. Such a package will indeed be upgraded when "
5839 "<command>apt-get install <replaceable>some-package</replaceable></command> "
5840 "or <command>apt-get upgrade</command> is executed, because at least "
5841 "<emphasis>one</emphasis> of the available versions has a higher priority "
5842 "than the installed version."
5845 #. type: Content of: <refentry><refsect1><refsect2><title>
5846 #: apt_preferences.5.xml:143
5847 msgid "The Effect of APT Preferences"
5850 #. type: Content of: <refentry><refsect1><refsect2><para>
5851 #: apt_preferences.5.xml:145
5853 "The APT preferences file allows the system administrator to control the "
5854 "assignment of priorities. The file consists of one or more multi-line "
5855 "records separated by blank lines. Records can have one of two forms, a "
5856 "specific form and a general form."
5859 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5860 #: apt_preferences.5.xml:151
5862 "The specific form assigns a priority (a \"Pin-Priority\") to one or more "
5863 "specified packages and specified version or version range. For example, the "
5864 "following record assigns a high priority to all versions of the "
5865 "<filename>perl</filename> package whose version number begins with "
5866 "\"<literal>5.8</literal>\". Multiple packages can be separated by spaces."
5869 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
5870 #: apt_preferences.5.xml:158
5874 "Pin: version 5.8*\n"
5875 "Pin-Priority: 1001\n"
5878 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5879 #: apt_preferences.5.xml:164
5881 "The general form assigns a priority to all of the package versions in a "
5882 "given distribution (that is, to all the versions of packages that are listed "
5883 "in a certain <filename>Release</filename> file) or to all of the package "
5884 "versions coming from a particular Internet site, as identified by the site's "
5885 "fully qualified domain name."
5888 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5889 #: apt_preferences.5.xml:170
5891 "This general-form entry in the APT preferences file applies only to groups "
5892 "of packages. For example, the following record assigns a high priority to "
5893 "all package versions available from the local site."
5896 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
5897 #: apt_preferences.5.xml:175
5901 "Pin: origin \"\"\n"
5902 "Pin-Priority: 999\n"
5905 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5906 #: apt_preferences.5.xml:180
5908 "A note of caution: the keyword used here is \"<literal>origin</literal>\". "
5909 "This should not be confused with the Origin of a distribution as specified "
5910 "in a <filename>Release</filename> file. What follows the \"Origin:\" tag in "
5911 "a <filename>Release</filename> file is not an Internet address but an author "
5912 "or vendor name, such as \"Debian\" or \"Ximian\"."
5915 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5916 #: apt_preferences.5.xml:186
5918 "The following record assigns a low priority to all package versions "
5919 "belonging to any distribution whose Archive name is "
5920 "\"<literal>unstable</literal>\"."
5923 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
5924 #: apt_preferences.5.xml:190
5928 "Pin: release a=unstable\n"
5929 "Pin-Priority: 50\n"
5932 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5933 #: apt_preferences.5.xml:195
5935 "The following record assigns a high priority to all package versions "
5936 "belonging to any distribution whose Codename is "
5937 "\"<literal>squeeze</literal>\"."
5940 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
5941 #: apt_preferences.5.xml:199
5945 "Pin: release n=squeeze\n"
5946 "Pin-Priority: 900\n"
5949 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5950 #: apt_preferences.5.xml:204
5952 "The following record assigns a high priority to all package versions "
5953 "belonging to any release whose Archive name is \"<literal>stable</literal>\" "
5954 "and whose release Version number is \"<literal>3.0</literal>\"."
5957 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
5958 #: apt_preferences.5.xml:209
5962 "Pin: release a=stable, v=3.0\n"
5963 "Pin-Priority: 500\n"
5966 #. type: Content of: <refentry><refsect1><refsect2><title>
5967 #: apt_preferences.5.xml:220
5968 msgid "How APT Interprets Priorities"
5971 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5972 #: apt_preferences.5.xml:228
5976 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5977 #: apt_preferences.5.xml:229
5979 "causes a version to be installed even if this constitutes a downgrade of the "
5983 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5984 #: apt_preferences.5.xml:233
5985 msgid "990 < P <=1000"
5988 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5989 #: apt_preferences.5.xml:234
5991 "causes a version to be installed even if it does not come from the target "
5992 "release, unless the installed version is more recent"
5995 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5996 #: apt_preferences.5.xml:239
5997 msgid "500 < P <=990"
6000 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
6001 #: apt_preferences.5.xml:240
6003 "causes a version to be installed unless there is a version available "
6004 "belonging to the target release or the installed version is more recent"
6007 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
6008 #: apt_preferences.5.xml:245
6009 msgid "100 < P <=500"
6012 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
6013 #: apt_preferences.5.xml:246
6015 "causes a version to be installed unless there is a version available "
6016 "belonging to some other distribution or the installed version is more recent"
6019 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
6020 #: apt_preferences.5.xml:251
6021 msgid "0 < P <=100"
6024 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
6025 #: apt_preferences.5.xml:252
6027 "causes a version to be installed only if there is no installed version of "
6031 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
6032 #: apt_preferences.5.xml:256
6036 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
6037 #: apt_preferences.5.xml:257
6038 msgid "prevents the version from being installed"
6041 #. type: Content of: <refentry><refsect1><refsect2><para>
6042 #: apt_preferences.5.xml:223
6044 "Priorities (P) assigned in the APT preferences file must be positive or "
6045 "negative integers. They are interpreted as follows (roughly speaking): "
6046 "<placeholder type=\"variablelist\" id=\"0\"/>"
6049 #. type: Content of: <refentry><refsect1><refsect2><para>
6050 #: apt_preferences.5.xml:262
6052 "If any specific-form records match an available package version then the "
6053 "first such record determines the priority of the package version. Failing "
6054 "that, if any general-form records match an available package version then "
6055 "the first such record determines the priority of the package version."
6058 #. type: Content of: <refentry><refsect1><refsect2><para>
6059 #: apt_preferences.5.xml:268
6061 "For example, suppose the APT preferences file contains the three records "
6062 "presented earlier:"
6065 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
6066 #: apt_preferences.5.xml:272
6070 "Pin: version 5.8*\n"
6071 "Pin-Priority: 1001\n"
6074 "Pin: origin \"\"\n"
6075 "Pin-Priority: 999\n"
6078 "Pin: release unstable\n"
6079 "Pin-Priority: 50\n"
6082 #. type: Content of: <refentry><refsect1><refsect2><para>
6083 #: apt_preferences.5.xml:285
6087 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
6088 #: apt_preferences.5.xml:287
6090 "The most recent available version of the <literal>perl</literal> package "
6091 "will be installed, so long as that version's version number begins with "
6092 "\"<literal>5.8</literal>\". If <emphasis>any</emphasis> 5.8* version of "
6093 "<literal>perl</literal> is available and the installed version is 5.9*, then "
6094 "<literal>perl</literal> will be downgraded."
6097 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
6098 #: apt_preferences.5.xml:292
6100 "A version of any package other than <literal>perl</literal> that is "
6101 "available from the local system has priority over other versions, even "
6102 "versions belonging to the target release."
6105 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
6106 #: apt_preferences.5.xml:296
6108 "A version of a package whose origin is not the local system but some other "
6109 "site listed in &sources-list; and which belongs to an "
6110 "<literal>unstable</literal> distribution is only installed if it is selected "
6111 "for installation and no version of the package is already installed."
6114 #. type: Content of: <refentry><refsect1><refsect2><title>
6115 #: apt_preferences.5.xml:306
6116 msgid "Determination of Package Version and Distribution Properties"
6119 #. type: Content of: <refentry><refsect1><refsect2><para>
6120 #: apt_preferences.5.xml:308
6122 "The locations listed in the &sources-list; file should provide "
6123 "<filename>Packages</filename> and <filename>Release</filename> files to "
6124 "describe the packages available at that location."
6127 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
6128 #: apt_preferences.5.xml:320
6129 msgid "the <literal>Package:</literal> line"
6132 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
6133 #: apt_preferences.5.xml:321
6134 msgid "gives the package name"
6137 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
6138 #: apt_preferences.5.xml:324 apt_preferences.5.xml:374
6139 msgid "the <literal>Version:</literal> line"
6142 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
6143 #: apt_preferences.5.xml:325
6144 msgid "gives the version number for the named package"
6147 #. type: Content of: <refentry><refsect1><refsect2><para>
6148 #: apt_preferences.5.xml:312
6150 "The <filename>Packages</filename> file is normally found in the directory "
6151 "<filename>.../dists/<replaceable>dist-name</replaceable>/<replaceable>component</replaceable>/<replaceable>arch</replaceable></filename>: "
6153 "<filename>.../dists/stable/main/binary-i386/Packages</filename>. It "
6154 "consists of a series of multi-line records, one for each package available "
6155 "in that directory. Only two lines in each record are relevant for setting "
6156 "APT priorities: <placeholder type=\"variablelist\" id=\"0\"/>"
6159 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
6160 #: apt_preferences.5.xml:341
6161 msgid "the <literal>Archive:</literal> or <literal>Suite:</literal> line"
6164 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
6165 #: apt_preferences.5.xml:342
6167 "names the archive to which all the packages in the directory tree belong. "
6168 "For example, the line \"Archive: stable\" or \"Suite: stable\" specifies "
6169 "that all of the packages in the directory tree below the parent of the "
6170 "<filename>Release</filename> file are in a <literal>stable</literal> "
6171 "archive. Specifying this value in the APT preferences file would require "
6175 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
6176 #: apt_preferences.5.xml:352
6178 msgid "Pin: release a=stable\n"
6181 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
6182 #: apt_preferences.5.xml:358
6183 msgid "the <literal>Codename:</literal> line"
6186 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
6187 #: apt_preferences.5.xml:359
6189 "names the codename to which all the packages in the directory tree belong. "
6190 "For example, the line \"Codename: squeeze\" specifies that all of the "
6191 "packages in the directory tree below the parent of the "
6192 "<filename>Release</filename> file belong to a version named "
6193 "<literal>squeeze</literal>. Specifying this value in the APT preferences "
6194 "file would require the line:"
6197 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
6198 #: apt_preferences.5.xml:368
6200 msgid "Pin: release n=squeeze\n"
6203 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
6204 #: apt_preferences.5.xml:375
6206 "names the release version. For example, the packages in the tree might "
6207 "belong to Debian GNU/Linux release version 3.0. Note that there is normally "
6208 "no version number for the <literal>testing</literal> and "
6209 "<literal>unstable</literal> distributions because they have not been "
6210 "released yet. Specifying this in the APT preferences file would require one "
6211 "of the following lines."
6214 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
6215 #: apt_preferences.5.xml:384
6218 "Pin: release v=3.0\n"
6219 "Pin: release a=stable, v=3.0\n"
6220 "Pin: release 3.0\n"
6223 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
6224 #: apt_preferences.5.xml:393
6225 msgid "the <literal>Component:</literal> line"
6228 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
6229 #: apt_preferences.5.xml:394
6231 "names the licensing component associated with the packages in the directory "
6232 "tree of the <filename>Release</filename> file. For example, the line "
6233 "\"Component: main\" specifies that all the packages in the directory tree "
6234 "are from the <literal>main</literal> component, which entails that they are "
6235 "licensed under terms listed in the Debian Free Software Guidelines. "
6236 "Specifying this component in the APT preferences file would require the "
6240 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
6241 #: apt_preferences.5.xml:403
6243 msgid "Pin: release c=main\n"
6246 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
6247 #: apt_preferences.5.xml:409
6248 msgid "the <literal>Origin:</literal> line"
6251 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
6252 #: apt_preferences.5.xml:410
6254 "names the originator of the packages in the directory tree of the "
6255 "<filename>Release</filename> file. Most commonly, this is "
6256 "<literal>Debian</literal>. Specifying this origin in the APT preferences "
6257 "file would require the line:"
6260 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
6261 #: apt_preferences.5.xml:416
6263 msgid "Pin: release o=Debian\n"
6266 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
6267 #: apt_preferences.5.xml:422
6268 msgid "the <literal>Label:</literal> line"
6271 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
6272 #: apt_preferences.5.xml:423
6274 "names the label of the packages in the directory tree of the "
6275 "<filename>Release</filename> file. Most commonly, this is "
6276 "<literal>Debian</literal>. Specifying this label in the APT preferences "
6277 "file would require the line:"
6280 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
6281 #: apt_preferences.5.xml:429
6283 msgid "Pin: release l=Debian\n"
6286 #. type: Content of: <refentry><refsect1><refsect2><para>
6287 #: apt_preferences.5.xml:330
6289 "The <filename>Release</filename> file is normally found in the directory "
6290 "<filename>.../dists/<replaceable>dist-name</replaceable></filename>: for "
6291 "example, <filename>.../dists/stable/Release</filename>, or "
6292 "<filename>.../dists/woody/Release</filename>. It consists of a single "
6293 "multi-line record which applies to <emphasis>all</emphasis> of the packages "
6294 "in the directory tree below its parent. Unlike the "
6295 "<filename>Packages</filename> file, nearly all of the lines in a "
6296 "<filename>Release</filename> file are relevant for setting APT priorities: "
6297 "<placeholder type=\"variablelist\" id=\"0\"/>"
6300 #. type: Content of: <refentry><refsect1><refsect2><para>
6301 #: apt_preferences.5.xml:436
6303 "All of the <filename>Packages</filename> and <filename>Release</filename> "
6304 "files retrieved from locations listed in the &sources-list; file are stored "
6305 "in the directory <filename>/var/lib/apt/lists</filename>, or in the file "
6306 "named by the variable <literal>Dir::State::Lists</literal> in the "
6307 "<filename>apt.conf</filename> file. For example, the file "
6308 "<filename>debian.lcs.mit.edu_debian_dists_unstable_contrib_binary-i386_Release</filename> "
6309 "contains the <filename>Release</filename> file retrieved from the site "
6310 "<literal>debian.lcs.mit.edu</literal> for <literal>binary-i386</literal> "
6311 "architecture files from the <literal>contrib</literal> component of the "
6312 "<literal>unstable</literal> distribution."
6315 #. type: Content of: <refentry><refsect1><refsect2><title>
6316 #: apt_preferences.5.xml:449
6317 msgid "Optional Lines in an APT Preferences Record"
6320 #. type: Content of: <refentry><refsect1><refsect2><para>
6321 #: apt_preferences.5.xml:451
6323 "Each record in the APT preferences file can optionally begin with one or "
6324 "more lines beginning with the word <literal>Explanation:</literal>. This "
6325 "provides a place for comments."
6328 #. type: Content of: <refentry><refsect1><refsect2><para>
6329 #: apt_preferences.5.xml:455
6331 "The <literal>Pin-Priority:</literal> line in each APT preferences record is "
6332 "optional. If omitted, APT assigns a priority of 1 less than the last value "
6333 "specified on a line beginning with <literal>Pin-Priority: release "
6337 #. type: Content of: <refentry><refsect1><refsect2><title>
6338 #: apt_preferences.5.xml:464
6339 msgid "Tracking Stable"
6342 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
6343 #: apt_preferences.5.xml:472
6346 "Explanation: Uninstall or do not install any Debian-originated\n"
6347 "Explanation: package versions other than those in the stable distro\n"
6349 "Pin: release a=stable\n"
6350 "Pin-Priority: 900\n"
6353 "Pin: release o=Debian\n"
6354 "Pin-Priority: -10\n"
6357 #. type: Content of: <refentry><refsect1><refsect2><para>
6358 #: apt_preferences.5.xml:466
6360 "The following APT preferences file will cause APT to assign a priority "
6361 "higher than the default (500) to all package versions belonging to a "
6362 "<literal>stable</literal> distribution and a prohibitively low priority to "
6363 "package versions belonging to other <literal>Debian</literal> "
6364 "distributions. <placeholder type=\"programlisting\" id=\"0\"/>"
6367 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
6368 #: apt_preferences.5.xml:489 apt_preferences.5.xml:535 apt_preferences.5.xml:593
6371 "apt-get install <replaceable>package-name</replaceable>\n"
6373 "apt-get dist-upgrade\n"
6376 #. type: Content of: <refentry><refsect1><refsect2><para>
6377 #: apt_preferences.5.xml:484
6379 "With a suitable &sources-list; file and the above preferences file, any of "
6380 "the following commands will cause APT to upgrade to the latest "
6381 "<literal>stable</literal> version(s). <placeholder type=\"programlisting\" "
6385 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
6386 #: apt_preferences.5.xml:501
6388 msgid "apt-get install <replaceable>package</replaceable>/testing\n"
6391 #. type: Content of: <refentry><refsect1><refsect2><para>
6392 #: apt_preferences.5.xml:495
6394 "The following command will cause APT to upgrade the specified package to the "
6395 "latest version from the <literal>testing</literal> distribution; the package "
6396 "will not be upgraded again unless this command is given again. <placeholder "
6397 "type=\"programlisting\" id=\"0\"/>"
6400 #. type: Content of: <refentry><refsect1><refsect2><title>
6401 #: apt_preferences.5.xml:507
6402 msgid "Tracking Testing or Unstable"
6405 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
6406 #: apt_preferences.5.xml:516
6410 "Pin: release a=testing\n"
6411 "Pin-Priority: 900\n"
6414 "Pin: release a=unstable\n"
6415 "Pin-Priority: 800\n"
6418 "Pin: release o=Debian\n"
6419 "Pin-Priority: -10\n"
6422 #. type: Content of: <refentry><refsect1><refsect2><para>
6423 #: apt_preferences.5.xml:509
6425 "The following APT preferences file will cause APT to assign a high priority "
6426 "to package versions from the <literal>testing</literal> distribution, a "
6427 "lower priority to package versions from the <literal>unstable</literal> "
6428 "distribution, and a prohibitively low priority to package versions from "
6429 "other <literal>Debian</literal> distributions. <placeholder "
6430 "type=\"programlisting\" id=\"0\"/>"
6433 #. type: Content of: <refentry><refsect1><refsect2><para>
6434 #: apt_preferences.5.xml:530
6436 "With a suitable &sources-list; file and the above preferences file, any of "
6437 "the following commands will cause APT to upgrade to the latest "
6438 "<literal>testing</literal> version(s). <placeholder type=\"programlisting\" "
6442 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
6443 #: apt_preferences.5.xml:550
6445 msgid "apt-get install <replaceable>package</replaceable>/unstable\n"
6448 #. type: Content of: <refentry><refsect1><refsect2><para>
6449 #: apt_preferences.5.xml:541
6451 "The following command will cause APT to upgrade the specified package to the "
6452 "latest version from the <literal>unstable</literal> distribution. "
6453 "Thereafter, <command>apt-get upgrade</command> will upgrade the package to "
6454 "the most recent <literal>testing</literal> version if that is more recent "
6455 "than the installed version, otherwise, to the most recent "
6456 "<literal>unstable</literal> version if that is more recent than the "
6457 "installed version. <placeholder type=\"programlisting\" id=\"0\"/>"
6460 #. type: Content of: <refentry><refsect1><refsect2><title>
6461 #: apt_preferences.5.xml:557
6462 msgid "Tracking the evolution of a codename release"
6465 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
6466 #: apt_preferences.5.xml:571
6469 "Explanation: Uninstall or do not install any Debian-originated package "
6471 "Explanation: other than those in the distribution codenamed with squeeze or "
6474 "Pin: release n=squeeze\n"
6475 "Pin-Priority: 900\n"
6477 "Explanation: Debian unstable is always codenamed with sid\n"
6479 "Pin: release a=sid\n"
6480 "Pin-Priority: 800\n"
6483 "Pin: release o=Debian\n"
6484 "Pin-Priority: -10\n"
6487 #. type: Content of: <refentry><refsect1><refsect2><para>
6488 #: apt_preferences.5.xml:559
6490 "The following APT preferences file will cause APT to assign a priority "
6491 "higher than the default (500) to all package versions belonging to a "
6492 "specified codename of a distribution and a prohibitively low priority to "
6493 "package versions belonging to other <literal>Debian</literal> distributions, "
6494 "codenames and archives. Note that with this APT preference APT will follow "
6495 "the migration of a release from the archive <literal>testing</literal> to "
6496 "<literal>stable</literal> and later <literal>oldstable</literal>. If you "
6497 "want to follow for example the progress in <literal>testing</literal> "
6498 "notwithstanding the codename changes you should use the example "
6499 "configurations above. <placeholder type=\"programlisting\" id=\"0\"/>"
6502 #. type: Content of: <refentry><refsect1><refsect2><para>
6503 #: apt_preferences.5.xml:588
6505 "With a suitable &sources-list; file and the above preferences file, any of "
6506 "the following commands will cause APT to upgrade to the latest version(s) in "
6507 "the release codenamed with <literal>squeeze</literal>. <placeholder "
6508 "type=\"programlisting\" id=\"0\"/>"
6511 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
6512 #: apt_preferences.5.xml:608
6514 msgid "apt-get install <replaceable>package</replaceable>/sid\n"
6517 #. type: Content of: <refentry><refsect1><refsect2><para>
6518 #: apt_preferences.5.xml:599
6520 "The following command will cause APT to upgrade the specified package to the "
6521 "latest version from the <literal>sid</literal> distribution. Thereafter, "
6522 "<command>apt-get upgrade</command> will upgrade the package to the most "
6523 "recent <literal>squeeze</literal> version if that is more recent than the "
6524 "installed version, otherwise, to the most recent <literal>sid</literal> "
6525 "version if that is more recent than the installed version. <placeholder "
6526 "type=\"programlisting\" id=\"0\"/>"
6529 #. type: Content of: <refentry><refsect1><variablelist>
6530 #: apt_preferences.5.xml:617
6531 msgid "&file-preferences;"
6534 #. type: Content of: <refentry><refsect1><para>
6535 #: apt_preferences.5.xml:623
6536 msgid "&apt-get; &apt-cache; &apt-conf; &sources-list;"
6539 #. type: Content of: <refentry><refnamediv><refname>
6540 #: sources.list.5.xml:22 sources.list.5.xml:29
6541 msgid "sources.list"
6544 #. type: Content of: <refentry><refnamediv><refpurpose>
6545 #: sources.list.5.xml:30
6546 msgid "Package resource list for APT"
6549 #. type: Content of: <refentry><refsect1><para>
6550 #: sources.list.5.xml:34
6552 "The package resource list is used to locate archives of the package "
6553 "distribution system in use on the system. At this time, this manual page "
6554 "documents only the packaging system used by the Debian GNU/Linux system. "
6555 "This control file is located in <filename>/etc/apt/sources.list</filename>"
6558 #. type: Content of: <refentry><refsect1><para>
6559 #: sources.list.5.xml:39
6561 "The source list is designed to support any number of active sources and a "
6562 "variety of source media. The file lists one source per line, with the most "
6563 "preferred source listed first. The format of each line is: <literal>type uri "
6564 "args</literal> The first item, <literal>type</literal> determines the format "
6565 "for <literal>args</literal> <literal>uri</literal> is a Universal Resource "
6566 "Identifier (URI), which is a superset of the more specific and well-known "
6567 "Universal Resource Locator, or URL. The rest of the line can be marked as a "
6568 "comment by using a #."
6571 #. type: Content of: <refentry><refsect1><title>
6572 #: sources.list.5.xml:50
6573 msgid "sources.list.d"
6576 #. type: Content of: <refentry><refsect1><para>
6577 #: sources.list.5.xml:51
6579 "The <filename>/etc/apt/sources.list.d</filename> directory provides a way to "
6580 "add sources.list entries in separate files. The format is the same as for "
6581 "the regular <filename>sources.list</filename> file. File names need to end "
6582 "with <filename>.list</filename> and may only contain letters (a-z and A-Z), "
6583 "digits (0-9), underscore (_), hyphen (-) and period (.) characters. "
6584 "Otherwise they will be silently ignored."
6587 #. type: Content of: <refentry><refsect1><title>
6588 #: sources.list.5.xml:60
6589 msgid "The deb and deb-src types"
6592 #. type: Content of: <refentry><refsect1><para>
6593 #: sources.list.5.xml:61
6595 "The <literal>deb</literal> type describes a typical two-level Debian "
6596 "archive, <filename>distribution/component</filename>. Typically, "
6597 "<literal>distribution</literal> is generally one of "
6598 "<literal>stable</literal> <literal>unstable</literal> or "
6599 "<literal>testing</literal> while component is one of <literal>main</literal> "
6600 "<literal>contrib</literal> <literal>non-free</literal> or "
6601 "<literal>non-us</literal> The <literal>deb-src</literal> type describes a "
6602 "debian distribution's source code in the same form as the "
6603 "<literal>deb</literal> type. A <literal>deb-src</literal> line is required "
6604 "to fetch source indexes."
6607 #. type: Content of: <refentry><refsect1><para>
6608 #: sources.list.5.xml:73
6610 "The format for a <filename>sources.list</filename> entry using the "
6611 "<literal>deb</literal> and <literal>deb-src</literal> types are:"
6614 #. type: Content of: <refentry><refsect1><literallayout>
6615 #: sources.list.5.xml:76
6617 msgid "deb uri distribution [component1] [component2] [...]"
6620 #. type: Content of: <refentry><refsect1><para>
6621 #: sources.list.5.xml:78
6623 "The URI for the <literal>deb</literal> type must specify the base of the "
6624 "Debian distribution, from which APT will find the information it needs. "
6625 "<literal>distribution</literal> can specify an exact path, in which case the "
6626 "components must be omitted and <literal>distribution</literal> must end with "
6627 "a slash (/). This is useful for when only a particular sub-section of the "
6628 "archive denoted by the URI is of interest. If "
6629 "<literal>distribution</literal> does not specify an exact path, at least one "
6630 "<literal>component</literal> must be present."
6633 #. type: Content of: <refentry><refsect1><para>
6634 #: sources.list.5.xml:87
6636 "<literal>distribution</literal> may also contain a variable, "
6637 "<literal>$(ARCH)</literal> which expands to the Debian architecture (i386, "
6638 "m68k, powerpc, ...) used on the system. This permits "
6639 "architecture-independent <filename>sources.list</filename> files to be "
6640 "used. In general this is only of interest when specifying an exact path, "
6641 "<literal>APT</literal> will automatically generate a URI with the current "
6642 "architecture otherwise."
6645 #. type: Content of: <refentry><refsect1><para>
6646 #: sources.list.5.xml:95
6648 "Since only one distribution can be specified per line it may be necessary to "
6649 "have multiple lines for the same URI, if a subset of all available "
6650 "distributions or components at that location is desired. APT will sort the "
6651 "URI list after it has generated a complete set internally, and will collapse "
6652 "multiple references to the same Internet host, for instance, into a single "
6653 "connection, so that it does not inefficiently establish an FTP connection, "
6654 "close it, do something else, and then re-establish a connection to that same "
6655 "host. This feature is useful for accessing busy FTP sites with limits on the "
6656 "number of simultaneous anonymous users. APT also parallelizes connections to "
6657 "different hosts to more effectively deal with sites with low bandwidth."
6660 #. type: Content of: <refentry><refsect1><para>
6661 #: sources.list.5.xml:107
6663 "It is important to list sources in order of preference, with the most "
6664 "preferred source listed first. Typically this will result in sorting by "
6665 "speed from fastest to slowest (CD-ROM followed by hosts on a local network, "
6666 "followed by distant Internet hosts, for example)."
6669 #. type: Content of: <refentry><refsect1><para>
6670 #: sources.list.5.xml:112
6671 msgid "Some examples:"
6674 #. type: Content of: <refentry><refsect1><literallayout>
6675 #: sources.list.5.xml:114
6678 "deb http://http.us.debian.org/debian stable main contrib non-free\n"
6679 "deb http://http.us.debian.org/debian dists/stable-updates/\n"
6683 #. type: Content of: <refentry><refsect1><title>
6684 #: sources.list.5.xml:120
6685 msgid "URI specification"
6688 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
6689 #: sources.list.5.xml:125
6693 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6694 #: sources.list.5.xml:127
6696 "The file scheme allows an arbitrary directory in the file system to be "
6697 "considered an archive. This is useful for NFS mounts and local mirrors or "
6701 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6702 #: sources.list.5.xml:134
6704 "The cdrom scheme allows APT to use a local CDROM drive with media "
6705 "swapping. Use the &apt-cdrom; program to create cdrom entries in the source "
6709 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6710 #: sources.list.5.xml:141
6712 "The http scheme specifies an HTTP server for the archive. If an environment "
6713 "variable <envar>http_proxy</envar> is set with the format "
6714 "http://server:port/, the proxy server specified in <envar>http_proxy</envar> "
6715 "will be used. Users of authenticated HTTP/1.1 proxies may use a string of "
6716 "the format http://user:pass@server:port/ Note that this is an insecure "
6717 "method of authentication."
6720 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6721 #: sources.list.5.xml:152
6723 "The ftp scheme specifies an FTP server for the archive. APT's FTP behavior "
6724 "is highly configurable; for more information see the &apt-conf; manual "
6725 "page. Please note that a ftp proxy can be specified by using the "
6726 "<envar>ftp_proxy</envar> environment variable. It is possible to specify a "
6727 "http proxy (http proxy servers often understand ftp urls) using this method "
6728 "and ONLY this method. ftp proxies using http specified in the configuration "
6729 "file will be ignored."
6732 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
6733 #: sources.list.5.xml:161
6737 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6738 #: sources.list.5.xml:163
6740 "The copy scheme is identical to the file scheme except that packages are "
6741 "copied into the cache directory instead of used directly at their location. "
6742 "This is useful for people using a zip disk to copy files around with APT."
6745 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
6746 #: sources.list.5.xml:168
6750 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
6751 #: sources.list.5.xml:168
6755 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6756 #: sources.list.5.xml:170
6758 "The rsh/ssh method invokes rsh/ssh to connect to a remote host as a given "
6759 "user and access the files. It is a good idea to do prior arrangements with "
6760 "RSA keys or rhosts. Access to files on the remote uses standard "
6761 "<command>find</command> and <command>dd</command> commands to perform the "
6762 "file transfers from the remote."
6765 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
6766 #: sources.list.5.xml:178
6767 msgid "more recongnizable URI types"
6770 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6771 #: sources.list.5.xml:180
6773 "APT can be extended with more methods shipped in other optional packages "
6774 "which should follow the nameing scheme "
6775 "<literal>apt-transport-<replaceable>method</replaceable></literal>. The APT "
6776 "team e.g. maintain also the <literal>apt-transport-https</literal> package "
6777 "which provides access methods for https-URIs with features similiar to the "
6778 "http method, but other methods for using e.g. debtorrent are also available, "
6779 "see <citerefentry> "
6780 "<refentrytitle><filename>apt-transport-debtorrent</filename></refentrytitle> "
6781 "<manvolnum>1</manvolnum></citerefentry>."
6784 #. type: Content of: <refentry><refsect1><para>
6785 #: sources.list.5.xml:122
6787 "The currently recognized URI types are cdrom, file, http, ftp, copy, ssh, "
6788 "rsh. <placeholder type=\"variablelist\" id=\"0\"/>"
6791 #. type: Content of: <refentry><refsect1><para>
6792 #: sources.list.5.xml:194
6794 "Uses the archive stored locally (or NFS mounted) at /home/jason/debian for "
6795 "stable/main, stable/contrib, and stable/non-free."
6798 #. type: Content of: <refentry><refsect1><literallayout>
6799 #: sources.list.5.xml:196
6801 msgid "deb file:/home/jason/debian stable main contrib non-free"
6804 #. type: Content of: <refentry><refsect1><para>
6805 #: sources.list.5.xml:198
6806 msgid "As above, except this uses the unstable (development) distribution."
6809 #. type: Content of: <refentry><refsect1><literallayout>
6810 #: sources.list.5.xml:199
6812 msgid "deb file:/home/jason/debian unstable main contrib non-free"
6815 #. type: Content of: <refentry><refsect1><para>
6816 #: sources.list.5.xml:201
6817 msgid "Source line for the above"
6820 #. type: Content of: <refentry><refsect1><literallayout>
6821 #: sources.list.5.xml:202
6823 msgid "deb-src file:/home/jason/debian unstable main contrib non-free"
6826 #. type: Content of: <refentry><refsect1><para>
6827 #: sources.list.5.xml:204
6829 "Uses HTTP to access the archive at archive.debian.org, and uses only the "
6833 #. type: Content of: <refentry><refsect1><literallayout>
6834 #: sources.list.5.xml:206
6836 msgid "deb http://archive.debian.org/debian-archive hamm main"
6839 #. type: Content of: <refentry><refsect1><para>
6840 #: sources.list.5.xml:208
6842 "Uses FTP to access the archive at ftp.debian.org, under the debian "
6843 "directory, and uses only the stable/contrib area."
6846 #. type: Content of: <refentry><refsect1><literallayout>
6847 #: sources.list.5.xml:210
6849 msgid "deb ftp://ftp.debian.org/debian stable contrib"
6852 #. type: Content of: <refentry><refsect1><para>
6853 #: sources.list.5.xml:212
6855 "Uses FTP to access the archive at ftp.debian.org, under the debian "
6856 "directory, and uses only the unstable/contrib area. If this line appears as "
6857 "well as the one in the previous example in "
6858 "<filename>sources.list</filename>. a single FTP session will be used for "
6859 "both resource lines."
6862 #. type: Content of: <refentry><refsect1><literallayout>
6863 #: sources.list.5.xml:216
6865 msgid "deb ftp://ftp.debian.org/debian unstable contrib"
6868 #. type: Content of: <refentry><refsect1><para>
6869 #: sources.list.5.xml:218
6871 "Uses HTTP to access the archive at nonus.debian.org, under the debian-non-US "
6875 #. type: Content of: <refentry><refsect1><literallayout>
6876 #: sources.list.5.xml:220
6879 "deb http://nonus.debian.org/debian-non-US stable/non-US main contrib "
6883 #. type: Content of: <refentry><refsect1><para><literallayout>
6884 #: sources.list.5.xml:229
6886 msgid "deb http://ftp.de.debian.org/debian-non-US unstable/binary-$(ARCH)/"
6889 #. type: Content of: <refentry><refsect1><para>
6890 #: sources.list.5.xml:222
6892 "Uses HTTP to access the archive at nonus.debian.org, under the debian-non-US "
6893 "directory, and uses only files found under "
6894 "<filename>unstable/binary-i386</filename> on i386 machines, "
6895 "<filename>unstable/binary-m68k</filename> on m68k, and so forth for other "
6896 "supported architectures. [Note this example only illustrates how to use the "
6897 "substitution variable; non-us is no longer structured like this] "
6898 "<placeholder type=\"literallayout\" id=\"0\"/>"
6901 #. type: Content of: <refentry><refsect1><para>
6902 #: sources.list.5.xml:234
6903 msgid "&apt-cache; &apt-conf;"
6906 #. type: <title></title>
6908 msgid "APT User's Guide"
6911 #. type: <author></author>
6912 #: guide.sgml:6 offline.sgml:6
6913 msgid "<name>Jason Gunthorpe </name><email>jgg@debian.org</email>"
6916 #. type: <version></version>
6918 msgid "$Id: guide.sgml,v 1.7 2003/04/26 23:26:13 doogie Exp $"
6921 #. type: <abstract></abstract>
6924 "This document provides an overview of how to use the the APT package "
6928 #. type: <copyrightsummary></copyrightsummary>
6930 msgid "Copyright © Jason Gunthorpe, 1998."
6934 #: guide.sgml:21 offline.sgml:22
6936 "\"APT\" and this document are free software; you can redistribute them "
6937 "and/or modify them under the terms of the GNU General Public License as "
6938 "published by the Free Software Foundation; either version 2 of the License, "
6939 "or (at your option) any later version."
6943 #: guide.sgml:24 offline.sgml:25
6945 "For more details, on Debian GNU/Linux systems, see the file "
6946 "/usr/share/common-licenses/GPL for the full license."
6949 #. type: <heading></heading>
6957 "The APT package currently contains two sections, the APT "
6958 "<prgn>dselect</prgn> method and the <prgn>apt-get</prgn> command line user "
6959 "interface. Both provide a way to install and remove packages as well as "
6960 "download new packages from the Internet."
6963 #. type: <heading></heading>
6965 msgid "Anatomy of the Package System"
6971 "The Debian packaging system has a large amount of information associated "
6972 "with each package to help assure that it integrates cleanly and easily into "
6973 "the system. The most prominent of its features is the dependency system."
6979 "The dependency system allows individual programs to make use of shared "
6980 "elements in the system such as libraries. It simplifies placing infrequently "
6981 "used portions of a program in separate packages to reduce the number of "
6982 "things the average user is required to install. Also, it allows for choices "
6983 "in mail transport agents, X servers and so on."
6989 "The first step to understanding the dependency system is to grasp the "
6990 "concept of a simple dependency. The meaning of a simple dependency is that a "
6991 "package requires another package to be installed at the same time to work "
6998 "For instance, mailcrypt is an emacs extension that aids in encrypting email "
6999 "with GPG. Without GPGP installed mail-crypt is useless, so mailcrypt has a "
7000 "simple dependency on GPG. Also, because it is an emacs extension it has a "
7001 "simple dependency on emacs, without emacs it is completely useless."
7007 "The other important dependency to understand is a conflicting dependency. It "
7008 "means that a package, when installed with another package, will not work and "
7009 "may possibly be extremely harmful to the system. As an example consider a "
7010 "mail transport agent such as sendmail, exim or qmail. It is not possible to "
7011 "have two mail transport agents installed because both need to listen to the "
7012 "network to receive mail. Attempting to install two will seriously damage the "
7013 "system so all mail transport agents have a conflicting dependency with all "
7014 "other mail transport agents."
7020 "As an added complication there is the possibility for a package to pretend "
7021 "to be another package. Consider that exim and sendmail for many intents are "
7022 "identical, they both deliver mail and understand a common interface. Hence, "
7023 "the package system has a way for them to declare that they are both "
7024 "mail-transport-agents. So, exim and sendmail both declare that they provide "
7025 "a mail-transport-agent and other packages that need a mail transport agent "
7026 "depend on mail-transport-agent. This can add a great deal of confusion when "
7027 "trying to manually fix packages."
7033 "At any given time a single dependency may be met by packages that are "
7034 "already installed or it may not be. APT attempts to help resolve dependency "
7035 "issues by providing a number of automatic algorithms that help in selecting "
7036 "packages for installation."
7042 "<prgn>apt-get</prgn> provides a simple way to install packages from the "
7043 "command line. Unlike <prgn>dpkg</prgn>, <prgn>apt-get</prgn> does not "
7044 "understand .deb files, it works with the package's proper name and can only "
7045 "install .deb archives from a <em>Source</em>."
7051 "The first <footnote><p>If you are using an http proxy server you must set "
7052 "the http_proxy environment variable first, see "
7053 "sources.list(5)</p></footnote> thing that should be done before using "
7054 "<prgn>apt-get</prgn> is to fetch the package lists from the <em>Sources</em> "
7055 "so that it knows what packages are available. This is done with <tt>apt-get "
7056 "update</tt>. For instance,"
7059 #. type: <example></example>
7063 "# apt-get update\n"
7064 "Get http://ftp.de.debian.org/debian-non-US/ stable/binary-i386/ Packages\n"
7065 "Get http://llug.sep.bnl.gov/debian/ testing/contrib Packages\n"
7066 "Reading Package Lists... Done\n"
7067 "Building Dependency Tree... Done"
7070 #. type: <p><taglist>
7072 msgid "Once updated there are several commands that can be used:"
7078 "Upgrade will attempt to gently upgrade the whole system. Upgrade will never "
7079 "install a new package or remove an existing package, nor will it ever "
7080 "upgrade a package that might cause some other package to break. This can be "
7081 "used daily to relatively safely upgrade the system. Upgrade will list all of "
7082 "the packages that it could not upgrade, this usually means that they depend "
7083 "on new packages or conflict with some other package. <prgn>dselect</prgn> or "
7084 "<tt>apt-get install</tt> can be used to force these packages to install."
7090 "Install is used to install packages by name. The package is automatically "
7091 "fetched and installed. This can be useful if you already know the name of "
7092 "the package to install and do not want to go into a GUI to select it. Any "
7093 "number of packages may be passed to install, they will all be "
7094 "fetched. Install automatically attempts to resolve dependency problems with "
7095 "the listed packages and will print a summary and ask for confirmation if "
7096 "anything other than its arguments are changed."
7102 "Dist-upgrade is a complete upgrader designed to simplify upgrading between "
7103 "releases of Debian. It uses a sophisticated algorithm to determine the best "
7104 "set of packages to install, upgrade and remove to get as much of the system "
7105 "to the newest release. In some situations it may be desired to use "
7106 "dist-upgrade rather than spend the time manually resolving dependencies in "
7107 "<prgn>dselect</prgn>. Once dist-upgrade has completed then "
7108 "<prgn>dselect</prgn> can be used to install any packages that may have been "
7115 "It is important to closely look at what dist-upgrade is going to do, its "
7116 "decisions may sometimes be quite surprising."
7122 "<prgn>apt-get</prgn> has several command line options that are detailed in "
7123 "its man page, <manref section=\"8\" name=\"apt-get\">. The most useful "
7124 "option is <tt>-d</tt> which does not install the fetched files. If the "
7125 "system has to download a large number of package it would be undesired to "
7126 "start installing them in case something goes wrong. When <tt>-d</tt> is used "
7127 "the downloaded archives can be installed by simply running the command that "
7128 "caused them to be downloaded again without <tt>-d</tt>."
7131 #. type: <heading></heading>
7139 "The APT <prgn>dselect</prgn> method provides the complete APT system with "
7140 "the <prgn>dselect</prgn> package selection GUI. <prgn>dselect</prgn> is used "
7141 "to select the packages to be installed or removed and APT actually installs "
7148 "To enable the APT method you need to to select [A]ccess in "
7149 "<prgn>dselect</prgn> and then choose the APT method. You will be prompted "
7150 "for a set of <em>Sources</em> which are places to fetch archives from. These "
7151 "can be remote Internet sites, local Debian mirrors or CDROMs. Each source "
7152 "can provide a fragment of the total Debian archive, APT will automatically "
7153 "combine them to form a complete set of packages. If you have a CDROM then it "
7154 "is a good idea to specify it first and then specify a mirror so that you "
7155 "have access to the latest bug fixes. APT will automatically use packages on "
7156 "your CDROM before downloading from the Internet."
7159 #. type: <example></example>
7163 " Set up a list of distribution source locations\n"
7165 " Please give the base URL of the debian distribution.\n"
7166 " The access schemes I know about are: http file\n"
7169 " file:/mnt/debian,\n"
7170 " ftp://ftp.debian.org/debian,\n"
7171 " http://ftp.de.debian.org/debian,\n"
7174 " URL [http://llug.sep.bnl.gov/debian]:"
7180 "The <em>Sources</em> setup starts by asking for the base of the Debian "
7181 "archive, defaulting to a HTTP mirror. Next it asks for the distribution to "
7185 #. type: <example></example>
7189 " Please give the distribution tag to get or a path to the\n"
7190 " package file ending in a /. The distribution\n"
7191 " tags are typically something like: stable unstable testing non-US\n"
7193 " Distribution [stable]:"
7199 "The distribution refers to the Debian version in the archive, "
7200 "<em>stable</em> refers to the latest released version and <em>unstable</em> "
7201 "refers to the developmental version. <em>non-US</em> is only available on "
7202 "some mirrors and refers to packages that contain encryption technology or "
7203 "other things that cannot be exported from the United States. Importing these "
7204 "packages into the US is legal however."
7207 #. type: <example></example>
7211 " Please give the components to get\n"
7212 " The components are typically something like: main contrib non-free\n"
7214 " Components [main contrib non-free]:"
7220 "The components list refers to the list of sub distributions to fetch. The "
7221 "distribution is split up based on software licenses, main being DFSG free "
7222 "packages while contrib and non-free contain things that have various "
7223 "restrictions placed on their use and distribution."
7229 "Any number of sources can be added, the setup script will continue to prompt "
7230 "until you have specified all that you want."
7236 "Before starting to use <prgn>dselect</prgn> it is necessary to update the "
7237 "available list by selecting [U]pdate from the menu. This is a super-set of "
7238 "<tt>apt-get update</tt> that makes the fetched information available to "
7239 "<prgn>dselect</prgn>. [U]pdate must be performed even if <tt>apt-get "
7240 "update</tt> has been run before."
7246 "You can then go on and make your selections using [S]elect and then perform "
7247 "the installation using [I]nstall. When using the APT method the [C]onfig and "
7248 "[R]emove commands have no meaning, the [I]nstall command performs both of "
7255 "By default APT will automatically remove the package (.deb) files once they "
7256 "have been successfully installed. To change this behavior place "
7257 "<tt>Dselect::clean \"prompt\";</tt> in /etc/apt/apt.conf."
7260 #. type: <heading></heading>
7262 msgid "The Interface"
7268 "Both that APT <prgn>dselect</prgn> method and <prgn>apt-get</prgn> share the "
7269 "same interface. It is a simple system that generally tells you what it will "
7270 "do and then goes and does it. <footnote><p>The <prgn>dselect</prgn> method "
7271 "actually is a set of wrapper scripts to <prgn>apt-get</prgn>. The method "
7272 "actually provides more functionality than is present in <prgn>apt-get</prgn> "
7273 "alone.</p></footnote> After printing out a summary of what will happen APT "
7274 "then will print out some informative status messages so that you can "
7275 "estimate how far along it is and how much is left to do."
7278 #. type: <heading></heading>
7286 "Before all operations except update, APT performs a number of actions to "
7287 "prepare its internal state. It also does some checks of the system's "
7288 "state. At any time these operations can be performed by running <tt>apt-get "
7292 #. type: <example></example>
7297 "Reading Package Lists... Done\n"
7298 "Building Dependency Tree... Done"
7304 "The first thing it does is read all the package files into memory. APT uses "
7305 "a caching scheme so this operation will be faster the second time it is "
7306 "run. If some of the package files are not found then they will be ignored "
7307 "and a warning will be printed when apt-get exits."
7313 "The final operation performs a detailed analysis of the system's "
7314 "dependencies. It checks every dependency of every installed or unpacked "
7315 "package and considers if it is OK. Should this find a problem then a report "
7316 "will be printed out and <prgn>apt-get</prgn> will refuse to run."
7319 #. type: <example></example>
7324 "Reading Package Lists... Done\n"
7325 "Building Dependency Tree... Done\n"
7326 "You might want to run apt-get -f install' to correct these.\n"
7327 "Sorry, but the following packages have unmet dependencies:\n"
7328 " 9fonts: Depends: xlib6g but it is not installed\n"
7329 " uucp: Depends: mailx but it is not installed\n"
7330 " blast: Depends: xlib6g (>= 3.3-5) but it is not installed\n"
7331 " adduser: Depends: perl-base but it is not installed\n"
7332 " aumix: Depends: libgpmg1 but it is not installed\n"
7333 " debiandoc-sgml: Depends: sgml-base but it is not installed\n"
7334 " bash-builtins: Depends: bash (>= 2.01) but 2.0-3 is installed\n"
7335 " cthugha: Depends: svgalibg1 but it is not installed\n"
7336 " Depends: xlib6g (>= 3.3-5) but it is not installed\n"
7337 " libreadlineg2: Conflicts:libreadline2 (<< 2.1-2.1)"
7343 "In this example the system has many problems, including a serious problem "
7344 "with libreadlineg2. For each package that has unmet dependencies a line is "
7345 "printed out indicating the package with the problem and the dependencies "
7346 "that are unmet. A short explanation of why the package has a dependency "
7347 "problem is also included."
7353 "There are two ways a system can get into a broken state like this. The first "
7354 "is caused by <prgn>dpkg</prgn> missing some subtle relationships between "
7355 "packages when performing upgrades. <footnote><p>APT however considers all "
7356 "known dependencies and attempts to prevent broken "
7357 "packages</p></footnote>. The second is if a package installation fails "
7358 "during an operation. In this situation a package may have been unpacked "
7359 "without its dependents being installed."
7365 "The second situation is much less serious than the first because APT places "
7366 "certain constraints on the order that packages are installed. In both cases "
7367 "supplying the <tt>-f</tt> option to <prgn>apt-get</prgn> will cause APT to "
7368 "deduce a possible solution to the problem and then continue on. The APT "
7369 "<prgn>dselect</prgn> method always supplies the <tt>-f</tt> option to allow "
7370 "for easy continuation of failed maintainer scripts."
7376 "However, if the <tt>-f</tt> option is used to correct a seriously broken "
7377 "system caused by the first case then it is possible that it will either fail "
7378 "immediately or the installation sequence will fail. In either case it is "
7379 "necessary to manually use dpkg (possibly with forcing options) to correct "
7380 "the situation enough to allow APT to proceed."
7383 #. type: <heading></heading>
7385 msgid "The Status Report"
7391 "Before proceeding <prgn>apt-get</prgn> will present a report on what will "
7392 "happen. Generally the report reflects the type of operation being performed "
7393 "but there are several common elements. In all cases the lists reflect the "
7394 "final state of things, taking into account the <tt>-f</tt> option and any "
7395 "other relevant activities to the command being executed."
7398 #. type: <heading></heading>
7400 msgid "The Extra Package list"
7403 #. type: <example></example>
7407 "The following extra packages will be installed:\n"
7408 " libdbd-mysql-perl xlib6 zlib1 xzx libreadline2 libdbd-msql-perl\n"
7409 " mailpgp xdpkg fileutils pinepgp zlib1g xlib6g perl-base\n"
7410 " bin86 libgdbm1 libgdbmg1 quake-lib gmp2 bcc xbuffy\n"
7411 " squake pgp-i python-base debmake ldso perl libreadlineg2\n"
7418 "The Extra Package list shows all of the packages that will be installed or "
7419 "upgraded in excess of the ones mentioned on the command line. It is only "
7420 "generated for an <tt>install</tt> command. The listed packages are often the "
7421 "result of an Auto Install."
7424 #. type: <heading></heading>
7426 msgid "The Packages to Remove"
7429 #. type: <example></example>
7433 "The following packages will be REMOVED:\n"
7434 " xlib6-dev xpat2 tk40-dev xkeycaps xbattle xonix\n"
7435 " xdaliclock tk40 tk41 xforms0.86 ghostview xloadimage xcolorsel\n"
7436 " xadmin xboard perl-debug tkined xtetris libreadline2-dev perl-suid\n"
7443 "The Packages to Remove list shows all of the packages that will be removed "
7444 "from the system. It can be shown for any of the operations and should be "
7445 "given a careful inspection to ensure nothing important is to be taken "
7446 "off. The <tt>-f</tt> option is especially good at generating packages to "
7447 "remove so extreme care should be used in that case. The list may contain "
7448 "packages that are going to be removed because they are only partially "
7449 "installed, possibly due to an aborted installation."
7452 #. type: <heading></heading>
7454 msgid "The New Packages list"
7457 #. type: <example></example>
7461 "The following NEW packages will installed:\n"
7462 " zlib1g xlib6g perl-base libgdbmg1 quake-lib gmp2 pgp-i python-base"
7468 "The New Packages list is simply a reminder of what will happen. The packages "
7469 "listed are not presently installed in the system but will be when APT is "
7473 #. type: <heading></heading>
7475 msgid "The Kept Back list"
7478 #. type: <example></example>
7482 "The following packages have been kept back\n"
7483 " compface man-db tetex-base msql libpaper svgalib1\n"
7484 " gs snmp arena lynx xpat2 groff xscreensaver"
7490 "Whenever the whole system is being upgraded there is the possibility that "
7491 "new versions of packages cannot be installed because they require new things "
7492 "or conflict with already installed things. In this case the package will "
7493 "appear in the Kept Back list. The best way to convince packages listed there "
7494 "to install is with <tt>apt-get install</tt> or by using <prgn>dselect</prgn> "
7495 "to resolve their problems."
7498 #. type: <heading></heading>
7500 msgid "Held Packages warning"
7503 #. type: <example></example>
7507 "The following held packages will be changed:\n"
7514 "Sometimes you can ask APT to install a package that is on hold, in such a "
7515 "case it prints out a warning that the held package is going to be "
7516 "changed. This should only happen during dist-upgrade or install."
7519 #. type: <heading></heading>
7521 msgid "Final summary"
7526 msgid "Finally, APT will print out a summary of all the changes that will occur."
7529 #. type: <example></example>
7533 "206 packages upgraded, 8 newly installed, 23 to remove and 51 not "
7535 "12 packages not fully installed or removed.\n"
7536 "Need to get 65.7M/66.7M of archives. After unpacking 26.5M will be used."
7542 "The first line of the summary simply is a reduced version of all of the "
7543 "lists and includes the number of upgrades - that is packages already "
7544 "installed that have new versions available. The second line indicates the "
7545 "number of poorly configured packages, possibly the result of an aborted "
7546 "installation. The final line shows the space requirements that the "
7547 "installation needs. The first pair of numbers refer to the size of the "
7548 "archive files. The first number indicates the number of bytes that must be "
7549 "fetched from remote locations and the second indicates the total size of all "
7550 "the archives required. The next number indicates the size difference between "
7551 "the presently installed packages and the newly installed packages. It is "
7552 "roughly equivalent to the space required in /usr after everything is "
7553 "done. If a large number of packages are being removed then the value may "
7554 "indicate the amount of space that will be freed."
7560 "Some other reports can be generated by using the -u option to show packages "
7561 "to upgrade, they are similar to the previous examples."
7564 #. type: <heading></heading>
7566 msgid "The Status Display"
7572 "During the download of archives and package files APT prints out a series of "
7576 #. type: <example></example>
7580 "# apt-get update\n"
7581 "Get:1 http://ftp.de.debian.org/debian-non-US/ stable/non-US/ Packages\n"
7582 "Get:2 http://llug.sep.bnl.gov/debian/ testing/contrib Packages\n"
7583 "Hit http://llug.sep.bnl.gov/debian/ testing/main Packages\n"
7584 "Get:4 http://ftp.de.debian.org/debian-non-US/ unstable/binary-i386/ "
7586 "Get:5 http://llug.sep.bnl.gov/debian/ testing/non-free Packages\n"
7587 "11% [5 testing/non-free `Waiting for file' 0/32.1k 0%] 2203b/s 1m52s"
7593 "The lines starting with <em>Get</em> are printed out when APT begins to "
7594 "fetch a file while the last line indicates the progress of the download. The "
7595 "first percent value on the progress line indicates the total percent done of "
7596 "all files. Unfortunately since the size of the Package files is unknown "
7597 "<tt>apt-get update</tt> estimates the percent done which causes some "
7604 "The next section of the status line is repeated once for each download "
7605 "thread and indicates the operation being performed and some useful "
7606 "information about what is happening. Sometimes this section will simply read "
7607 "<em>Forking</em> which means the OS is loading the download module. The "
7608 "first word after the [ is the fetch number as shown on the history "
7609 "lines. The next word is the short form name of the object being "
7610 "downloaded. For archives it will contain the name of the package that is "
7617 "Inside of the single quote is an informative string indicating the progress "
7618 "of the negotiation phase of the download. Typically it progresses from "
7619 "<em>Connecting</em> to <em>Waiting for file</em> to <em>Downloading</em> or "
7620 "<em>Resuming</em>. The final value is the number of bytes downloaded from "
7621 "the remote site. Once the download begins this is represented as "
7622 "<tt>102/10.2k</tt> indicating that 102 bytes have been fetched and 10.2 "
7623 "kilobytes is expected. The total size is always shown in 4 figure notation "
7624 "to preserve space. After the size display is a percent meter for the file "
7625 "itself. The second last element is the instantaneous average speed. This "
7626 "values is updated every 5 seconds and reflects the rate of data transfer for "
7627 "that period. Finally is shown the estimated transfer time. This is updated "
7628 "regularly and reflects the time to complete everything at the shown transfer "
7635 "The status display updates every half second to provide a constant feedback "
7636 "on the download progress while the Get lines scroll back whenever a new file "
7637 "is started. Since the status display is constantly updated it is unsuitable "
7638 "for logging to a file, use the <tt>-q</tt> option to remove the status "
7642 #. type: <heading></heading>
7650 "APT uses <prgn>dpkg</prgn> for installing the archives and will switch over "
7651 "to the <prgn>dpkg</prgn> interface once downloading is "
7652 "completed. <prgn>dpkg</prgn> will also ask a number of questions as it "
7653 "processes the packages and the packages themselves may also ask several "
7654 "questions. Before each question there is usually a description of what it is "
7655 "asking and the questions are too varied to discuss completely here."
7658 #. type: <title></title>
7660 msgid "Using APT Offline"
7663 #. type: <version></version>
7665 msgid "$Id: offline.sgml,v 1.8 2003/02/12 15:06:41 doogie Exp $"
7668 #. type: <abstract></abstract>
7671 "This document describes how to use APT in a non-networked environment, "
7672 "specifically a 'sneaker-net' approach for performing upgrades."
7675 #. type: <copyrightsummary></copyrightsummary>
7677 msgid "Copyright © Jason Gunthorpe, 1999."
7680 #. type: <heading></heading>
7682 msgid "Introduction"
7685 #. type: <heading></heading>
7686 #: offline.sgml:34 offline.sgml:65 offline.sgml:180
7693 "Normally APT requires direct access to a Debian archive, either from a local "
7694 "media or through a network. Another common complaint is that a Debian "
7695 "machine is on a slow link, such as a modem and another machine has a very "
7696 "fast connection but they are physically distant."
7702 "The solution to this is to use large removable media such as a Zip disc or a "
7703 "SuperDisk disc. These discs are not large enough to store the entire Debian "
7704 "archive but can easily fit a subset large enough for most users. The idea is "
7705 "to use APT to generate a list of packages that are required and then fetch "
7706 "them onto the disc using another machine with good connectivity. It is even "
7707 "possible to use another Debian machine with APT or to use a completely "
7708 "different OS and a download tool like wget. Let <em>remote host</em> mean "
7709 "the machine downloading the packages, and <em>target host</em> the one with "
7710 "bad or no connection."
7716 "This is achieved by creatively manipulating the APT configuration file. The "
7717 "essential premis to tell APT to look on a disc for it's archive files. Note "
7718 "that the disc should be formated with a filesystem that can handle long file "
7719 "names such as ext2, fat32 or vfat."
7722 #. type: <heading></heading>
7724 msgid "Using APT on both machines"
7727 #. type: <p><example>
7730 "APT being available on both machines gives the simplest configuration. The "
7731 "basic idea is to place a copy of the status file on the disc and use the "
7732 "remote machine to fetch the latest package files and decide which packages "
7733 "to download. The disk directory structure should look like:"
7736 #. type: <example></example>
7750 #. type: <heading></heading>
7752 msgid "The configuration file"
7758 "The configuration file should tell APT to store its files on the disc and to "
7759 "use the configuration files on the disc as well. The sources.list should "
7760 "contain the proper sites that you wish to use from the remote machine, and "
7761 "the status file should be a copy of <em>/var/lib/dpkg/status</em> from the "
7762 "<em>target host</em>. Please note, if you are using a local archive you must "
7763 "use copy URIs, the syntax is identical to file URIs."
7766 #. type: <p><example>
7769 "<em>apt.conf</em> must contain the necessary information to make APT use the "
7773 #. type: <example></example>
7779 " /* This is not necessary if the two machines are the same arch, it "
7781 " the remote APT what architecture the target machine is */\n"
7782 " Architecture \"i386\";\n"
7784 " Get::Download-Only \"true\";\n"
7789 " /* Use the disc for state information and redirect the status file from\n"
7790 " the /var/lib/dpkg default */\n"
7791 " State \"/disc/\";\n"
7792 " State::status \"status\";\n"
7794 " // Binary caches will be stored locally\n"
7795 " Cache::archives \"/disc/archives/\";\n"
7796 " Cache \"/tmp/\";\n"
7798 " // Location of the source list.\n"
7799 " Etc \"/disc/\";\n"
7803 #. type: </example></p>
7806 "More details can be seen by examining the apt.conf man page and the sample "
7807 "configuration file in <em>/usr/share/doc/apt/examples/apt.conf</em>."
7810 #. type: <p><example>
7813 "On the target machine the first thing to do is mount the disc and copy "
7814 "<em>/var/lib/dpkg/status</em> to it. You will also need to create the "
7815 "directories outlined in the Overview, <em>archives/partial/</em> and "
7816 "<em>lists/partial/</em> Then take the disc to the remote machine and "
7817 "configure the sources.list. On the remote machine execute the following:"
7820 #. type: <example></example>
7824 " # export APT_CONFIG=\"/disc/apt.conf\"\n"
7825 " # apt-get update\n"
7826 " [ APT fetches the package files ]\n"
7827 " # apt-get dist-upgrade\n"
7828 " [ APT fetches all the packages needed to upgrade the target machine ]"
7831 #. type: </example></p>
7834 "The dist-upgrade command can be replaced with any-other standard APT "
7835 "commands, particularly dselect-upgrade. You can even use an APT front end "
7836 "such as <em>dselect</em> However this presents a problem in communicating "
7837 "your selections back to the local computer."
7840 #. type: <p><example>
7843 "Now the disc contains all of the index files and archives needed to upgrade "
7844 "the target machine. Take the disc back and run:"
7847 #. type: <example></example>
7851 " # export APT_CONFIG=\"/disc/apt.conf\"\n"
7852 " # apt-get check\n"
7853 " [ APT generates a local copy of the cache files ]\n"
7854 " # apt-get --no-d -o dir::state::status=/var/lib/dpkg/status dist-upgrade\n"
7855 " [ Or any other APT command ]"
7861 "It is necessary for proper function to re-specify the status file to be the "
7862 "local one. This is very important!"
7868 "If you are using dselect you can do the very risky operation of copying "
7869 "disc/status to /var/lib/dpkg/status so that any selections you made on the "
7870 "remote machine are updated. I highly recommend that people only make "
7871 "selections on the local machine - but this may not always be possible. DO "
7872 "NOT copy the status file if dpkg or APT have been run in the mean time!!"
7875 #. type: <heading></heading>
7877 msgid "Using APT and wget"
7883 "<em>wget</em> is a popular and portable download tool that can run on nearly "
7884 "any machine. Unlike the method above this requires that the Debian machine "
7885 "already has a list of available packages."
7891 "The basic idea is to create a disc that has only the archive files "
7892 "downloaded from the remote site. This is done by using the --print-uris "
7893 "option to apt-get and then preparing a wget script to actually fetch the "
7897 #. type: <heading></heading>
7902 #. type: <p><example>
7905 "Unlike the previous technique no special configuration files are "
7906 "required. We merely use the standard APT commands to generate the file list."
7909 #. type: <example></example>
7913 " # apt-get dist-upgrade \n"
7914 " [ Press no when prompted, make sure you are happy with the actions ]\n"
7915 " # apt-get -qq --print-uris dist-upgrade > uris\n"
7916 " # awk '{print \"wget -O \" $2 \" \" $1}' < uris > /disc/wget-script"
7919 #. type: </example></p>
7922 "Any command other than dist-upgrade could be used here, including "
7929 "The /disc/wget-script file will now contain a list of wget commands to "
7930 "execute in order to fetch the necessary archives. This script should be run "
7931 "with the current directory as the disc's mount point so as to save the "
7932 "output on the disc."
7935 #. type: <p><example>
7937 msgid "The remote machine would do something like"
7940 #. type: <example></example>
7945 " # sh -x ./wget-script\n"
7949 #. type: </example><example>
7952 "Once the archives are downloaded and the disc returned to the Debian machine "
7953 "installation can proceed using,"
7956 #. type: <example></example>
7959 msgid " # apt-get -o dir::cache::archives=\"/disc/\" dist-upgrade"
7962 #. type: </example></p>
7964 msgid "Which will use the already fetched archives on the disc."