1 # Translation of apt package man pages
2 # Copyright (C) YEAR André Luís Lopes <andrelop@debian.org>
3 # This file is distributed under the same license as the apt package.
6 # André Luís Lopes <andrelop@ig.com.br>
10 "Project-Id-Version: apt-doc 1.0.5\n"
11 "Report-Msgid-Bugs-To: APT Development Team <deity@lists.debian.org>\n"
12 "POT-Creation-Date: 2016-06-22 14:50+0200\n"
13 "PO-Revision-Date: 2004-09-20 17:02+0000\n"
14 "Last-Translator: André Luís Lopes <andrelop@debian.org>\n"
15 "Language-Team: <debian-l10n-portuguese@lists.debian.org>\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
25 "<!ENTITY apt-author.team \"\n"
27 " <othername>APT team</othername>\n"
28 " <contrib></contrib>\n"
37 "<!ENTITY apt-qapage \"\n"
39 "\t\t<ulink url='http://packages.qa.debian.org/a/apt.html'>QA Page</ulink>\n"
48 "<!-- Boiler plate Bug reporting section -->\n"
49 "<!ENTITY manbugs \"\n"
50 " <refsect1><title>Bugs</title>\n"
51 " <para><ulink url='http://bugs.debian.org/src:apt'>APT bug page</ulink>.\n"
52 " If you wish to report a bug in APT, please see\n"
53 " <filename>/usr/share/doc/debian/bug-reporting.txt</filename> or the\n"
54 " &reportbug; command.\n"
60 " <RefSect1><Title>Bugs</>\n"
62 " Consulte a <ulink url='http://bugs.debian.org/apt'>página de bugs do APT</>.\n"
63 " Caso você queira relatar um bug no APT, por favor consulte o arquivo\n"
64 " <filename>/usr/share/doc/debian/bug-reporting.txt</> ou o comando &reportbug;.\n"
71 "<!-- Boiler plate Author section -->\n"
72 "<!ENTITY manauthor \"\n"
73 " <refsect1><title>Author</title>\n"
74 " <para>APT was written by the APT team <email>apt@packages.debian.org</email>.\n"
80 " <RefSect1><Title>Author</>\n"
82 " O APT foi escrito pela equipe APT <email>apt@packages.debian.org</>.\n"
89 "<!-- Should be used within the option section of the text to\n"
90 " put in the blurb about -h, -v, -c and -o -->\n"
91 "<!ENTITY apt-commonoptions \"\n"
92 " <varlistentry><term><option>-h</option></term>\n"
93 " <term><option>--help</option></term>\n"
94 " <listitem><para>Show a short usage summary.\n"
105 " <term><option>-v</option></term>\n"
106 " <term><option>--version</option></term>\n"
107 " <listitem><para>Show the program version.\n"
118 " <term><option>-c</option></term>\n"
119 " <term><option>--config-file</option></term>\n"
120 " <listitem><para>Configuration File; Specify a configuration file to use. \n"
121 " The program will read the default configuration file and then this \n"
122 " configuration file. If configuration settings need to be set before the\n"
123 " default configuration files are parsed specify a file with the <envar>APT_CONFIG</envar>\n"
124 " environment variable. See &apt-conf; for syntax information.\n"
135 " <term><option>-o</option></term>\n"
136 " <term><option>--option</option></term>\n"
137 " <listitem><para>Set a Configuration Option; This will set an arbitrary\n"
138 " configuration option. The syntax is <option>-o Foo::Bar=bar</option>.\n"
139 " <option>-o</option> and <option>--option</option> can be used multiple\n"
140 " times to set different options.\n"
151 "<!-- Should be used within the option section of the text to\n"
152 " put in the blurb about -h, -v, -c and -o -->\n"
153 "<!ENTITY apt-cmdblurb \"\n"
154 " <para>All command line options may be set using the configuration file, the\n"
155 " descriptions indicate the configuration option to set. For boolean\n"
156 " options you can override the config file by using something like \n"
157 " <option>-f-</option>,<option>--no-f</option>, <option>-f=no</option>\n"
158 " or several other variations.\n"
164 " Todas as opções de linha de comando podem ser definidas usando o\n"
165 " arquivo de configuração, as descrições indicam a opção de configuração\n"
166 " a ser definida. Para opções booleanas você pode sobrepor o arquivo de\n"
167 " configuração usando algo como <option/-f-/,<option/--no-f/,\n"
168 " <option/-f=no/ ou diversas outras variantes.\n"
175 "<!ENTITY file-aptconf \"\n"
176 " <varlistentry><term><filename>/etc/apt/apt.conf</filename></term>\n"
177 " <listitem><para>APT configuration file.\n"
178 " Configuration Item: <literal>Dir::Etc::Main</literal>.</para></listitem>\n"
186 " <varlistentry><term><filename>/etc/apt/apt.conf.d/</filename></term>\n"
187 " <listitem><para>APT configuration file fragments.\n"
188 " Configuration Item: <literal>Dir::Etc::Parts</literal>.</para></listitem>\n"
197 "<!ENTITY file-cachearchives \"\n"
198 " <varlistentry><term><filename>&cachedir;/archives/</filename></term>\n"
199 " <listitem><para>Storage area for retrieved package files.\n"
200 " Configuration Item: <literal>Dir::Cache::Archives</literal>.</para></listitem>\n"
208 " <varlistentry><term><filename>&cachedir;/archives/partial/</filename></term>\n"
209 " <listitem><para>Storage area for package files in transit.\n"
210 " Configuration Item: <literal>Dir::Cache::Archives</literal> (<filename>partial</filename> will be implicitly appended)</para></listitem>\n"
219 "<!ENTITY file-preferences \"\n"
220 " <varlistentry><term><filename>/etc/apt/preferences</filename></term>\n"
221 " <listitem><para>Version preferences file.\n"
222 " This is where you would specify "pinning",\n"
223 " i.e. a preference to get certain packages\n"
224 " from a separate source\n"
225 " or from a different version of a distribution.\n"
226 " Configuration Item: <literal>Dir::Etc::Preferences</literal>.</para></listitem>\n"
234 " <varlistentry><term><filename>/etc/apt/preferences.d/</filename></term>\n"
235 " <listitem><para>File fragments for the version preferences.\n"
236 " Configuration Item: <literal>Dir::Etc::PreferencesParts</literal>.</para></listitem>\n"
245 "<!ENTITY file-sourceslist \"\n"
246 " <varlistentry><term><filename>/etc/apt/sources.list</filename></term>\n"
247 " <listitem><para>Locations to fetch packages from.\n"
248 " Configuration Item: <literal>Dir::Etc::SourceList</literal>.</para></listitem>\n"
256 " <varlistentry><term><filename>/etc/apt/sources.list.d/</filename></term>\n"
257 " <listitem><para>File fragments for locations to fetch packages from.\n"
258 " Configuration Item: <literal>Dir::Etc::SourceParts</literal>.</para></listitem>\n"
267 "<!ENTITY file-statelists \"\n"
268 " <varlistentry><term><filename>&statedir;/lists/</filename></term>\n"
269 " <listitem><para>Storage area for state information for each package resource specified in\n"
271 " Configuration Item: <literal>Dir::State::Lists</literal>.</para></listitem>\n"
279 " <varlistentry><term><filename>&statedir;/lists/partial/</filename></term>\n"
280 " <listitem><para>Storage area for state information in transit.\n"
281 " Configuration Item: <literal>Dir::State::Lists</literal> (<filename>partial</filename> will be implicitly appended)</para></listitem>\n"
290 "<!ENTITY file-trustedgpg \"\n"
291 " <varlistentry><term><filename>/etc/apt/trusted.gpg</filename></term>\n"
292 " <listitem><para>Keyring of local trusted keys, new keys will be added here.\n"
293 " Configuration Item: <literal>Dir::Etc::Trusted</literal>.</para></listitem>\n"
301 " <varlistentry><term><filename>/etc/apt/trusted.gpg.d/</filename></term>\n"
302 " <listitem><para>File fragments for the trusted keys, additional keyrings can\n"
303 " be stored here (by other packages or the administrator).\n"
304 " Configuration Item <literal>Dir::Etc::TrustedParts</literal>.</para></listitem>\n"
313 "<!ENTITY file-extended_states \"\n"
314 " <varlistentry><term><filename>/var/lib/apt/extended_states</filename></term>\n"
315 " <listitem><para>Status list of auto-installed packages.\n"
316 " Configuration Item: <literal>Dir::State::extended_states</literal>.\n"
317 " </para></listitem>\n"
326 "<!-- TRANSLATOR: This is the section header for the following paragraphs - comparable\n"
327 " to the other headers like NAME and DESCRIPTION and should therefore be uppercase. -->\n"
328 "<!ENTITY translation-title \"TRANSLATION\">\n"
329 msgstr "<!ENTITY translation-title \"TRADUÇÃO\">\n"
335 "<!-- TRANSLATOR: This is a placeholder. You should write here who has contributed\n"
336 " to the translation in the past, who is responsible now and maybe further information\n"
337 " specially related to your translation. -->\n"
338 "<!ENTITY translation-holder \"\n"
339 " The english translation was done by John Doe <email>john@doe.org</email> in 2009,\n"
340 " 2010 and Daniela Acme <email>daniela@acme.us</email> in 2010 together with the\n"
341 " Debian Dummy l10n Team <email>debian-l10n-dummy@lists.debian.org</email>.\n"
344 "<!ENTITY translation-holder \"\n"
345 " Esta página de manual foi traduzida para o Português do Brasil por\n"
346 " André Luís Lopes <email>andrelop@ig.com.br</email>.\n"
353 "<!-- TRANSLATOR: As a translation is allowed to have 20% of untranslated/fuzzy strings\n"
354 " in a shipped manpage newer/modified paragraphs will maybe appear in english in\n"
355 " the generated manpage. This sentence is therefore here to tell the reader that this\n"
356 " is not a mistake by the translator - obviously the target is that at least for stable\n"
357 " releases this sentence is not needed. :) -->\n"
358 "<!ENTITY translation-english \"\n"
359 " Note that this translated document may contain untranslated parts.\n"
360 " This is done on purpose, to avoid losing content when the\n"
361 " translation is lagging behind the original content.\n"
368 "<!-- TRANSLATOR: used as in -o=config_string e.g. -o=Debug::"
369 "pkgProblemResolver=1 --> <!ENTITY synopsis-config-string \"config_string\">"
375 "<!-- TRANSLATOR: used as in -c=config_file e.g. -c=./apt.conf --> <!ENTITY "
376 "synopsis-config-file \"config_file\">"
382 "<!-- TRANSLATOR: used as in -t=target_release or pkg/target_release e.g. -"
383 "t=squeeze apt/experimental --> <!ENTITY synopsis-target-release "
384 "\"target_release\">"
390 "<!-- TRANSLATOR: used as in -a=architecture e.g. -a=armel --> <!ENTITY "
391 "synopsis-architecture \"architecture\">"
397 "<!-- TRANSLATOR: used as in apt-get install pkg e.g. apt-get install awesome "
398 "--> <!ENTITY synopsis-pkg \"pkg\">"
404 "<!-- TRANSLATOR: used as in pkg=pkg_version_number e.g. apt=0.8.15 --> <!"
405 "ENTITY synopsis-pkg-ver-number \"pkg_version_number\">"
411 "<!-- TRANSLATOR: used as in apt-cache pkgnames prefix e.g. apt-cache "
412 "pkgnames apt --> <!ENTITY synopsis-prefix \"prefix\">"
418 "<!-- TRANSLATOR: used as in apt-cache search regex e.g. apt-cache search "
419 "awesome --> <!ENTITY synopsis-regex \"regex\">"
425 "<!-- TRANSLATOR: used as in apt-cdrom -d=cdrom_mount_point e.g. apt-cdrom -"
426 "d=/media/cdrom --> <!ENTITY synopsis-cdrom-mount \"cdrom_mount_point\">"
432 "<!-- TRANSLATOR: used as in apt-extracttemplates -t=temporary_directory e.g. "
433 "apt-extracttemplates -t=/tmp --> <!ENTITY synopsis-tmp-directory "
434 "\"temporary_directory\">"
440 "<!-- TRANSLATOR: used as in apt-extracttemplates filename --> <!ENTITY "
441 "synopsis-filename \"filename\">"
447 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
448 "packages path override-file pathprefix --> <!ENTITY synopsis-path \"path\">"
454 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
455 "packages path override-file pathprefix --> <!ENTITY synopsis-override "
462 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
463 "packages path override-file pathprefix --> <!ENTITY synopsis-pathprefix "
470 "<!-- TRANSLATOR: used as parameter for apt-ftparchive e.g. apt-ftparchive "
471 "generate section --> <!ENTITY synopsis-section \"section\">"
477 "<!-- TRANSLATOR: used as in apt-key export keyid e.g. apt-key export "
478 "473041FA --> <!ENTITY synopsis-keyid \"keyid\">"
481 #. type: Content of: <refentry><refmeta><manvolnum>
482 #: apt.8.xml apt-get.8.xml apt-cache.8.xml apt-key.8.xml apt-mark.8.xml
483 #: apt-secure.8.xml apt-cdrom.8.xml apt-config.8.xml
487 #. type: Content of: <refentry><refmeta><refmiscinfo>
488 #: apt.8.xml apt-get.8.xml apt-cache.8.xml apt-key.8.xml apt-mark.8.xml
489 #: apt-secure.8.xml apt-cdrom.8.xml apt-config.8.xml apt.conf.5.xml
490 #: apt_preferences.5.xml sources.list.5.xml apt-extracttemplates.1.xml
491 #: apt-sortpkgs.1.xml apt-ftparchive.1.xml
495 #. type: Content of: <refentry><refnamediv><refpurpose>
497 msgid "command-line interface"
500 #. type: Content of: <refentry><refsect1><title>
501 #: apt.8.xml apt-get.8.xml apt-cache.8.xml apt-key.8.xml apt-mark.8.xml
502 #: apt-secure.8.xml apt-cdrom.8.xml apt-config.8.xml apt.conf.5.xml
503 #: apt_preferences.5.xml sources.list.5.xml apt-extracttemplates.1.xml
504 #: apt-sortpkgs.1.xml apt-ftparchive.1.xml
509 #. type: Content of: <refentry><refsect1><para>
512 "<command>apt</command> provides a high-level commandline interface for the "
513 "package management system. It is intended as an end user interface and "
514 "enables some options better suited for interactive usage by default compared "
515 "to more specialized APT tools like &apt-get; and &apt-cache;."
518 #. type: Content of: <refentry><refsect1><para>
521 "Much like <command>apt</command> itself, its manpage is intended as an end "
522 "user interface and as such only mentions the most used commands and options "
523 "partly to not duplicate information in multiple places and partly to avoid "
524 "overwhelming readers with a cornucopia of options and details."
527 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
532 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
535 "<option>update</option> is used to download package information from all "
536 "configured sources. Other commands operate on this data to e.g. perform "
537 "package upgrades or search in and display details about all packages "
538 "available for installation."
541 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
544 "<option>upgrade</option> is used to install available upgrades of all "
545 "packages currently installed on the system from the sources configured via "
546 "&sources-list;. New packages will be installed if required to statisfy "
547 "dependencies, but existing packages will never be removed. If an upgrade for "
548 "a package requires the remove of an installed package the upgrade for this "
549 "package isn't performed."
552 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
555 "<literal>full-upgrade</literal> performs the function of upgrade but will "
556 "remove currently installed packages if this is needed to upgrade the system "
560 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
565 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
568 "Performs the requested action on one or more packages specified via ®ex;, "
569 "&glob; or exact match. The requested action can be overridden for specific "
570 "packages by append a plus (+) to the package name to install this package or "
571 "a minus (-) to remove it."
574 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
577 "A specific version of a package can be selected for installation by "
578 "following the package name with an equals (=) and the version of the package "
579 "to select. Alternatively the version from a specific release can be selected "
580 "by following the package name with a forward slash (/) and codename (&debian-"
581 "stable-codename;, &debian-testing-codename;, sid …) or suite name (stable, "
582 "testing, unstable). This will also select versions from this release for "
583 "dependencies of this package if needed to satisfy the request."
586 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
589 "Removing a package removes all packaged data, but leaves usually small "
590 "(modified) user configuration files behind, in case the remove was an "
591 "accident. Just issuing an installation request for the accidentally removed "
592 "package will restore its function as before in that case. On the other hand "
593 "you can get rid of these leftovers by calling <command>purge</command> even "
594 "on already removed packages. Note that this does not affect any data or "
595 "configuration stored in your home directory."
598 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
601 "<literal>autoremove</literal> is used to remove packages that were "
602 "automatically installed to satisfy dependencies for other packages and are "
603 "now no longer needed as dependencies changed or the package(s) needing them "
604 "were removed in the meantime."
607 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
610 "You should check that the list does not include applications you have grown "
611 "to like even though they were once installed just as a dependency of another "
612 "package. You can mark such a package as manually installed by using &apt-"
613 "mark;. Packages which you have installed explicitly via <command>install</"
614 "command> are also never proposed for automatic removal."
617 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
620 msgid "(&apt-cache;)"
626 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
629 "<option>search</option> can be used to search for the given ®ex; term(s) "
630 "in the list of available packages and display matches. This can e.g. be "
631 "useful if you are looking for packages having a specific feature. If you "
632 "are looking for a package including a specific file try &apt-file;."
635 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
638 "Show information about the given package(s) including its dependencies, "
639 "installation and download size, sources the package is available from, the "
640 "description of the packages content and much more. It can e.g. be helpful to "
641 "look at this information before allowing &apt; to remove a package or while "
642 "searching for new packages to install."
645 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
647 msgid "(work-in-progress)"
650 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
653 "<option>list</option> is somewhat similar to <command>dpkg-query --list</"
654 "command> in that it can display a list of packages satisfying certain "
655 "criteria. It supports &glob; patterns for matching package names as well as "
656 "options to list installed (<option>--installed</option>), upgradeable "
657 "(<option>--upgradeable</option>) or all available (<option>--all-versions</"
661 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
664 "<literal>edit-sources</literal> lets you edit your &sources-list; files in "
665 "your preferred texteditor while also providing basic sanity checks."
668 #. type: Content of: <refentry><refsect1><title>
670 msgid "Script Usage and Differences from Other APT Tools"
673 #. type: Content of: <refentry><refsect1><para>
676 "The &apt; commandline is designed as an end-user tool and it may change "
677 "behavior between versions. While it tries not to break backward "
678 "compatibility this is not guaranteed either if a change seems beneficial for "
682 #. type: Content of: <refentry><refsect1><para>
685 "All features of &apt; are available in dedicated APT tools like &apt-get; "
686 "and &apt-cache; as well. &apt; just changes the default value of some "
687 "options (see &apt-conf; and specifically the Binary scope). So you should "
688 "prefer using these commands (potentially with some additional options "
689 "enabled) in your scripts as they keep backward compatibility as much as "
693 #. type: Content of: <refentry><refsect1><title>
694 #: apt.8.xml apt-get.8.xml apt-cache.8.xml apt-key.8.xml apt-mark.8.xml
695 #: apt-secure.8.xml apt-cdrom.8.xml apt-config.8.xml apt.conf.5.xml
696 #: apt_preferences.5.xml sources.list.5.xml apt-extracttemplates.1.xml
697 #: apt-sortpkgs.1.xml apt-ftparchive.1.xml
700 msgstr "Consulte também"
702 #. type: Content of: <refentry><refsect1><para>
705 "&apt-get;, &apt-cache;, &sources-list;, &apt-conf;, &apt-config;, The APT "
706 "User's guide in &guidesdir;, &apt-preferences;, the APT Howto."
709 #. type: Content of: <refentry><refsect1><title>
710 #: apt.8.xml apt-get.8.xml apt-cache.8.xml apt-mark.8.xml apt-cdrom.8.xml
711 #: apt-config.8.xml apt-extracttemplates.1.xml apt-sortpkgs.1.xml
712 #: apt-ftparchive.1.xml
716 #. type: Content of: <refentry><refsect1><para>
719 "<command>apt</command> returns zero on normal operation, decimal 100 on "
723 #. type: Content of: <refentry><refnamediv><refpurpose>
725 msgid "APT package handling utility -- command-line interface"
728 #. type: Content of: <refentry><refsect1><para>
731 "<command>apt-get</command> is the command-line tool for handling packages, "
732 "and may be considered the user's \"back-end\" to other tools using the APT "
733 "library. Several \"front-end\" interfaces exist, such as &aptitude;, "
734 "&synaptic; and &wajig;."
737 #. type: Content of: <refentry><refsect1><para>
738 #: apt-get.8.xml apt-cache.8.xml apt-cdrom.8.xml apt-config.8.xml
739 #: apt-ftparchive.1.xml
741 "Unless the <option>-h</option>, or <option>--help</option> option is given, "
742 "one of the commands below must be present."
745 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
748 "<literal>update</literal> is used to resynchronize the package index files "
749 "from their sources. The indexes of available packages are fetched from the "
750 "location(s) specified in <filename>/etc/apt/sources.list</filename>. For "
751 "example, when using a Debian archive, this command retrieves and scans the "
752 "<filename>Packages.gz</filename> files, so that information about new and "
753 "updated packages is available. An <literal>update</literal> should always be "
754 "performed before an <literal>upgrade</literal> or <literal>dist-upgrade</"
755 "literal>. Please be aware that the overall progress meter will be incorrect "
756 "as the size of the package files cannot be known in advance."
759 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
762 "<literal>upgrade</literal> is used to install the newest versions of all "
763 "packages currently installed on the system from the sources enumerated in "
764 "<filename>/etc/apt/sources.list</filename>. Packages currently installed "
765 "with new versions available are retrieved and upgraded; under no "
766 "circumstances are currently installed packages removed, or packages not "
767 "already installed retrieved and installed. New versions of currently "
768 "installed packages that cannot be upgraded without changing the install "
769 "status of another package will be left at their current version. An "
770 "<literal>update</literal> must be performed first so that <command>apt-get</"
771 "command> knows that new versions of packages are available."
774 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
777 "<literal>dist-upgrade</literal> in addition to performing the function of "
778 "<literal>upgrade</literal>, also intelligently handles changing dependencies "
779 "with new versions of packages; <command>apt-get</command> has a \"smart\" "
780 "conflict resolution system, and it will attempt to upgrade the most "
781 "important packages at the expense of less important ones if necessary. The "
782 "<literal>dist-upgrade</literal> command may therefore remove some packages. "
783 "The <filename>/etc/apt/sources.list</filename> file contains a list of "
784 "locations from which to retrieve desired package files. See also &apt-"
785 "preferences; for a mechanism for overriding the general settings for "
786 "individual packages."
789 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
792 "<literal>dselect-upgrade</literal> is used in conjunction with the "
793 "traditional Debian packaging front-end, &dselect;. <literal>dselect-upgrade</"
794 "literal> follows the changes made by &dselect; to the <literal>Status</"
795 "literal> field of available packages, and performs the actions necessary to "
796 "realize that state (for instance, the removal of old and the installation of "
800 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
803 "<literal>install</literal> is followed by one or more packages desired for "
804 "installation or upgrading. Each package is a package name, not a fully "
805 "qualified filename (for instance, in a Debian system, <package>apt-utils</"
806 "package> would be the argument provided, not <filename>apt-utils_&apt-"
807 "product-version;_amd64.deb</filename>). All packages required by the "
808 "package(s) specified for installation will also be retrieved and installed. "
809 "The <filename>/etc/apt/sources.list</filename> file is used to locate the "
810 "desired packages. If a hyphen is appended to the package name (with no "
811 "intervening space), the identified package will be removed if it is "
812 "installed. Similarly a plus sign can be used to designate a package to "
813 "install. These latter features may be used to override decisions made by apt-"
814 "get's conflict resolution system."
817 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
820 "A specific version of a package can be selected for installation by "
821 "following the package name with an equals and the version of the package to "
822 "select. This will cause that version to be located and selected for install. "
823 "Alternatively a specific distribution can be selected by following the "
824 "package name with a slash and the version of the distribution or the Archive "
825 "name (stable, testing, unstable)."
828 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
831 "Both of the version selection mechanisms can downgrade packages and must be "
835 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
838 "This is also the target to use if you want to upgrade one or more already-"
839 "installed packages without upgrading every package you have on your system. "
840 "Unlike the \"upgrade\" target, which installs the newest version of all "
841 "currently installed packages, \"install\" will install the newest version of "
842 "only the package(s) specified. Simply provide the name of the package(s) "
843 "you wish to upgrade, and if a newer version is available, it (and its "
844 "dependencies, as described above) will be downloaded and installed."
847 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
850 "Finally, the &apt-preferences; mechanism allows you to create an alternative "
851 "installation policy for individual packages."
854 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
857 "If no package matches the given expression and the expression contains one "
858 "of '.', '?' or '*' then it is assumed to be a POSIX regular expression, and "
859 "it is applied to all package names in the database. Any matches are then "
860 "installed (or removed). Note that matching is done by substring so 'lo.*' "
861 "matches 'how-lo' and 'lowest'. If this is undesired, anchor the regular "
862 "expression with a '^' or '$' character, or create a more specific regular "
866 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
869 "<literal>remove</literal> is identical to <literal>install</literal> except "
870 "that packages are removed instead of installed. Note that removing a package "
871 "leaves its configuration files on the system. If a plus sign is appended to "
872 "the package name (with no intervening space), the identified package will be "
873 "installed instead of removed."
876 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
879 "<literal>purge</literal> is identical to <literal>remove</literal> except "
880 "that packages are removed and purged (any configuration files are deleted "
884 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
887 "<literal>source</literal> causes <command>apt-get</command> to fetch source "
888 "packages. APT will examine the available packages to decide which source "
889 "package to fetch. It will then find and download into the current directory "
890 "the newest available version of that source package while respecting the "
891 "default release, set with the option <literal>APT::Default-Release</"
892 "literal>, the <option>-t</option> option or per package with the "
893 "<literal>pkg/release</literal> syntax, if possible."
896 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
899 "Source packages are tracked separately from binary packages via <literal>deb-"
900 "src</literal> lines in the &sources-list; file. This means that you will "
901 "need to add such a line for each repository you want to get sources from; "
902 "otherwise you will probably get either the wrong (too old/too new) source "
903 "versions or none at all."
906 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
909 "If the <option>--compile</option> option is specified then the package will "
910 "be compiled to a binary .deb using <command>dpkg-buildpackage</command> for "
911 "the architecture as defined by the <command>--host-architecture</command> "
912 "option. If <option>--download-only</option> is specified then the source "
913 "package will not be unpacked."
916 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
919 "A specific source version can be retrieved by postfixing the source name "
920 "with an equals and then the version to fetch, similar to the mechanism used "
921 "for the package files. This enables exact matching of the source package "
922 "name and version, implicitly enabling the <literal>APT::Get::Only-Source</"
926 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
929 "Note that source packages are not installed and tracked in the "
930 "<command>dpkg</command> database like binary packages; they are simply "
931 "downloaded to the current directory, like source tarballs."
934 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
937 "<literal>build-dep</literal> causes apt-get to install/remove packages in an "
938 "attempt to satisfy the build dependencies for a source package. By default "
939 "the dependencies are satisfied to build the package natively. If desired a "
940 "host-architecture can be specified with the <option>--host-architecture</"
941 "option> option instead."
944 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
947 "<literal>check</literal> is a diagnostic tool; it updates the package cache "
948 "and checks for broken dependencies."
951 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
954 "<literal>download</literal> will download the given binary package into the "
958 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
961 "<literal>clean</literal> clears out the local repository of retrieved "
962 "package files. It removes everything but the lock file from "
963 "<filename>&cachedir;/archives/</filename> and <filename>&cachedir;/archives/"
964 "partial/</filename>."
967 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
972 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
974 msgid "alias since 1.1)"
977 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
980 "Like <literal>clean</literal>, <literal>autoclean</literal> clears out the "
981 "local repository of retrieved package files. The difference is that it only "
982 "removes package files that can no longer be downloaded, and are largely "
983 "useless. This allows a cache to be maintained over a long period without it "
984 "growing out of control. The configuration option <literal>APT::Clean-"
985 "Installed</literal> will prevent installed packages from being erased if it "
989 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
992 "<literal>autoremove</literal> is used to remove packages that were "
993 "automatically installed to satisfy dependencies for other packages and are "
994 "now no longer needed."
997 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1000 "<literal>changelog</literal> tries to download the changelog of a package "
1001 "and displays it through <command>sensible-pager</command>. By default it "
1002 "displays the changelog for the version that is installed. However, you can "
1003 "specify the same options as for the <option>install</option> command."
1006 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1009 "Displays by default a deb822 formatted listing of information about all data "
1010 "files (aka index targets) <command>apt-get update</command> would download. "
1011 "Supports a <option>--format</option> option to modify the output format as "
1012 "well as accepts lines of the default output to filter the records by. The "
1013 "command is mainly used as an interface for external tools working with APT "
1014 "to get information as well as filenames for downloaded files so they can use "
1015 "them as well instead of downloading them again on their own. Detailed "
1016 "documentation is omitted here and can instead be found in the file &apt-"
1017 "acquire-additional-files; shipped by the <package>apt-doc</package> package."
1020 #. type: Content of: <refentry><refsect1><title>
1021 #: apt-get.8.xml apt-cache.8.xml apt-config.8.xml apt-extracttemplates.1.xml
1022 #: apt-sortpkgs.1.xml apt-ftparchive.1.xml
1026 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1029 "Do not consider recommended packages as a dependency for installing. "
1030 "Configuration Item: <literal>APT::Install-Recommends</literal>."
1033 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1036 "Consider suggested packages as a dependency for installing. Configuration "
1037 "Item: <literal>APT::Install-Suggests</literal>."
1040 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1043 "Download only; package files are only retrieved, not unpacked or installed. "
1044 "Configuration Item: <literal>APT::Get::Download-Only</literal>."
1047 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1050 "Fix; attempt to correct a system with broken dependencies in place. This "
1051 "option, when used with install/remove, can omit any packages to permit APT "
1052 "to deduce a likely solution. If packages are specified, these have to "
1053 "completely correct the problem. The option is sometimes necessary when "
1054 "running APT for the first time; APT itself does not allow broken package "
1055 "dependencies to exist on a system. It is possible that a system's dependency "
1056 "structure can be so corrupt as to require manual intervention (which usually "
1057 "means using <command>dpkg --remove</command> to eliminate some of the "
1058 "offending packages). Use of this option together with <option>-m</option> "
1059 "may produce an error in some situations. Configuration Item: <literal>APT::"
1060 "Get::Fix-Broken</literal>."
1063 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1066 "Ignore missing packages; if packages cannot be retrieved or fail the "
1067 "integrity check after retrieval (corrupted package files), hold back those "
1068 "packages and handle the result. Use of this option together with <option>-f</"
1069 "option> may produce an error in some situations. If a package is selected "
1070 "for installation (particularly if it is mentioned on the command line) and "
1071 "it could not be downloaded then it will be silently held back. "
1072 "Configuration Item: <literal>APT::Get::Fix-Missing</literal>."
1075 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1078 "Disables downloading of packages. This is best used with <option>--ignore-"
1079 "missing</option> to force APT to use only the .debs it has already "
1080 "downloaded. Configuration Item: <literal>APT::Get::Download</literal>."
1083 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1086 "Quiet; produces output suitable for logging, omitting progress indicators. "
1087 "More q's will produce more quiet up to a maximum of 2. You can also use "
1088 "<option>-q=#</option> to set the quiet level, overriding the configuration "
1089 "file. Note that quiet level 2 implies <option>-y</option>; you should never "
1090 "use -qq without a no-action modifier such as -d, --print-uris or -s as APT "
1091 "may decide to do something you did not expect. Configuration Item: "
1092 "<literal>quiet</literal>."
1095 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1098 "No action; perform a simulation of events that would occur based on the "
1099 "current system state but do not actually change the system. Locking will be "
1100 "disabled (<option>Debug::NoLocking</option>) so the system state could "
1101 "change while <command>apt-get</command> is running. Simulations can also be "
1102 "executed by non-root users which might not have read access to all apt "
1103 "configuration distorting the simulation. A notice expressing this warning "
1104 "is also shown by default for non-root users (<option>APT::Get::Show-User-"
1105 "Simulation-Note</option>). Configuration Item: <literal>APT::Get::Simulate</"
1109 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1112 "Simulated runs print out a series of lines, each representing a "
1113 "<command>dpkg</command> operation: configure (<literal>Conf</literal>), "
1114 "remove (<literal>Remv</literal>) or unpack (<literal>Inst</literal>). "
1115 "Square brackets indicate broken packages, and empty square brackets indicate "
1116 "breaks that are of no consequence (rare)."
1119 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1122 "Automatic yes to prompts; assume \"yes\" as answer to all prompts and run "
1123 "non-interactively. If an undesirable situation, such as changing a held "
1124 "package, trying to install a unauthenticated package or removing an "
1125 "essential package occurs then <literal>apt-get</literal> will abort. "
1126 "Configuration Item: <literal>APT::Get::Assume-Yes</literal>."
1129 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1132 "Automatic \"no\" to all prompts. Configuration Item: <literal>APT::Get::"
1133 "Assume-No</literal>."
1136 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1139 "Do not show a list of all packages that are to be upgraded. Configuration "
1140 "Item: <literal>APT::Get::Show-Upgraded</literal>."
1143 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1146 "Show full versions for upgraded and installed packages. Configuration Item: "
1147 "<literal>APT::Get::Show-Versions</literal>."
1150 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1153 "This option controls the architecture packages are built for by <command>apt-"
1154 "get source --compile</command> and how cross-builddependencies are "
1155 "satisfied. By default is it not set which means that the host architecture "
1156 "is the same as the build architecture (which is defined by <literal>APT::"
1157 "Architecture</literal>). Configuration Item: <literal>APT::Get::Host-"
1158 "Architecture</literal>."
1161 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1164 "This option controls the activated build profiles for which a source package "
1165 "is built by <command>apt-get source --compile</command> and how build "
1166 "dependencies are satisfied. By default no build profile is active. More "
1167 "than one build profile can be activated at a time by concatenating them with "
1168 "a comma. Configuration Item: <literal>APT::Build-Profiles</literal>."
1171 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1174 "Compile source packages after downloading them. Configuration Item: "
1175 "<literal>APT::Get::Compile</literal>."
1178 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1181 "Ignore package holds; this causes <command>apt-get</command> to ignore a "
1182 "hold placed on a package. This may be useful in conjunction with "
1183 "<literal>dist-upgrade</literal> to override a large number of undesired "
1184 "holds. Configuration Item: <literal>APT::Ignore-Hold</literal>."
1187 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1190 "Allow installing new packages when used in conjunction with "
1191 "<literal>upgrade</literal>. This is useful if the update of a installed "
1192 "package requires new dependencies to be installed. Instead of holding the "
1193 "package back <literal>upgrade</literal> will upgrade the package and install "
1194 "the new dependencies. Note that <literal>upgrade</literal> with this option "
1195 "will never remove packages, only allow adding new ones. Configuration Item: "
1196 "<literal>APT::Get::Upgrade-Allow-New</literal>."
1199 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1202 "Do not upgrade packages; when used in conjunction with <literal>install</"
1203 "literal>, <literal>no-upgrade</literal> will prevent packages on the command "
1204 "line from being upgraded if they are already installed. Configuration Item: "
1205 "<literal>APT::Get::Upgrade</literal>."
1208 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1211 "Do not install new packages; when used in conjunction with <literal>install</"
1212 "literal>, <literal>only-upgrade</literal> will install upgrades for already "
1213 "installed packages only and ignore requests to install new packages. "
1214 "Configuration Item: <literal>APT::Get::Only-Upgrade</literal>."
1217 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1220 "This is a dangerous option that will cause apt to continue without prompting "
1221 "if it is doing downgrades. It should not be used except in very special "
1222 "situations. Using it can potentially destroy your system! Configuration "
1223 "Item: <literal>APT::Get::allow-downgrades</literal>. Introduced in APT 1.1."
1226 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1229 "Force yes; this is a dangerous option that will cause apt to continue "
1230 "without prompting if it is removing essentials. It should not be used except "
1231 "in very special situations. Using it can potentially destroy your system! "
1232 "Configuration Item: <literal>APT::Get::allow-remove-essential</literal>. "
1233 "Introduced in APT 1.1."
1236 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1239 "Force yes; this is a dangerous option that will cause apt to continue "
1240 "without prompting if it is changing held packages. It should not be used "
1241 "except in very special situations. Using it can potentially destroy your "
1242 "system! Configuration Item: <literal>APT::Get::allow-change-held-packages</"
1243 "literal>. Introduced in APT 1.1."
1246 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1249 "Force yes; this is a dangerous option that will cause apt to continue "
1250 "without prompting if it is doing something potentially harmful. It should "
1251 "not be used except in very special situations. Using <literal>force-yes</"
1252 "literal> can potentially destroy your system! Configuration Item: "
1253 "<literal>APT::Get::force-yes</literal>. This is deprecated and replaced by "
1254 "<option>--allow-downgrades</option>, <option>--allow-remove-essential</"
1255 "option>, <option>--allow-change-held-packages</option> in 1.1."
1258 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1261 "Instead of fetching the files to install their URIs are printed. Each URI "
1262 "will have the path, the destination file name, the size and the expected MD5 "
1263 "hash. Note that the file name to write to will not always match the file "
1264 "name on the remote site! This also works with the <literal>source</literal> "
1265 "and <literal>update</literal> commands. When used with the <literal>update</"
1266 "literal> command the MD5 and size are not included, and it is up to the user "
1267 "to decompress any compressed files. Configuration Item: <literal>APT::Get::"
1268 "Print-URIs</literal>."
1271 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1274 "Use purge instead of remove for anything that would be removed. An asterisk "
1275 "(\"*\") will be displayed next to packages which are scheduled to be purged. "
1276 "<option>remove --purge</option> is equivalent to the <option>purge</option> "
1277 "command. Configuration Item: <literal>APT::Get::Purge</literal>."
1280 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1283 "Re-install packages that are already installed and at the newest version. "
1284 "Configuration Item: <literal>APT::Get::ReInstall</literal>."
1287 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1290 "This option is on by default; use <literal>--no-list-cleanup</literal> to "
1291 "turn it off. When it is on, <command>apt-get</command> will automatically "
1292 "manage the contents of <filename>&statedir;/lists</filename> to ensure that "
1293 "obsolete files are erased. The only reason to turn it off is if you "
1294 "frequently change your sources list. Configuration Item: <literal>APT::Get::"
1295 "List-Cleanup</literal>."
1298 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1301 "This option controls the default input to the policy engine; it creates a "
1302 "default pin at priority 990 using the specified release string. This "
1303 "overrides the general settings in <filename>/etc/apt/preferences</"
1304 "filename>. Specifically pinned packages are not affected by the value of "
1305 "this option. In short, this option lets you have simple control over which "
1306 "distribution packages will be retrieved from. Some common examples might be "
1307 "<option>-t '2.1*'</option>, <option>-t unstable</option> or <option>-t sid</"
1308 "option>. Configuration Item: <literal>APT::Default-Release</literal>; see "
1309 "also the &apt-preferences; manual page."
1312 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1315 "Only perform operations that are 'trivial'. Logically this can be considered "
1316 "related to <option>--assume-yes</option>; where <option>--assume-yes</"
1317 "option> will answer yes to any prompt, <option>--trivial-only</option> will "
1318 "answer no. Configuration Item: <literal>APT::Get::Trivial-Only</literal>."
1321 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1324 "If any packages are to be removed apt-get immediately aborts without "
1325 "prompting. Configuration Item: <literal>APT::Get::Remove</literal>."
1328 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1331 "If the command is either <literal>install</literal> or <literal>remove</"
1332 "literal>, then this option acts like running the <literal>autoremove</"
1333 "literal> command, removing unused dependency packages. Configuration Item: "
1334 "<literal>APT::Get::AutomaticRemove</literal>."
1337 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1340 "Only has meaning for the <literal>source</literal> and <literal>build-dep</"
1341 "literal> commands. Indicates that the given source names are not to be "
1342 "mapped through the binary table. This means that if this option is "
1343 "specified, these commands will only accept source package names as "
1344 "arguments, rather than accepting binary package names and looking up the "
1345 "corresponding source package. Configuration Item: <literal>APT::Get::Only-"
1349 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1352 "Download only the diff, dsc, or tar file of a source archive. Configuration "
1353 "Item: <literal>APT::Get::Diff-Only</literal>, <literal>APT::Get::Dsc-Only</"
1354 "literal>, and <literal>APT::Get::Tar-Only</literal>."
1357 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1360 "Only process architecture-dependent build-dependencies. Configuration Item: "
1361 "<literal>APT::Get::Arch-Only</literal>."
1364 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1367 "Ignore if packages can't be authenticated and don't prompt about it. This "
1368 "can be useful while working with local repositories, but is a huge security "
1369 "risk if data authenticity isn't ensured in another way by the user itself. "
1370 "The usage of the <option>Trusted</option> option for &sources-list; entries "
1371 "should usually be preferred over this global override. Configuration Item: "
1372 "<literal>APT::Get::AllowUnauthenticated</literal>."
1375 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1378 "Forbid the update command to acquire unverifiable data from configured "
1379 "sources. APT will fail at the update command for repositories without valid "
1380 "cryptographically signatures. See also &apt-secure; for details on the "
1381 "concept and the implications. Configuration Item: <literal>Acquire::"
1382 "AllowInsecureRepositories</literal>."
1385 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1388 "Show user friendly progress information in the terminal window when packages "
1389 "are installed, upgraded or removed. For a machine parsable version of this "
1390 "data see README.progress-reporting in the apt doc directory. Configuration "
1391 "Item: <literal>Dpkg::Progress</literal> and <literal>Dpkg::Progress-Fancy</"
1395 #. type: Content of: <refentry><refsect1><title>
1396 #: apt-get.8.xml apt-cache.8.xml apt-key.8.xml apt-mark.8.xml apt.conf.5.xml
1397 #: apt_preferences.5.xml
1401 #. type: Content of: <refentry><refsect1><para>
1404 "&apt-cache;, &apt-cdrom;, &dpkg;, &sources-list;, &apt-conf;, &apt-config;, "
1405 "&apt-secure;, The APT User's guide in &guidesdir;, &apt-preferences;, the "
1409 #. type: Content of: <refentry><refsect1><para>
1412 "<command>apt-get</command> returns zero on normal operation, decimal 100 on "
1416 #. type: Content of: <refentry><refnamediv><refpurpose>
1418 msgid "query the APT cache"
1421 #. type: Content of: <refentry><refsect1><para>
1424 "<command>apt-cache</command> performs a variety of operations on APT's "
1425 "package cache. <command>apt-cache</command> does not manipulate the state of "
1426 "the system but does provide operations to search and generate interesting "
1427 "output from the package metadata. The metadata is acquired and updated via "
1428 "the 'update' command of e.g. <command>apt-get</command>, so that it can be "
1429 "outdated if the last update is too long ago, but in exchange <command>apt-"
1430 "cache</command> works independently of the availability of the configured "
1431 "sources (e.g. offline)."
1434 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1437 "<literal>gencaches</literal> creates APT's package cache. This is done "
1438 "implicitly by all commands needing this cache if it is missing or outdated."
1441 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option><replaceable>
1443 msgid "&synopsis-pkg;"
1446 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1449 "<literal>showpkg</literal> displays information about the packages listed on "
1450 "the command line. Remaining arguments are package names. The available "
1451 "versions and reverse dependencies of each package listed are listed, as well "
1452 "as forward dependencies for each version. Forward (normal) dependencies are "
1453 "those packages upon which the package in question depends; reverse "
1454 "dependencies are those packages that depend upon the package in question. "
1455 "Thus, forward dependencies must be satisfied for a package, but reverse "
1456 "dependencies need not be. For instance, <command>apt-cache showpkg "
1457 "libreadline2</command> would produce output similar to the following:"
1460 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><informalexample><programlisting>
1464 "Package: libreadline2\n"
1465 "Versions: 2.1-12(/var/state/apt/lists/foo_Packages),\n"
1466 "Reverse Depends: \n"
1467 " libreadlineg2,libreadline2\n"
1468 " libreadline2-altdev,libreadline2\n"
1470 "2.1-12 - libc5 (2 5.4.0-0) ncurses3.0 (0 (null))\n"
1473 "Reverse Provides: \n"
1476 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1479 "Thus it may be seen that libreadline2, version 2.1-12, depends on libc5 and "
1480 "ncurses3.0 which must be installed for libreadline2 to work. In turn, "
1481 "libreadlineg2 and libreadline2-altdev depend on libreadline2. If "
1482 "libreadline2 is installed, libc5 and ncurses3.0 (and ldso) must also be "
1483 "installed; libreadlineg2 and libreadline2-altdev do not have to be "
1484 "installed. For the specific meaning of the remainder of the output it is "
1485 "best to consult the apt source code."
1488 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1491 "<literal>stats</literal> displays some statistics about the cache. No "
1492 "further arguments are expected. Statistics reported are:"
1495 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1498 "<literal>Total package names</literal> is the number of package names found "
1502 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1505 "<literal>Normal packages</literal> is the number of regular, ordinary "
1506 "package names; these are packages that bear a one-to-one correspondence "
1507 "between their names and the names used by other packages for them in "
1508 "dependencies. The majority of packages fall into this category."
1511 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1514 "<literal>Pure virtual packages</literal> is the number of packages that "
1515 "exist only as a virtual package name; that is, packages only \"provide\" the "
1516 "virtual package name, and no package actually uses the name. For instance, "
1517 "\"mail-transport-agent\" in the Debian system is a pure virtual package; "
1518 "several packages provide \"mail-transport-agent\", but there is no package "
1519 "named \"mail-transport-agent\"."
1522 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1525 "<literal>Single virtual packages</literal> is the number of packages with "
1526 "only one package providing a particular virtual package. For example, in the "
1527 "Debian system, \"X11-text-viewer\" is a virtual package, but only one "
1528 "package, xless, provides \"X11-text-viewer\"."
1531 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1534 "<literal>Mixed virtual packages</literal> is the number of packages that "
1535 "either provide a particular virtual package or have the virtual package name "
1536 "as the package name. For instance, in the Debian system, \"debconf\" is both "
1537 "an actual package, and provided by the debconf-tiny package."
1540 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1543 "<literal>Missing</literal> is the number of package names that were "
1544 "referenced in a dependency but were not provided by any package. Missing "
1545 "packages may be an evidence if a full distribution is not accessed, or if a "
1546 "package (real or virtual) has been dropped from the distribution. Usually "
1547 "they are referenced from Conflicts or Breaks statements."
1550 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1553 "<literal>Total distinct</literal> versions is the number of package versions "
1554 "found in the cache. If more than one distribution is being accessed (for "
1555 "instance, \"stable\" and \"unstable\"), this value can be considerably "
1556 "larger than the number of total package names."
1559 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><itemizedlist><listitem><para>
1562 "<literal>Total dependencies</literal> is the number of dependency "
1563 "relationships claimed by all of the packages in the cache."
1566 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1569 "<literal>showsrc</literal> displays all the source package records that "
1570 "match the given package names. All versions are shown, as well as all "
1571 "records that declare the name to be a binary package. Use <option>--only-"
1572 "source</option> to display only source package names."
1575 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1578 "<literal>dump</literal> shows a short listing of every package in the cache. "
1579 "It is primarily for debugging."
1582 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1585 "<literal>dumpavail</literal> prints out an available list to stdout. This is "
1586 "suitable for use with &dpkg; and is used by the &dselect; method."
1589 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1592 "<literal>unmet</literal> displays a summary of all unmet dependencies in the "
1596 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1599 "<literal>show</literal> performs a function similar to <command>dpkg --print-"
1600 "avail</command>; it displays the package records for the named packages."
1603 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option><replaceable>
1605 msgid "&synopsis-regex;"
1608 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1611 "<literal>search</literal> performs a full text search on all available "
1612 "package lists for the POSIX regex pattern given, see ®ex;. It searches "
1613 "the package names and the descriptions for an occurrence of the regular "
1614 "expression and prints out the package name and the short description, "
1615 "including virtual package names. If <option>--full</option> is given then "
1616 "output identical to <literal>show</literal> is produced for each matched "
1617 "package, and if <option>--names-only</option> is given then the long "
1618 "description is not searched, only the package name and provided packages are."
1621 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1624 "Separate arguments can be used to specify multiple search patterns that are "
1628 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1631 "<literal>depends</literal> shows a listing of each dependency a package has "
1632 "and all the possible other packages that can fulfill that dependency."
1635 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1638 "<literal>rdepends</literal> shows a listing of each reverse dependency a "
1642 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1645 msgid "<optional><replaceable>&synopsis-prefix;</replaceable></optional>"
1647 "<programlisting>\n"
1648 "apt-get install <replaceable>pacote</replaceable>/testing\n"
1650 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1653 "This command prints the name of each package APT knows. The optional "
1654 "argument is a prefix match to filter the name list. The output is suitable "
1655 "for use in a shell tab complete function and the output is generated "
1656 "extremely quickly. This command is best used with the <option>--generate</"
1660 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1663 "Note that a package which APT knows of is not necessarily available to "
1664 "download, installable or installed, e.g. virtual packages are also listed in "
1665 "the generated list."
1668 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1671 "<literal>dotty</literal> takes a list of packages on the command line and "
1672 "generates output suitable for use by dotty from the <ulink url=\"http://www."
1673 "research.att.com/sw/tools/graphviz/\">GraphViz</ulink> package. The result "
1674 "will be a set of nodes and edges representing the relationships between the "
1675 "packages. By default the given packages will trace out all dependent "
1676 "packages; this can produce a very large graph. To limit the output to only "
1677 "the packages listed on the command line, set the <literal>APT::Cache::"
1678 "GivenOnly</literal> option."
1681 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1684 "The resulting nodes will have several shapes; normal packages are boxes, "
1685 "pure virtual packages are triangles, mixed virtual packages are diamonds, "
1686 "missing packages are hexagons. Orange boxes mean recursion was stopped (leaf "
1687 "packages), blue lines are pre-depends, green lines are conflicts."
1690 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1692 msgid "Caution, dotty cannot graph larger sets of packages."
1695 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1698 "The same as <literal>dotty</literal>, only for xvcg from the <ulink url="
1699 "\"http://rw4.cs.uni-sb.de/users/sander/html/gsvcg1.html\">VCG tool</ulink>."
1702 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1705 msgid "<optional><replaceable>&synopsis-pkg;</replaceable>…</optional>"
1707 "<programlisting>\n"
1708 "apt-get install <replaceable>pacote</replaceable>/testing\n"
1710 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1713 "<literal>policy</literal> is meant to help debug issues relating to the "
1714 "preferences file. With no arguments it will print out the priorities of each "
1715 "source. Otherwise it prints out detailed information about the priority "
1716 "selection of the named package."
1719 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1722 "<literal>apt-cache</literal>'s <literal>madison</literal> command attempts "
1723 "to mimic the output format and a subset of the functionality of the Debian "
1724 "archive management tool, <literal>madison</literal>. It displays available "
1725 "versions of a package in a tabular format. Unlike the original "
1726 "<literal>madison</literal>, it can only display information for the "
1727 "architecture for which APT has retrieved package lists (<literal>APT::"
1728 "Architecture</literal>)."
1731 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1734 "Select the file to store the package cache. The package cache is the primary "
1735 "cache used by all operations. Configuration Item: <literal>Dir::Cache::"
1736 "pkgcache</literal>."
1739 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1742 "Select the file to store the source cache. The source is used only by "
1743 "<literal>gencaches</literal> and it stores a parsed version of the package "
1744 "information from remote sources. When building the package cache the source "
1745 "cache is used to avoid reparsing all of the package files. Configuration "
1746 "Item: <literal>Dir::Cache::srcpkgcache</literal>."
1749 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1752 "Quiet; produces output suitable for logging, omitting progress indicators. "
1753 "More q's will produce more quietness up to a maximum of 2. You can also use "
1754 "<option>-q=#</option> to set the quietness level, overriding the "
1755 "configuration file. Configuration Item: <literal>quiet</literal>."
1758 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1761 "Print only important dependencies; for use with <literal>unmet</literal> and "
1762 "<literal>depends</literal>. Causes only Depends and Pre-Depends relations to "
1763 "be printed. Configuration Item: <literal>APT::Cache::Important</literal>."
1766 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1769 "Per default the <command>depends</command> and <command>rdepends</command> "
1770 "print all dependencies. This can be tweaked with these flags which will omit "
1771 "the specified dependency type. Configuration Item: <literal>APT::Cache::"
1772 "Show<replaceable>DependencyType</replaceable></literal> e.g. <literal>APT::"
1773 "Cache::ShowRecommends</literal>."
1776 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1779 "Per default <command>depends</command> and <command>rdepends</command> print "
1780 "only dependencies explicitly expressed in the metadata. With this flag it "
1781 "will also show dependencies implicitly added based on the encountered data. "
1782 "A <literal>Conflicts: foo</literal> e.g. expresses implicitly that this "
1783 "package also conflicts with the package foo from any other architecture. "
1784 "Configuration Item: <literal>APT::Cache::ShowImplicit</literal>."
1787 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1790 "Print full package records when searching. Configuration Item: "
1791 "<literal>APT::Cache::ShowFull</literal>."
1794 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1797 "Print full records for all available versions. This is the default; to turn "
1798 "it off, use <option>--no-all-versions</option>. If <option>--no-all-"
1799 "versions</option> is specified, only the candidate version will be displayed "
1800 "(the one which would be selected for installation). This option is only "
1801 "applicable to the <literal>show</literal> command. Configuration Item: "
1802 "<literal>APT::Cache::AllVersions</literal>."
1805 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1808 "Perform automatic package cache regeneration, rather than use the cache as "
1809 "it is. This is the default; to turn it off, use <option>--no-generate</"
1810 "option>. Configuration Item: <literal>APT::Cache::Generate</literal>."
1813 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1816 "Only search on the package and provided package names, not the long "
1817 "descriptions. Configuration Item: <literal>APT::Cache::NamesOnly</literal>."
1820 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1823 "Make <literal>pkgnames</literal> print all names, including virtual packages "
1824 "and missing dependencies. Configuration Item: <literal>APT::Cache::"
1825 "AllNames</literal>."
1828 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1831 "Make <literal>depends</literal> and <literal>rdepends</literal> recursive so "
1832 "that all packages mentioned are printed once. Configuration Item: "
1833 "<literal>APT::Cache::RecurseDepends</literal>."
1836 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1839 "Limit the output of <literal>depends</literal> and <literal>rdepends</"
1840 "literal> to packages which are currently installed. Configuration Item: "
1841 "<literal>APT::Cache::Installed</literal>."
1844 #. type: Content of: <refentry><refsect1><para>
1846 msgid "&apt-conf;, &sources-list;, &apt-get;"
1849 #. type: Content of: <refentry><refsect1><para>
1852 "<command>apt-cache</command> returns zero on normal operation, decimal 100 "
1856 #. type: Content of: <refentry><refnamediv><refpurpose>
1858 msgid "APT key management utility"
1861 #. type: Content of: <refentry><refsect1><para>
1864 "<command>apt-key</command> is used to manage the list of keys used by apt to "
1865 "authenticate packages. Packages which have been authenticated using these "
1866 "keys will be considered trusted."
1869 #. type: Content of: <refentry><refsect1><title>
1874 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1877 "Add a new key to the list of trusted keys. The key is read from the "
1878 "filename given with the parameter &synopsis-param-filename; or if the "
1879 "filename is <literal>-</literal> from standard input."
1882 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1885 "It is critical that keys added manually via <command>apt-key</command> are "
1886 "verified to belong to the owner of the repositories they claim to be for "
1887 "otherwise the &apt-secure; infrastructure is completely undermined."
1890 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1892 msgid "Remove a key from the list of trusted keys."
1895 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1897 msgid "Output the key &synopsis-param-keyid; to standard output."
1900 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1902 msgid "Output all trusted keys to standard output."
1905 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1907 msgid "List trusted keys."
1910 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1912 msgid "List fingerprints of trusted keys."
1915 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1918 "Pass advanced options to gpg. With <command>adv --recv-key</command> you can "
1919 "e.g. download key from keyservers directly into the the trusted set of keys. "
1920 "Note that there are <emphasis>no</emphasis> checks performed, so it is easy "
1921 "to completely undermine the &apt-secure; infrastructure if used without care."
1924 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1927 "Update the local keyring with the archive keyring and remove from the local "
1928 "keyring the archive keys which are no longer valid. The archive keyring is "
1929 "shipped in the <literal>archive-keyring</literal> package of your "
1930 "distribution, e.g. the &keyring-package; package in &keyring-distro;."
1933 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1936 "Perform an update working similarly to the <command>update</command> command "
1937 "above, but get the archive keyring from a URI instead and validate it "
1938 "against a master key. This requires an installed &wget; and an APT build "
1939 "configured to have a server to fetch from and a master keyring to validate. "
1940 "APT in Debian does not support this command, relying on <command>update</"
1941 "command> instead, but Ubuntu's APT does."
1944 #. type: Content of: <refentry><refsect1><title>
1945 #: apt-key.8.xml apt-mark.8.xml apt-cdrom.8.xml
1949 #. type: Content of: <refentry><refsect1><para>
1952 "Note that options need to be defined before the commands described in the "
1956 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1959 "With this option it is possible to specify a particular keyring file the "
1960 "command should operate on. The default is that a command is executed on the "
1961 "<filename>trusted.gpg</filename> file as well as on all parts in the "
1962 "<filename>trusted.gpg.d</filename> directory, though <filename>trusted.gpg</"
1963 "filename> is the primary keyring which means that e.g. new keys are added to "
1967 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1970 msgid "<filename>/etc/apt/trustdb.gpg</filename>"
1971 msgstr "<filename>/etc/apt.conf</>"
1973 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1975 msgid "Local trust database of archive keys."
1978 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1980 msgid "&keyring-filename;"
1983 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1985 msgid "Keyring of &keyring-distro; archive trusted keys."
1988 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
1990 msgid "&keyring-removed-filename;"
1993 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
1995 msgid "Keyring of &keyring-distro; archive removed trusted keys."
1998 #. type: Content of: <refentry><refsect1><para>
2001 msgid "&apt-get;, &apt-secure;"
2002 msgstr "&apt-get; &apt-cache; &apt-conf; &sources-list;"
2004 #. type: Content of: <refentry><refnamediv><refpurpose>
2006 msgid "show, set and unset various settings for a package"
2009 #. type: Content of: <refentry><refsect1><para>
2012 "<command>apt-mark</command> can be used as a unified front-end to set "
2013 "various settings for a package, such as marking a package as being "
2014 "automatically/manually installed or changing <command>dpkg</command> "
2015 "selections such as hold, install, deinstall and purge which are respected e."
2016 "g. by <command>apt-get dselect-upgrade</command> or <command>aptitude</"
2020 #. type: Content of: <refentry><refsect1><title>
2022 msgid "Automatically and Manually Installed Packages"
2025 #. type: Content of: <refentry><refsect1><para>
2028 "When you request that a package is installed, and as a result other packages "
2029 "are installed to satisfy its dependencies, the dependencies are marked as "
2030 "being automatically installed, while the package you installed explicitly is "
2031 "marked as manually installed. Once an automatically installed package is no "
2032 "longer depended on by any manually installed package it is considered no "
2033 "longer needed and e.g. <command>apt-get</command> or <command>aptitude</"
2034 "command> will at least suggest removing them."
2037 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2040 "<literal>auto</literal> is used to mark a package as being automatically "
2041 "installed, which will cause the package to be removed when no more manually "
2042 "installed packages depend on this package."
2045 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2048 "<literal>manual</literal> is used to mark a package as being manually "
2049 "installed, which will prevent the package from being automatically removed "
2050 "if no other packages depend on it."
2053 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2056 "<literal>showauto</literal> is used to print a list of automatically "
2057 "installed packages with each package on a new line. All automatically "
2058 "installed packages will be listed if no package is given. If packages are "
2059 "given only those which are automatically installed will be shown."
2062 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2065 "<literal>showmanual</literal> can be used in the same way as "
2066 "<literal>showauto</literal> except that it will print a list of manually "
2067 "installed packages instead."
2070 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
2073 "Read/Write package stats from the filename given with the parameter "
2074 "&synopsis-param-filename; instead of from the default location, which is "
2075 "<filename>extended_status</filename> in the directory defined by the "
2076 "Configuration Item: <literal>Dir::State</literal>."
2079 #. type: Content of: <refentry><refsect1><title>
2081 msgid "Prevent Changes for a Package"
2084 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2087 "<literal>hold</literal> is used to mark a package as held back, which will "
2088 "prevent the package from being automatically installed, upgraded or removed."
2091 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2094 "<literal>unhold</literal> is used to cancel a previously set hold on a "
2095 "package to allow all actions again."
2098 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2101 "<literal>showhold</literal> is used to print a list of packages on hold in "
2102 "the same way as for the other show commands."
2105 #. type: Content of: <refentry><refsect1><title>
2107 msgid "Schedule Packages for Install, Remove and Purge"
2110 #. type: Content of: <refentry><refsect1><para>
2113 "Some front-ends like <command>apt-get dselect-upgrade</command> can be used "
2114 "to apply previously scheduled changes to the install state of packages. Such "
2115 "changes can be scheduled with the <option>install</option>, <option>remove</"
2116 "option> (also known as <option>deinstall</option>) and <option>purge</"
2117 "option> commands. Packages with a specific selection can be displayed with "
2118 "<option>showinstall</option>, <option>showremove</option> and "
2119 "<option>showpurge</option> respectively. More information about these so "
2120 "called dpkg selections can be found in &dpkg;."
2123 #. type: Content of: <refentry><refsect1><para>
2126 "<command>apt-mark</command> returns zero on normal operation, non-zero on "
2130 #. type: Content of: <refentry><refnamediv><refpurpose>
2132 msgid "Archive authentication support for APT"
2135 #. type: Content of: <refentry><refsect1><para>
2138 "Starting with version 0.6, <command>APT</command> contains code that does "
2139 "signature checking of the Release file for all repositories. This ensures "
2140 "that data like packages in the archive can't be modified by people who have "
2141 "no access to the Release file signing key. Starting with version 1.1 "
2142 "<command>APT</command> requires repositories to provide recent "
2143 "authentication information for unimpeded usage of the repository."
2146 #. type: Content of: <refentry><refsect1><para>
2149 "If an archive has an unsigned Release file or no Release file at all current "
2150 "APT versions will refuse to download data from them by default in "
2151 "<command>update</command> operations and even if forced to download front-"
2152 "ends like &apt-get; will require explicit confirmation if an installation "
2153 "request includes a package from such an unauthenticated archive."
2156 #. type: Content of: <refentry><refsect1><para>
2159 "As a temporary exception &apt-get; (not &apt;!) raises warnings only if it "
2160 "encounters unauthenticated archives to give a slightly longer grace period "
2161 "on this backward compatibility effecting change. This exception will be "
2162 "removed in future releases and you can opt-out of this grace period by "
2163 "setting the configuration option <option>Binary::apt-get::Acquire::"
2164 "AllowInsecureRepositories</option> to <literal>false</literal> or <option>--"
2165 "no-allow-insecure-repositories</option> on the command line."
2168 #. type: Content of: <refentry><refsect1><para>
2171 "You can force all APT clients to raise only warnings by setting the "
2172 "configuration option <option>Acquire::AllowInsecureRepositories</option> to "
2173 "<literal>true</literal>. Individual repositories can also be allowed to be "
2174 "insecure via the &sources-list; option <literal>allow-insecure=yes</"
2175 "literal>. Note that insecure repositories are strongly discouraged and all "
2176 "options to force apt to continue supporting them will eventually be "
2177 "removed. Users also have the <option>Trusted</option> option available to "
2178 "disable even the warnings, but be sure to understand the implications as "
2179 "detailed in &sources-list;."
2182 #. type: Content of: <refentry><refsect1><para>
2185 "A repository which previously was authentication but would loose this state "
2186 "in an <command>update</command> operation raises an error in all APT clients "
2187 "irrespective of the option to allow or forbid usage of insecure "
2188 "repositories. The error can be overcome by additionally setting "
2189 "<option>Acquire::AllowDowngradeToInsecureRepositories</option> to "
2190 "<literal>true</literal> or for Individual repositories with the &sources-"
2191 "list; option <literal>allow-downgrade-to-insecure=yes</literal>."
2194 #. type: Content of: <refentry><refsect1><para>
2197 "Note: All APT-based package management front-ends like &apt-get;, &aptitude; "
2198 "and &synaptic; support this authentication feature, so this manpage uses "
2199 "<literal>APT</literal> to refer to them all for simplicity only."
2202 #. type: Content of: <refentry><refsect1><title>
2204 msgid "Trusted Repositories"
2207 #. type: Content of: <refentry><refsect1><para>
2210 "The chain of trust from an APT archive to the end user is made up of several "
2211 "steps. <command>apt-secure</command> is the last step in this chain; "
2212 "trusting an archive does not mean that you trust its packages not to contain "
2213 "malicious code, but means that you trust the archive maintainer. It's the "
2214 "archive maintainer's responsibility to ensure that the archive's integrity "
2218 #. type: Content of: <refentry><refsect1><para>
2221 "apt-secure does not review signatures at a package level. If you require "
2222 "tools to do this you should look at <command>debsig-verify</command> and "
2223 "<command>debsign</command> (provided in the debsig-verify and devscripts "
2224 "packages respectively)."
2227 #. type: Content of: <refentry><refsect1><para>
2230 "The chain of trust in Debian starts (e.g.) when a maintainer uploads a new "
2231 "package or a new version of a package to the Debian archive. In order to "
2232 "become effective, this upload needs to be signed by a key contained in one "
2233 "of the Debian package maintainer keyrings (available in the debian-keyring "
2234 "package). Maintainers' keys are signed by other maintainers following pre-"
2235 "established procedures to ensure the identity of the key holder. Similar "
2236 "procedures exist in all Debian-based distributions."
2239 #. type: Content of: <refentry><refsect1><para>
2242 "Once the uploaded package is verified and included in the archive, the "
2243 "maintainer signature is stripped off, and checksums of the package are "
2244 "computed and put in the Packages file. The checksums of all of the Packages "
2245 "files are then computed and put into the Release file. The Release file is "
2246 "then signed by the archive key for this &keyring-distro; release, and "
2247 "distributed alongside the packages and the Packages files on &keyring-"
2248 "distro; mirrors. The keys are in the &keyring-distro; archive keyring "
2249 "available in the &keyring-package; package."
2252 #. type: Content of: <refentry><refsect1><para>
2255 "End users can check the signature of the Release file, extract a checksum of "
2256 "a package from it and compare it with the checksum of the package they "
2257 "downloaded by hand - or rely on APT doing this automatically."
2260 #. type: Content of: <refentry><refsect1><para>
2263 "Notice that this is distinct from checking signatures on a per package "
2264 "basis. It is designed to prevent two possible attacks:"
2267 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2270 "<literal>Network \"man in the middle\" attacks</literal>. Without signature "
2271 "checking, malicious agents can introduce themselves into the package "
2272 "download process and provide malicious software either by controlling a "
2273 "network element (router, switch, etc.) or by redirecting traffic to a rogue "
2274 "server (through ARP or DNS spoofing attacks)."
2277 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2280 "<literal>Mirror network compromise</literal>. Without signature checking, a "
2281 "malicious agent can compromise a mirror host and modify the files in it to "
2282 "propagate malicious software to all users downloading packages from that "
2286 #. type: Content of: <refentry><refsect1><para>
2289 "However, it does not defend against a compromise of the master server itself "
2290 "(which signs the packages) or against a compromise of the key used to sign "
2291 "the Release files. In any case, this mechanism can complement a per-package "
2295 #. type: Content of: <refentry><refsect1><title>
2297 msgid "User Configuration"
2300 #. type: Content of: <refentry><refsect1><para>
2303 "<command>apt-key</command> is the program that manages the list of keys used "
2304 "by APT to trust repositories. It can be used to add or remove keys as well "
2305 "as list the trusted keys. Limiting which key(s) are able to sign which "
2306 "archive is possible via the <option>Signed-By</option> in &sources-list;."
2309 #. type: Content of: <refentry><refsect1><para>
2312 "Note that a default installation already contains all keys to securely "
2313 "acquire packages from the default repositories, so fiddling with "
2314 "<command>apt-key</command> is only needed if third-party repositories are "
2318 #. type: Content of: <refentry><refsect1><para>
2321 "In order to add a new key you need to first download it (you should make "
2322 "sure you are using a trusted communication channel when retrieving it), add "
2323 "it with <command>apt-key</command> and then run <command>apt-get update</"
2324 "command> so that apt can download and verify the <filename>InRelease</"
2325 "filename> or <filename>Release.gpg</filename> files from the archives you "
2329 #. type: Content of: <refentry><refsect1><title>
2331 msgid "Archive Configuration"
2334 #. type: Content of: <refentry><refsect1><para>
2337 "If you want to provide archive signatures in an archive under your "
2338 "maintenance you have to:"
2341 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2344 "<emphasis>Create a toplevel Release file</emphasis>, if it does not exist "
2345 "already. You can do this by running <command>apt-ftparchive release</"
2346 "command> (provided in apt-utils)."
2349 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2352 "<emphasis>Sign it</emphasis>. You can do this by running <command>gpg --"
2353 "clearsign -o InRelease Release</command> and <command>gpg -abs -o Release."
2354 "gpg Release</command>."
2357 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2360 "<emphasis>Publish the key fingerprint</emphasis>, so that your users will "
2361 "know what key they need to import in order to authenticate the files in the "
2362 "archive. It is best to ship your key in its own keyring package like "
2363 "&keyring-distro; does with &keyring-package; to be able to distribute "
2364 "updates and key transitions automatically later."
2367 #. type: Content of: <refentry><refsect1><itemizedlist><listitem><para>
2370 "<emphasis>Provide instructions on how to add your archive and key</"
2371 "emphasis>. If your users can't acquire your key securely the chain of trust "
2372 "described above is broken. How you can help users add your key depends on "
2373 "your archive and target audience ranging from having your keyring package "
2374 "included in another archive users already have configured (like the default "
2375 "repositories of their distribution) to leveraging the web of trust."
2378 #. type: Content of: <refentry><refsect1><para>
2381 "Whenever the contents of the archive change (new packages are added or "
2382 "removed) the archive maintainer has to follow the first two steps outlined "
2386 #. type: Content of: <refentry><refsect1><para>
2389 "&apt-conf;, &apt-get;, &sources-list;, &apt-key;, &apt-ftparchive;, "
2390 "&debsign;, &debsig-verify;, &gpg;"
2393 #. type: Content of: <refentry><refsect1><para>
2396 "For more background information you might want to review the <ulink url="
2397 "\"https://www.debian.org/doc/manuals/securing-debian-howto/ch7\">Debian "
2398 "Security Infrastructure</ulink> chapter of the Securing Debian Manual (also "
2399 "available in the harden-doc package) and the <ulink url=\"http://www."
2400 "cryptnet.net/fdp/crypto/strong_distro.html\" >Strong Distribution HOWTO</"
2401 "ulink> by V. Alex Brennen."
2404 #. type: Content of: <refentry><refsect1><title>
2406 msgid "Manpage Authors"
2409 #. type: Content of: <refentry><refsect1><para>
2412 "This man-page is based on the work of Javier Fernández-Sanguino Peña, Isaac "
2413 "Jones, Colin Walters, Florian Weimer and Michael Vogt."
2416 #. type: Content of: <refentry><refnamediv><refpurpose>
2418 msgid "APT CD-ROM management utility"
2421 #. type: Content of: <refentry><refsect1><para>
2424 "<command>apt-cdrom</command> is used to add a new CD-ROM to APT's list of "
2425 "available sources. <command>apt-cdrom</command> takes care of determining "
2426 "the structure of the disc as well as correcting for several possible mis-"
2427 "burns and verifying the index files."
2430 #. type: Content of: <refentry><refsect1><para>
2433 "It is necessary to use <command>apt-cdrom</command> to add CDs to the APT "
2434 "system; it cannot be done by hand. Furthermore each disc in a multi-CD set "
2435 "must be inserted and scanned separately to account for possible mis-burns."
2438 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2441 "<literal>add</literal> is used to add a new disc to the source list. It will "
2442 "unmount the CD-ROM device, prompt for a disc to be inserted and then proceed "
2443 "to scan it and copy the index files. If the disc does not have a proper "
2444 "<filename>.disk</filename> directory you will be prompted for a descriptive "
2448 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2451 "APT uses a CD-ROM ID to track which disc is currently in the drive and "
2452 "maintains a database of these IDs in <filename>&statedir;/cdroms.list</"
2456 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2459 "A debugging tool to report the identity of the current disc as well as the "
2463 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2466 "Do not try to auto-detect the CD-ROM path. Usually combined with the "
2467 "<option>--cdrom</option> option. Configuration Item: <literal>Acquire::"
2468 "cdrom::AutoDetect</literal>."
2471 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2474 "Mount point; specify the location to mount the CD-ROM. This mount point must "
2475 "be listed in <filename>/etc/fstab</filename> and properly configured. "
2476 "Configuration Item: <literal>Acquire::cdrom::mount</literal>."
2479 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2482 "Rename a disc; change the label of a disc or override the disc's given "
2483 "label. This option will cause <command>apt-cdrom</command> to prompt for a "
2484 "new label. Configuration Item: <literal>APT::CDROM::Rename</literal>."
2487 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2490 "No mounting; prevent <command>apt-cdrom</command> from mounting and "
2491 "unmounting the mount point. Configuration Item: <literal>APT::CDROM::"
2492 "NoMount</literal>."
2495 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2498 "Fast Copy; Assume the package files are valid and do not check every "
2499 "package. This option should be used only if <command>apt-cdrom</command> has "
2500 "been run on this disc before and did not detect any errors. Configuration "
2501 "Item: <literal>APT::CDROM::Fast</literal>."
2504 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2507 "Thorough Package Scan; This option may be needed with some old Debian "
2508 "1.1/1.2 discs that have Package files in strange places. It takes much "
2509 "longer to scan the CD but will pick them all up."
2512 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2515 "No Changes; Do not change the &sources-list; file and do not write index "
2516 "files. Everything is still checked however. Configuration Item: "
2517 "<literal>APT::CDROM::NoAct</literal>."
2520 #. type: Content of: <refentry><refsect1><para>
2523 msgid "&apt-conf;, &apt-get;, &sources-list;"
2524 msgstr "&apt-get; &apt-cache; &apt-conf; &sources-list;"
2526 #. type: Content of: <refentry><refsect1><para>
2529 "<command>apt-cdrom</command> returns zero on normal operation, decimal 100 "
2533 #. type: Content of: <refentry><refnamediv><refpurpose>
2535 msgid "APT Configuration Query program"
2538 #. type: Content of: <refentry><refsect1><para>
2541 "<command>apt-config</command> is an internal program used by various "
2542 "portions of the APT suite to provide consistent configurability. It accesses "
2543 "the main configuration file <filename>/etc/apt/apt.conf</filename> in a "
2544 "manner that is easy to use for scripted applications."
2547 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2550 "shell is used to access the configuration information from a shell script. "
2551 "It is given pairs of arguments, the first being a shell variable and the "
2552 "second the configuration value to query. As output it lists shell assignment "
2553 "commands for each value present. In a shell script it should be used as "
2557 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><informalexample><programlisting>
2562 "RES=`apt-config shell OPTS MyApp::options`\n"
2566 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2569 "This will set the shell environment variable $OPTS to the value of MyApp::"
2570 "options with a default of <option>-f</option>."
2573 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2576 "The configuration item may be postfixed with a /[fdbi]. f returns file "
2577 "names, d returns directories, b returns true or false and i returns an "
2578 "integer. Each of the returns is normalized and verified internally."
2581 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2583 msgid "Just show the contents of the configuration space."
2586 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2589 "Include options which have an empty value. This is the default, so use --no-"
2590 "empty to remove them from the output."
2593 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term><option><replaceable>
2595 msgid "%f "%v";%n"
2598 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2601 "Defines the output of each config option. %t will be replaced with "
2602 "its individual name, %f with its full hierarchical name and %v "
2603 "with its value. Use uppercase letters and special characters in the value "
2604 "will be encoded to ensure that it can e.g. be safely used in a quoted-string "
2605 "as defined by RFC822. Additionally %n will be replaced by a newline, "
2606 "and %N by a tab. A % can be printed by using %%."
2609 #. type: Content of: <refentry><refsect1><para>
2610 #: apt-config.8.xml apt-extracttemplates.1.xml apt-sortpkgs.1.xml
2611 #: apt-ftparchive.1.xml
2619 #. type: Content of: <refentry><refsect1><para>
2622 "<command>apt-config</command> returns zero on normal operation, decimal 100 "
2626 #. type: Content of: <refentry><refentryinfo><author><contrib>
2628 msgid "Initial documentation of Debug::*."
2631 #. type: Content of: <refentry><refentryinfo><author><email>
2633 msgid "dburrows@debian.org"
2636 #. type: Content of: <refentry><refmeta><manvolnum>
2637 #: apt.conf.5.xml apt_preferences.5.xml sources.list.5.xml
2641 #. type: Content of: <refentry><refnamediv><refpurpose>
2643 msgid "Configuration file for APT"
2646 #. type: Content of: <refentry><refsect1><para>
2649 "<filename>/etc/apt/apt.conf</filename> is the main configuration file shared "
2650 "by all the tools in the APT suite of tools, though it is by no means the "
2651 "only place options can be set. The suite also shares a common command line "
2652 "parser to provide a uniform environment."
2655 #. type: Content of: <refentry><refsect1><orderedlist><para>
2658 "When an APT tool starts up it will read the configuration files in the "
2662 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2665 "the file specified by the <envar>APT_CONFIG</envar> environment variable (if "
2669 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2672 "all files in <literal>Dir::Etc::Parts</literal> in alphanumeric ascending "
2673 "order which have either no or \"<literal>conf</literal>\" as filename "
2674 "extension and which only contain alphanumeric, hyphen (-), underscore (_) "
2675 "and period (.) characters. Otherwise APT will print a notice that it has "
2676 "ignored a file, unless that file matches a pattern in the <literal>Dir::"
2677 "Ignore-Files-Silently</literal> configuration list - in which case it will "
2678 "be silently ignored."
2681 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2684 "the main configuration file specified by <literal>Dir::Etc::main</literal>"
2687 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2690 "all options set in the binary specific configuration subtree are moved into "
2691 "the root of the tree."
2694 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
2697 "the command line options are applied to override the configuration "
2698 "directives or to load even more configuration files."
2701 #. type: Content of: <refentry><refsect1><title>
2706 #. type: Content of: <refentry><refsect1><para>
2709 "The configuration file is organized in a tree with options organized into "
2710 "functional groups. Option specification is given with a double colon "
2711 "notation; for instance <literal>APT::Get::Assume-Yes</literal> is an option "
2712 "within the APT tool group, for the Get tool. Options do not inherit from "
2713 "their parent groups."
2716 #. type: Content of: <refentry><refsect1><para>
2719 "Syntactically the configuration language is modeled after what the ISC tools "
2720 "such as bind and dhcp use. Lines starting with <literal>//</literal> are "
2721 "treated as comments (ignored), as well as all text between <literal>/*</"
2722 "literal> and <literal>*/</literal>, just like C/C++ comments. Each line is "
2723 "of the form <literal>APT::Get::Assume-Yes \"true\";</literal>. The "
2724 "quotation marks and trailing semicolon are required. The value must be on "
2725 "one line, and there is no kind of string concatenation. Values must not "
2726 "include backslashes or extra quotation marks. Option names are made up of "
2727 "alphanumeric characters and the characters \"/-:._+\". A new scope can be "
2728 "opened with curly braces, like this:"
2731 #. type: Content of: <refentry><refsect1><informalexample><programlisting>
2737 " Assume-Yes \"true\";\n"
2738 " Fix-Broken \"true\";\n"
2743 #. type: Content of: <refentry><refsect1><para>
2746 "with newlines placed to make it more readable. Lists can be created by "
2747 "opening a scope and including a single string enclosed in quotes followed by "
2748 "a semicolon. Multiple entries can be included, separated by a semicolon."
2751 #. type: Content of: <refentry><refsect1><informalexample><programlisting>
2754 msgid "DPkg::Pre-Install-Pkgs {\"/usr/sbin/dpkg-preconfigure --apt\";};\n"
2757 #. type: Content of: <refentry><refsect1><para>
2760 "In general the sample configuration file &configureindex; is a good guide "
2761 "for how it should look."
2764 #. type: Content of: <refentry><refsect1><para>
2767 "Case is not significant in names of configuration items, so in the previous "
2768 "example you could use <literal>dpkg::pre-install-pkgs</literal>."
2771 #. type: Content of: <refentry><refsect1><para>
2774 "Names for the configuration items are optional if a list is defined as can "
2775 "be seen in the <literal>DPkg::Pre-Install-Pkgs</literal> example above. If "
2776 "you don't specify a name a new entry will simply add a new option to the "
2777 "list. If you specify a name you can override the option in the same way as "
2778 "any other option by reassigning a new value to the option."
2781 #. type: Content of: <refentry><refsect1><para>
2784 "Two special commands are defined: <literal>#include</literal> (which is "
2785 "deprecated and not supported by alternative implementations) and "
2786 "<literal>#clear</literal>. <literal>#include</literal> will include the "
2787 "given file, unless the filename ends in a slash, in which case the whole "
2788 "directory is included. <literal>#clear</literal> is used to erase a part of "
2789 "the configuration tree. The specified element and all its descendants are "
2790 "erased. (Note that these lines also need to end with a semicolon.)"
2793 #. type: Content of: <refentry><refsect1><para>
2796 "The <literal>#clear</literal> command is the only way to delete a list or a "
2797 "complete scope. Reopening a scope (or using the syntax described below with "
2798 "an appended <literal>::</literal>) will <emphasis>not</emphasis> override "
2799 "previously written entries. Options can only be overridden by addressing a "
2800 "new value to them - lists and scopes can't be overridden, only cleared."
2803 #. type: Content of: <refentry><refsect1><para>
2806 "All of the APT tools take an -o option which allows an arbitrary "
2807 "configuration directive to be specified on the command line. The syntax is a "
2808 "full option name (<literal>APT::Get::Assume-Yes</literal> for instance) "
2809 "followed by an equals sign then the new value of the option. To append a new "
2810 "element to a list, add a trailing <literal>::</literal> to the name of the "
2811 "list. (As you might suspect, the scope syntax can't be used on the command "
2815 #. type: Content of: <refentry><refsect1><para>
2818 "Note that appending items to a list using <literal>::</literal> only works "
2819 "for one item per line, and that you should not use it in combination with "
2820 "the scope syntax (which adds <literal>::</literal> implicitly). Using both "
2821 "syntaxes together will trigger a bug which some users unfortunately depend "
2822 "on: an option with the unusual name \"<literal>::</literal>\" which acts "
2823 "like every other option with a name. This introduces many problems; for one "
2824 "thing, users who write multiple lines in this <emphasis>wrong</emphasis> "
2825 "syntax in the hope of appending to a list will achieve the opposite, as only "
2826 "the last assignment for this option \"<literal>::</literal>\" will be used. "
2827 "Future versions of APT will raise errors and stop working if they encounter "
2828 "this misuse, so please correct such statements now while APT doesn't "
2829 "explicitly complain about them."
2832 #. type: Content of: <refentry><refsect1><title>
2834 msgid "The APT Group"
2837 #. type: Content of: <refentry><refsect1><para>
2840 "This group of options controls general APT behavior as well as holding the "
2841 "options for all of the tools."
2844 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2847 "System Architecture; sets the architecture to use when fetching files and "
2848 "parsing package lists. The internal default is the architecture apt was "
2852 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2855 "All Architectures the system supports. For instance, CPUs implementing the "
2856 "<literal>amd64</literal> (also called <literal>x86-64</literal>) "
2857 "instruction set are also able to execute binaries compiled for the "
2858 "<literal>i386</literal> (<literal>x86</literal>) instruction set. This list "
2859 "is used when fetching files and parsing package lists. The initial default "
2860 "is always the system's native architecture (<literal>APT::Architecture</"
2861 "literal>), and foreign architectures are added to the default list when they "
2862 "are registered via <command>dpkg --add-architecture</command>."
2865 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2868 "This scope defines which compression formats are supported, how compression "
2869 "and decompression can be performed if support for this format isn't built "
2870 "into apt directly and a cost-value indicating how costly it is to compress "
2871 "something in this format. As an example the following configuration stanza "
2872 "would allow apt to download and uncompress as well as create and store files "
2873 "with the low-cost <literal>.reversed</literal> file extension which it will "
2874 "pass to the command <command>rev</command> without additional commandline "
2875 "parameters for compression and uncompression:"
2878 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><informalexample><programlisting>
2882 "APT::Compressor::rev {\n"
2884 "\tExtension \".reversed\";\n"
2885 "\tBinary \"rev\";\n"
2886 "\tCompressArg {};\n"
2887 "\tUncompressArg {};\n"
2892 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2895 "List of all build profiles enabled for build-dependency resolution, without "
2896 "the \"<literal>profile.</literal>\" namespace prefix. By default this list "
2897 "is empty. The <envar>DEB_BUILD_PROFILES</envar> as used by &dpkg-"
2898 "buildpackage; overrides the list notation."
2901 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2904 "Default release to install packages from if more than one version is "
2905 "available. Contains release name, codename or release version. Examples: "
2906 "'stable', 'testing', 'unstable', '&debian-stable-codename;', '&debian-"
2907 "testing-codename;', '4.0', '5.0*'. See also &apt-preferences;."
2910 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2913 "Ignore held packages; this global option causes the problem resolver to "
2914 "ignore held packages in its decision making."
2917 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2920 "Defaults to on. When turned on the autoclean feature will remove any "
2921 "packages which can no longer be downloaded from the cache. If turned off "
2922 "then packages that are locally installed are also excluded from cleaning - "
2923 "but note that APT provides no direct means to reinstall them."
2926 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2929 "Defaults to on, which will cause APT to install essential and important "
2930 "packages as soon as possible in an install/upgrade operation, in order to "
2931 "limit the effect of a failing &dpkg; call. If this option is disabled, APT "
2932 "treats an important package in the same way as an extra package: between the "
2933 "unpacking of the package A and its configuration there can be many other "
2934 "unpack or configuration calls for other unrelated packages B, C etc. If "
2935 "these cause the &dpkg; call to fail (e.g. because package B's maintainer "
2936 "scripts generate an error), this results in a system state in which package "
2937 "A is unpacked but unconfigured - so any package depending on A is now no "
2938 "longer guaranteed to work, as its dependency on A is no longer satisfied."
2941 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2944 "The immediate configuration marker is also applied in the potentially "
2945 "problematic case of circular dependencies, since a dependency with the "
2946 "immediate flag is equivalent to a Pre-Dependency. In theory this allows APT "
2947 "to recognise a situation in which it is unable to perform immediate "
2948 "configuration, abort, and suggest to the user that the option should be "
2949 "temporarily deactivated in order to allow the operation to proceed. Note "
2950 "the use of the word \"theory\" here; in the real world this problem has "
2951 "rarely been encountered, in non-stable distribution versions, and was caused "
2952 "by wrong dependencies of the package in question or by a system in an "
2953 "already broken state; so you should not blindly disable this option, as the "
2954 "scenario mentioned above is not the only problem it can help to prevent in "
2958 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2961 "Before a big operation like <literal>dist-upgrade</literal> is run with this "
2962 "option disabled you should try to explicitly <literal>install</literal> the "
2963 "package APT is unable to configure immediately; but please make sure you "
2964 "also report your problem to your distribution and to the APT team with the "
2965 "buglink below, so they can work on improving or correcting the upgrade "
2969 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2972 "Never enable this option unless you <emphasis>really</emphasis> know what "
2973 "you are doing. It permits APT to temporarily remove an essential package to "
2974 "break a Conflicts/Conflicts or Conflicts/Pre-Depends loop between two "
2975 "essential packages. <emphasis>Such a loop should never exist and is a grave "
2976 "bug</emphasis>. This option will work if the essential packages are not "
2977 "<command>tar</command>, <command>gzip</command>, <command>libc</command>, "
2978 "<command>dpkg</command>, <command>dash</command> or anything that those "
2979 "packages depend on."
2982 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
2985 "APT uses since version 0.7.26 a resizable memory mapped cache file to store "
2986 "the available information. <literal>Cache-Start</literal> acts as a hint of "
2987 "the size the cache will grow to, and is therefore the amount of memory APT "
2988 "will request at startup. The default value is 20971520 bytes (~20 MB). Note "
2989 "that this amount of space needs to be available for APT; otherwise it will "
2990 "likely fail ungracefully, so for memory restricted devices this value should "
2991 "be lowered while on systems with a lot of configured sources it should be "
2992 "increased. <literal>Cache-Grow</literal> defines in bytes with the default "
2993 "of 1048576 (~1 MB) how much the cache size will be increased in the event "
2994 "the space defined by <literal>Cache-Start</literal> is not enough. This "
2995 "value will be applied again and again until either the cache is big enough "
2996 "to store all information or the size of the cache reaches the <literal>Cache-"
2997 "Limit</literal>. The default of <literal>Cache-Limit</literal> is 0 which "
2998 "stands for no limit. If <literal>Cache-Grow</literal> is set to 0 the "
2999 "automatic growth of the cache is disabled."
3002 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3004 msgid "Defines which packages are considered essential build dependencies."
3007 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3010 "The Get subsection controls the &apt-get; tool; please see its documentation "
3011 "for more information about the options here."
3014 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3017 "The Cache subsection controls the &apt-cache; tool; please see its "
3018 "documentation for more information about the options here."
3021 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3024 "The CDROM subsection controls the &apt-cdrom; tool; please see its "
3025 "documentation for more information about the options here."
3028 #. type: Content of: <refentry><refsect1><title>
3030 msgid "The Acquire Group"
3033 #. type: Content of: <refentry><refsect1><para>
3036 "The <literal>Acquire</literal> group of options controls the download of "
3037 "packages as well as the various \"acquire methods\" responsible for the "
3038 "download itself (see also &sources-list;)."
3041 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3044 "Security related option defaulting to true, as giving a Release file's "
3045 "validation an expiration date prevents replay attacks over a long timescale, "
3046 "and can also for example help users to identify mirrors that are no longer "
3047 "updated - but the feature depends on the correctness of the clock on the "
3048 "user system. Archive maintainers are encouraged to create Release files with "
3049 "the <literal>Valid-Until</literal> header, but if they don't or a stricter "
3050 "value is desired the <literal>Max-ValidTime</literal> option below can be "
3051 "used. The <option>Check-Valid-Until</option> option of &sources-list; "
3052 "entries should be preferred to disable the check selectively instead of "
3053 "using this global override."
3056 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3059 "Maximum time (in seconds) after its creation (as indicated by the "
3060 "<literal>Date</literal> header) that the <filename>Release</filename> file "
3061 "should be considered valid. If the Release file itself includes a "
3062 "<literal>Valid-Until</literal> header the earlier date of the two is used as "
3063 "the expiration date. The default value is <literal>0</literal> which stands "
3064 "for \"valid forever\". Archive specific settings can be made by appending "
3065 "the label of the archive to the option name. Preferably, the same can be "
3066 "achieved for specific &sources-list; entries by using the <option>Valid-"
3067 "Until-Max</option> option there."
3070 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3073 "Minimum time (in seconds) after its creation (as indicated by the "
3074 "<literal>Date</literal> header) that the <filename>Release</filename> file "
3075 "should be considered valid. Use this if you need to use a seldom updated "
3076 "(local) mirror of a more frequently updated archive with a <literal>Valid-"
3077 "Until</literal> header instead of completely disabling the expiration date "
3078 "checking. Archive specific settings can and should be used by appending the "
3079 "label of the archive to the option name. Preferably, the same can be "
3080 "achieved for specific &sources-list; entries by using the <option>Valid-"
3081 "Until-Min</option> option there."
3084 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3087 "Try to download deltas called <literal>PDiffs</literal> for indexes (like "
3088 "<filename>Packages</filename> files) instead of downloading whole ones. True "
3089 "by default. Preferably, this can be set for specific &sources-list; entries "
3090 "or index files by using the <option>PDiffs</option> option there."
3093 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3096 "Two sub-options to limit the use of PDiffs are also available: "
3097 "<literal>FileLimit</literal> can be used to specify a maximum number of "
3098 "PDiff files should be downloaded to update a file. <literal>SizeLimit</"
3099 "literal> on the other hand is the maximum percentage of the size of all "
3100 "patches compared to the size of the targeted file. If one of these limits is "
3101 "exceeded the complete file is downloaded instead of the patches."
3104 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3107 "Try to download indexes via an URI constructed from a hashsum of the "
3108 "expected file rather than downloaded via a well-known stable filename. True "
3109 "by default, but automatically disabled if the source indicates no support "
3110 "for it. Usage can be forced with the special value \"force\". Preferably, "
3111 "this can be set for specific &sources-list; entries or index files by using "
3112 "the <option>By-Hash</option> option there."
3115 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3118 "Queuing mode; <literal>Queue-Mode</literal> can be one of <literal>host</"
3119 "literal> or <literal>access</literal> which determines how APT parallelizes "
3120 "outgoing connections. <literal>host</literal> means that one connection per "
3121 "target host will be opened, <literal>access</literal> means that one "
3122 "connection per URI type will be opened."
3125 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3128 "Number of retries to perform. If this is non-zero APT will retry failed "
3129 "files the given number of times."
3132 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3135 "Use symlinks for source archives. If set to true then source archives will "
3136 "be symlinked when possible instead of copying. True is the default."
3139 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3142 "<literal>http::Proxy</literal> sets the default proxy to use for HTTP URIs. "
3143 "It is in the standard form of <literal>http://[[user][:pass]@]host[:port]/</"
3144 "literal>. Per host proxies can also be specified by using the form "
3145 "<literal>http::Proxy::<host></literal> with the special keyword "
3146 "<literal>DIRECT</literal> meaning to use no proxies. If no one of the above "
3147 "settings is specified, <envar>http_proxy</envar> environment variable will "
3151 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3154 "Three settings are provided for cache control with HTTP/1.1 compliant proxy "
3155 "caches. <literal>No-Cache</literal> tells the proxy not to use its cached "
3156 "response under any circumstances. <literal>Max-Age</literal> sets the "
3157 "allowed maximum age (in seconds) of an index file in the cache of the "
3158 "proxy. <literal>No-Store</literal> specifies that the proxy should not "
3159 "store the requested archive files in its cache, which can be used to prevent "
3160 "the proxy from polluting its cache with (big) .deb files."
3163 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3166 "The option <literal>timeout</literal> sets the timeout timer used by the "
3167 "method; this value applies to the connection as well as the data timeout."
3170 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3173 "The setting <literal>Acquire::http::Pipeline-Depth</literal> can be used to "
3174 "enable HTTP pipelining (RFC 2616 section 8.1.2.2) which can be beneficial e."
3175 "g. on high-latency connections. It specifies how many requests are sent in a "
3176 "pipeline. APT tries to detect and workaround misbehaving webservers and "
3177 "proxies at runtime, but if you know that yours does not conform to the "
3178 "HTTP/1.1 specification pipelining can be disabled by setting the value to 0. "
3179 "It is enabled by default with the value 10."
3182 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3185 "<literal>Acquire::http::AllowRedirect</literal> controls whether APT will "
3186 "follow redirects, which is enabled by default."
3189 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3192 "The used bandwidth can be limited with <literal>Acquire::http::Dl-Limit</"
3193 "literal> which accepts integer values in kilobytes per second. The default "
3194 "value is 0 which deactivates the limit and tries to use all available "
3195 "bandwidth. Note that this option implicitly disables downloading from "
3196 "multiple servers at the same time."
3199 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3202 "<literal>Acquire::http::User-Agent</literal> can be used to set a different "
3203 "User-Agent for the http download method as some proxies allow access for "
3204 "clients only if the client uses a known identifier."
3207 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3210 "<literal>Acquire::http::Proxy-Auto-Detect</literal> can be used to specify "
3211 "an external command to discover the http proxy to use. The first and only "
3212 "parameter is an URI denoting the host to be contacted to allow for host-"
3213 "specific configuration. APT expects the command to output the proxy on "
3214 "stdout as a single line in the style <literal>http://proxy:port/</literal> "
3215 "or the word <literal>DIRECT</literal> if no proxy should be used. No output "
3216 "indicates that the generic proxy settings should be used. Note that auto-"
3217 "detection will not be used for a host if a host-specific proxy configuration "
3218 "is already set via <literal>Acquire::http::Proxy::<replaceable>HOST</"
3219 "replaceable></literal>. See the &squid-deb-proxy-client; package for an "
3220 "example implementation that uses avahi. This option takes precedence over "
3221 "the legacy option name <literal>ProxyAutoDetect</literal>."
3224 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3227 "The <literal>Cache-control</literal>, <literal>Timeout</literal>, "
3228 "<literal>AllowRedirect</literal>, <literal>Dl-Limit</literal> and "
3229 "<literal>proxy</literal> options work for HTTPS URIs in the same way as for "
3230 "the <literal>http</literal> method, and default to the same values if they "
3231 "are not explicitly set. The <literal>Pipeline-Depth</literal> option is not "
3235 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3238 "<literal>CaInfo</literal> suboption specifies place of file that holds info "
3239 "about trusted certificates. <literal><host>::CaInfo</literal> is the "
3240 "corresponding per-host option. <literal>Verify-Peer</literal> boolean "
3241 "suboption determines whether or not the server's host certificate should be "
3242 "verified against trusted certificates. <literal><host>::Verify-Peer</"
3243 "literal> is the corresponding per-host option. <literal>Verify-Host</"
3244 "literal> boolean suboption determines whether or not the server's hostname "
3245 "should be verified. <literal><host>::Verify-Host</literal> is the "
3246 "corresponding per-host option. <literal>SslCert</literal> determines what "
3247 "certificate to use for client authentication. <literal><host>::"
3248 "SslCert</literal> is the corresponding per-host option. <literal>SslKey</"
3249 "literal> determines what private key to use for client authentication. "
3250 "<literal><host>::SslKey</literal> is the corresponding per-host "
3251 "option. <literal>SslForceVersion</literal> overrides default SSL version to "
3252 "use. It can contain either of the strings '<literal>TLSv1</literal>' or "
3253 "'<literal>SSLv3</literal>'. <literal><host>::SslForceVersion</"
3254 "literal> is the corresponding per-host option."
3257 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3260 "<literal>ftp::Proxy</literal> sets the default proxy to use for FTP URIs. "
3261 "It is in the standard form of <literal>ftp://[[user][:pass]@]host[:port]/</"
3262 "literal>. Per host proxies can also be specified by using the form "
3263 "<literal>ftp::Proxy::<host></literal> with the special keyword "
3264 "<literal>DIRECT</literal> meaning to use no proxies. If no one of the above "
3265 "settings is specified, <envar>ftp_proxy</envar> environment variable will be "
3266 "used. To use an FTP proxy you will have to set the <literal>ftp::ProxyLogin</"
3267 "literal> script in the configuration file. This entry specifies the commands "
3268 "to send to tell the proxy server what to connect to. Please see "
3269 "&configureindex; for an example of how to do this. The substitution "
3270 "variables representing the corresponding URI component are <literal>"
3271 "$(PROXY_USER)</literal>, <literal>$(PROXY_PASS)</literal>, <literal>"
3272 "$(SITE_USER)</literal>, <literal>$(SITE_PASS)</literal>, <literal>$(SITE)</"
3273 "literal> and <literal>$(SITE_PORT)</literal>."
3276 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3279 "Several settings are provided to control passive mode. Generally it is safe "
3280 "to leave passive mode on; it works in nearly every environment. However, "
3281 "some situations require that passive mode be disabled and port mode FTP used "
3282 "instead. This can be done globally or for connections that go through a "
3283 "proxy or for a specific host (see the sample config file for examples)."
3286 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3289 "It is possible to proxy FTP over HTTP by setting the <envar>ftp_proxy</"
3290 "envar> environment variable to an HTTP URL - see the discussion of the http "
3291 "method above for syntax. You cannot set this in the configuration file and "
3292 "it is not recommended to use FTP over HTTP due to its low efficiency."
3295 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3298 "The setting <literal>ForceExtended</literal> controls the use of RFC2428 "
3299 "<literal>EPSV</literal> and <literal>EPRT</literal> commands. The default is "
3300 "false, which means these commands are only used if the control connection is "
3301 "IPv6. Setting this to true forces their use even on IPv4 connections. Note "
3302 "that most FTP servers do not support RFC2428."
3305 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><literallayout>
3308 msgid "/cdrom/::Mount \"foo\";"
3311 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3314 "For URIs using the <literal>cdrom</literal> method, the only configurable "
3315 "option is the mount point, <literal>cdrom::Mount</literal>, which must be "
3316 "the mount point for the CD-ROM (or DVD, or whatever) drive as specified in "
3317 "<filename>/etc/fstab</filename>. It is possible to provide alternate mount "
3318 "and unmount commands if your mount point cannot be listed in the fstab. The "
3319 "syntax is to put <placeholder type=\"literallayout\" id=\"0\"/> within the "
3320 "<literal>cdrom</literal> block. It is important to have the trailing slash. "
3321 "Unmount commands can be specified using UMount."
3324 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3327 "For GPGV URIs the only configurable option is <literal>gpgv::Options</"
3328 "literal>, which passes additional parameters to gpgv."
3331 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><synopsis>
3334 msgid "Acquire::CompressionTypes::<replaceable>FileExtension</replaceable> \"<replaceable>Methodname</replaceable>\";"
3337 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3340 "List of compression types which are understood by the acquire methods. "
3341 "Files like <filename>Packages</filename> can be available in various "
3342 "compression formats. By default the acquire methods can decompress and "
3343 "recompress many common formats like <command>xz</command> and <command>gzip</"
3344 "command>; with this scope the supported formats can be queried, modified as "
3345 "well as support for more formats added (see also <option>APT::Compressor</"
3346 "option>). The syntax for this is: <placeholder type=\"synopsis\" id=\"0\"/>"
3349 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><synopsis>
3352 msgid "Acquire::CompressionTypes::Order:: \"gz\";"
3355 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><synopsis>
3358 msgid "Acquire::CompressionTypes::Order { \"xz\"; \"gz\"; };"
3361 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3364 "Also, the <literal>Order</literal> subgroup can be used to define in which "
3365 "order the acquire system will try to download the compressed files. The "
3366 "acquire system will try the first and proceed with the next compression type "
3367 "in this list on error, so to prefer one over the other type simply add the "
3368 "preferred type first - types not already added will be implicitly appended "
3369 "to the end of the list, so e.g. <placeholder type=\"synopsis\" id=\"0\"/> "
3370 "can be used to prefer <command>gzip</command> compressed files over all "
3371 "other compression formats. If <command>xz</command> should be preferred "
3372 "over <command>gzip</command> and <command>bzip2</command> the configure "
3373 "setting should look like this: <placeholder type=\"synopsis\" id=\"1\"/> It "
3374 "is not needed to add <literal>bz2</literal> to the list explicitly as it "
3375 "will be added automatically."
3378 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><literallayout>
3381 msgid "Dir::Bin::bzip2 \"/bin/bzip2\";"
3384 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3387 "Note that the <literal>Dir::Bin::<replaceable>Methodname</replaceable></"
3388 "literal> will be checked at run time. If this option has been set and "
3389 "support for this format isn't directly built into apt, the method will only "
3390 "be used if this file exists; e.g. for the <literal>bzip2</literal> method "
3391 "(the inbuilt) setting is: <placeholder type=\"literallayout\" id=\"0\"/> "
3392 "Note also that list entries specified on the command line will be added at "
3393 "the end of the list specified in the configuration files, but before the "
3394 "default entries. To prefer a type in this case over the ones specified in "
3395 "the configuration files you can set the option direct - not in list style. "
3396 "This will not override the defined list; it will only prefix the list with "
3400 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3403 "The special type <literal>uncompressed</literal> can be used to give "
3404 "uncompressed files a preference, but note that most archives don't provide "
3405 "uncompressed files so this is mostly only useable for local mirrors."
3408 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3411 "When downloading <literal>gzip</literal> compressed indexes (Packages, "
3412 "Sources, or Translations), keep them gzip compressed locally instead of "
3413 "unpacking them. This saves quite a lot of disk space at the expense of more "
3414 "CPU requirements when building the local package caches. False by default."
3417 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3420 "The Languages subsection controls which <filename>Translation</filename> "
3421 "files are downloaded and in which order APT tries to display the description-"
3422 "translations. APT will try to display the first available description in the "
3423 "language which is listed first. Languages can be defined with their short or "
3424 "long language codes. Note that not all archives provide "
3425 "<filename>Translation</filename> files for every language - the long "
3426 "language codes are especially rare."
3429 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para><programlisting>
3432 msgid "Acquire::Languages { \"environment\"; \"de\"; \"en\"; \"none\"; \"fr\"; };"
3435 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3438 "The default list includes \"environment\" and \"en\". "
3439 "\"<literal>environment</literal>\" has a special meaning here: it will be "
3440 "replaced at runtime with the language codes extracted from the "
3441 "<literal>LC_MESSAGES</literal> environment variable. It will also ensure "
3442 "that these codes are not included twice in the list. If "
3443 "<literal>LC_MESSAGES</literal> is set to \"C\" only the "
3444 "<filename>Translation-en</filename> file (if available) will be used. To "
3445 "force APT to use no Translation file use the setting <literal>Acquire::"
3446 "Languages=none</literal>. \"<literal>none</literal>\" is another special "
3447 "meaning code which will stop the search for a suitable "
3448 "<filename>Translation</filename> file. This tells APT to download these "
3449 "translations too, without actually using them unless the environment "
3450 "specifies the languages. So the following example configuration will result "
3451 "in the order \"en, de\" in an English locale or \"de, en\" in a German one. "
3452 "Note that \"fr\" is downloaded, but not used unless APT is used in a French "
3453 "locale (where the order would be \"fr, de, en\"). <placeholder type="
3454 "\"programlisting\" id=\"0\"/>"
3457 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3460 "Note: To prevent problems resulting from APT being executed in different "
3461 "environments (e.g. by different users or by other programs) all Translation "
3462 "files which are found in <filename>/var/lib/apt/lists/</filename> will be "
3463 "added to the end of the list (after an implicit \"<literal>none</literal>\")."
3466 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3468 msgid "When downloading, force to use only the IPv4 protocol."
3471 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3473 msgid "When downloading, force to use only the IPv6 protocol."
3476 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3479 "The maximum file size of Release/Release.gpg/InRelease files. The default "
3483 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3486 "This option controls if apt will use the DNS SRV server record as specified "
3487 "in RFC 2782 to select an alternative server to connect to. The default is "
3491 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3494 "Allow update operations to load data files from repositories without "
3495 "sufficient security information. The default value is \"<literal>false</"
3496 "literal>\". Concept, implications as well as alternatives are detailed in "
3500 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3503 "Allow update operations to load data files from repositories which provide "
3504 "security information, but these are deemed no longer cryptographically "
3505 "strong enough. The default value is \"<literal>false</literal>\". Concept, "
3506 "implications as well as alternatives are detailed in &apt-secure;."
3509 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3512 "Allow that a repository that was previously gpg signed to become unsigned "
3513 "during an update operation. When there is no valid signature for a "
3514 "previously trusted repository apt will refuse the update. This option can be "
3515 "used to override this protection. You almost certainly never want to enable "
3516 "this. The default is <literal>false</literal>. Concept, implications as "
3517 "well as alternatives are detailed in &apt-secure;."
3520 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
3525 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3528 "Acquiring changelogs can only be done if an URI is known from where to get "
3529 "them. Preferable the Release file indicates this in a 'Changelogs' field. "
3530 "If this isn't available the Label/Origin field of the Release file is used "
3531 "to check if a <literal>Acquire::Changelogs::URI::Label::<replaceable>LABEL</"
3532 "replaceable></literal> or <literal>Acquire::Changelogs::URI::Origin::"
3533 "<replaceable>ORIGIN</replaceable></literal> option exists and if so this "
3534 "value is taken. The value in the Release file can be overridden with "
3535 "<literal>Acquire::Changelogs::URI::Override::Label::<replaceable>LABEL</"
3536 "replaceable></literal> or <literal>Acquire::Changelogs::URI::Override::"
3537 "Origin::<replaceable>ORIGIN</replaceable></literal>. The value should be a "
3538 "normal URI to a text file, except that package specific data is replaced "
3539 "with the placeholder <literal>@CHANGEPATH@</literal>. The value for it is: "
3540 "1. if the package is from a component (e.g. <literal>main</literal>) this "
3541 "is the first part otherwise it is omitted, 2. the first letter of source "
3542 "package name, except if the source package name starts with '<literal>lib</"
3543 "literal>' in which case it will be the first four letters. 3. The complete "
3544 "source package name. 4. the complete name again and 5. the source version. "
3545 "The first (if present), second, third and fourth part are separated by a "
3546 "slash ('<literal>/</literal>') and between the fourth and fifth part is an "
3547 "underscore ('<literal>_</literal>'). The special value '<literal>no</"
3548 "literal>' is available for this option indicating that this source can't be "
3549 "used to acquire changelog files from. Another source will be tried if "
3550 "available in this case."
3553 #. type: Content of: <refentry><refsect1><title>
3555 msgid "Binary specific configuration"
3558 #. type: Content of: <refentry><refsect1><para>
3561 "Especially with the introduction of the <command>apt</command> binary it can "
3562 "be useful to set certain options only for a specific binary as even options "
3563 "which look like they would effect only a certain binary like <option>APT::"
3564 "Get::Show-Versions</option> effect <command>apt-get</command> as well as "
3565 "<command>apt</command>."
3568 #. type: Content of: <refentry><refsect1><para>
3571 "Setting an option for a specific binary only can be achieved by setting the "
3572 "option inside the <option>Binary::<replaceable>specific-binary</"
3573 "replaceable></option> scope. Setting the option <option>APT::Get::Show-"
3574 "Versions</option> for the <command>apt</command> only can e.g. by done by "
3575 "setting <option>Binary::apt::APT::Get::Show-Versions</option> instead."
3578 #. type: Content of: <refentry><refsect1><para>
3581 "Note that as seen in the DESCRIPTION section further above you can't set "
3582 "binary-specific options on the commandline itself nor in configuration files "
3583 "loaded via the commandline."
3586 #. type: Content of: <refentry><refsect1><title>
3591 #. type: Content of: <refentry><refsect1><para>
3594 "The <literal>Dir::State</literal> section has directories that pertain to "
3595 "local state information. <literal>lists</literal> is the directory to place "
3596 "downloaded package lists in and <literal>status</literal> is the name of the "
3597 "&dpkg; status file. <literal>preferences</literal> is the name of the APT "
3598 "<filename>preferences</filename> file. <literal>Dir::State</literal> "
3599 "contains the default directory to prefix on all sub-items if they do not "
3600 "start with <filename>/</filename> or <filename>./</filename>."
3603 #. type: Content of: <refentry><refsect1><para>
3606 "<literal>Dir::Cache</literal> contains locations pertaining to local cache "
3607 "information, such as the two package caches <literal>srcpkgcache</literal> "
3608 "and <literal>pkgcache</literal> as well as the location to place downloaded "
3609 "archives, <literal>Dir::Cache::archives</literal>. Generation of caches can "
3610 "be turned off by setting <literal>pkgcache</literal> or "
3611 "<literal>srcpkgcache</literal> to <literal>\"\"</literal>. This will slow "
3612 "down startup but save disk space. It is probably preferable to turn off the "
3613 "pkgcache rather than the srcpkgcache. Like <literal>Dir::State</literal> "
3614 "the default directory is contained in <literal>Dir::Cache</literal>"
3617 #. type: Content of: <refentry><refsect1><para>
3620 "<literal>Dir::Etc</literal> contains the location of configuration files, "
3621 "<literal>sourcelist</literal> gives the location of the sourcelist and "
3622 "<literal>main</literal> is the default configuration file (setting has no "
3623 "effect, unless it is done from the config file specified by "
3624 "<envar>APT_CONFIG</envar>)."
3627 #. type: Content of: <refentry><refsect1><para>
3630 "The <literal>Dir::Parts</literal> setting reads in all the config fragments "
3631 "in lexical order from the directory specified. After this is done then the "
3632 "main config file is loaded."
3635 #. type: Content of: <refentry><refsect1><para>
3638 "Binary programs are pointed to by <literal>Dir::Bin</literal>. <literal>Dir::"
3639 "Bin::Methods</literal> specifies the location of the method handlers and "
3640 "<literal>gzip</literal>, <literal>bzip2</literal>, <literal>lzma</literal>, "
3641 "<literal>dpkg</literal>, <literal>apt-get</literal> <literal>dpkg-source</"
3642 "literal> <literal>dpkg-buildpackage</literal> and <literal>apt-cache</"
3643 "literal> specify the location of the respective programs."
3646 #. type: Content of: <refentry><refsect1><para>
3649 "The configuration item <literal>RootDir</literal> has a special meaning. If "
3650 "set, all paths will be relative to <literal>RootDir</literal>, "
3651 "<emphasis>even paths that are specified absolutely</emphasis>. So, for "
3652 "instance, if <literal>RootDir</literal> is set to <filename>/tmp/staging</"
3653 "filename> and <literal>Dir::State::status</literal> is set to <filename>/var/"
3654 "lib/dpkg/status</filename>, then the status file will be looked up in "
3655 "<filename>/tmp/staging/var/lib/dpkg/status</filename>. If you want to "
3656 "prefix only relative paths, set <literal>Dir</literal> instead."
3659 #. type: Content of: <refentry><refsect1><para>
3662 "The <literal>Ignore-Files-Silently</literal> list can be used to specify "
3663 "which files APT should silently ignore while parsing the files in the "
3664 "fragment directories. Per default a file which end with <literal>.disabled</"
3665 "literal>, <literal>~</literal>, <literal>.bak</literal> or <literal>.dpkg-[a-"
3666 "z]+</literal> is silently ignored. As seen in the last default value these "
3667 "patterns can use regular expression syntax."
3670 #. type: Content of: <refentry><refsect1><title>
3672 msgid "APT in DSelect"
3675 #. type: Content of: <refentry><refsect1><para>
3678 "When APT is used as a &dselect; method several configuration directives "
3679 "control the default behavior. These are in the <literal>DSelect</literal> "
3683 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3686 "Cache Clean mode; this value may be one of <literal>always</literal>, "
3687 "<literal>prompt</literal>, <literal>auto</literal>, <literal>pre-auto</"
3688 "literal> and <literal>never</literal>. <literal>always</literal> and "
3689 "<literal>prompt</literal> will remove all packages from the cache after "
3690 "upgrading, <literal>prompt</literal> (the default) does so conditionally. "
3691 "<literal>auto</literal> removes only those packages which are no longer "
3692 "downloadable (replaced with a new version for instance). <literal>pre-auto</"
3693 "literal> performs this action before downloading new packages."
3696 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3699 "The contents of this variable are passed to &apt-get; as command line "
3700 "options when it is run for the install phase."
3703 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3706 "The contents of this variable are passed to &apt-get; as command line "
3707 "options when it is run for the update phase."
3710 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3713 "If true the [U]pdate operation in &dselect; will always prompt to continue. "
3714 "The default is to prompt only on error."
3717 #. type: Content of: <refentry><refsect1><title>
3719 msgid "How APT calls &dpkg;"
3722 #. type: Content of: <refentry><refsect1><para>
3725 "Several configuration directives control how APT invokes &dpkg;. These are "
3726 "in the <literal>DPkg</literal> section."
3729 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3732 "This is a list of options to pass to &dpkg;. The options must be specified "
3733 "using the list notation and each list item is passed as a single argument to "
3737 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3740 "This is a list of shell commands to run before/after invoking &dpkg;. Like "
3741 "<literal>options</literal> this must be specified in list notation. The "
3742 "commands are invoked in order using <filename>/bin/sh</filename>; should any "
3743 "fail APT will abort."
3746 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3749 "This is a list of shell commands to run before invoking &dpkg;. Like "
3750 "<literal>options</literal> this must be specified in list notation. The "
3751 "commands are invoked in order using <filename>/bin/sh</filename>; should any "
3752 "fail APT will abort. APT will pass the filenames of all .deb files it is "
3753 "going to install to the commands, one per line on the requested file "
3754 "descriptor, defaulting to standard input."
3757 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3760 "Version 2 of this protocol sends more information through the requested file "
3761 "descriptor: a line with the text <literal>VERSION 2</literal>, the APT "
3762 "configuration space, and a list of package actions with filename and version "
3766 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3769 "Each configuration directive line has the form <literal>key=value</"
3770 "literal>. Special characters (equal signs, newlines, nonprintable "
3771 "characters, quotation marks, and percent signs in <literal>key</literal> and "
3772 "newlines, nonprintable characters, and percent signs in <literal>value</"
3773 "literal>) are %-encoded. Lists are represented by multiple <literal>key::"
3774 "=value</literal> lines with the same key. The configuration section ends "
3775 "with a blank line."
3778 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3781 "Package action lines consist of five fields in Version 2: package name "
3782 "(without architecture qualification even if foreign), old version, direction "
3783 "of version change (< for upgrades, > for downgrades, = for no change), "
3784 "new version, action. The version fields are \"-\" for no version at all (for "
3785 "example when installing a package for the first time; no version is treated "
3786 "as earlier than any real version, so that is an upgrade, indicated as "
3787 "<literal>- < 1.23.4</literal>). The action field is \"**CONFIGURE**\" if "
3788 "the package is being configured, \"**REMOVE**\" if it is being removed, or "
3789 "the filename of a .deb file if it is being unpacked."
3792 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3795 "In Version 3 after each version field follows the architecture of this "
3796 "version, which is \"-\" if there is no version, and a field showing the "
3797 "MultiArch type \"same\", \"foreign\", \"allowed\" or \"none\". Note that "
3798 "\"none\" is an incorrect typename which is just kept to remain compatible, "
3799 "it should be read as \"no\" and users are encouraged to support both."
3802 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3805 "The version of the protocol to be used for the command "
3806 "<literal><replaceable>cmd</replaceable></literal> can be chosen by setting "
3807 "<literal>DPkg::Tools::options::<replaceable>cmd</replaceable>::Version</"
3808 "literal> accordingly, the default being version 1. If APT isn't supporting "
3809 "the requested version it will send the information in the highest version it "
3810 "has support for instead."
3813 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3816 "The file descriptor to be used to send the information can be requested with "
3817 "<literal>DPkg::Tools::options::<replaceable>cmd</replaceable>::InfoFD</"
3818 "literal> which defaults to <literal>0</literal> for standard input and is "
3819 "available since version 0.9.11. Support for the option can be detected by "
3820 "looking for the environment variable <envar>APT_HOOK_INFO_FD</envar> which "
3821 "contains the number of the used file descriptor as a confirmation."
3824 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3827 "APT chdirs to this directory before invoking &dpkg;, the default is "
3828 "<filename>/</filename>."
3831 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
3834 "These options are passed to &dpkg-buildpackage; when compiling packages; the "
3835 "default is to disable signing and produce all binaries."
3838 #. type: Content of: <refentry><refsect1><refsect2><title>
3840 msgid "dpkg trigger usage (and related options)"
3843 #. type: Content of: <refentry><refsect1><refsect2><para>
3846 "APT can call &dpkg; in such a way as to let it make aggressive use of "
3847 "triggers over multiple calls of &dpkg;. Without further options &dpkg; will "
3848 "use triggers once each time it runs. Activating these options can therefore "
3849 "decrease the time needed to perform the install or upgrade. Note that it is "
3850 "intended to activate these options per default in the future, but as it "
3851 "drastically changes the way APT calls &dpkg; it needs a lot more testing. "
3852 "<emphasis>These options are therefore currently experimental and should not "
3853 "be used in production environments.</emphasis> It also breaks progress "
3854 "reporting such that all front-ends will currently stay around half (or more) "
3855 "of the time in the 100% state while it actually configures all packages."
3858 #. type: Content of: <refentry><refsect1><refsect2><para><literallayout>
3862 "DPkg::NoTriggers \"true\";\n"
3863 "PackageManager::Configure \"smart\";\n"
3864 "DPkg::ConfigurePending \"true\";\n"
3865 "DPkg::TriggersPending \"true\";"
3868 #. type: Content of: <refentry><refsect1><refsect2><para>
3871 "Note that it is not guaranteed that APT will support these options or that "
3872 "these options will not cause (big) trouble in the future. If you have "
3873 "understand the current risks and problems with these options, but are brave "
3874 "enough to help testing them, create a new configuration file and test a "
3875 "combination of options. Please report any bugs, problems and improvements "
3876 "you encounter and make sure to note which options you have used in your "
3877 "reports. Asking &dpkg; for help could also be useful for debugging proposes, "
3878 "see e.g. <command>dpkg --audit</command>. A defensive option combination "
3879 "would be <placeholder type=\"literallayout\" id=\"0\"/>"
3882 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3885 "Add the no triggers flag to all &dpkg; calls (except the ConfigurePending "
3886 "call). See &dpkg; if you are interested in what this actually means. In "
3887 "short: &dpkg; will not run the triggers when this flag is present unless it "
3888 "is explicitly called to do so in an extra call. Note that this option "
3889 "exists (undocumented) also in older APT versions with a slightly different "
3890 "meaning: Previously these option only append --no-triggers to the configure "
3891 "calls to &dpkg; - now APT will also add this flag to the unpack and remove "
3895 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3898 "Valid values are \"<literal>all</literal>\", \"<literal>smart</literal>\" "
3899 "and \"<literal>no</literal>\". The default value is \"<literal>all</literal>"
3900 "\", which causes APT to configure all packages. The \"<literal>smart</"
3901 "literal>\" way is to configure only packages which need to be configured "
3902 "before another package can be unpacked (Pre-Depends), and let the rest be "
3903 "configured by &dpkg; with a call generated by the ConfigurePending option "
3904 "(see below). On the other hand, \"<literal>no</literal>\" will not configure "
3905 "anything, and totally relies on &dpkg; for configuration (which at the "
3906 "moment will fail if a Pre-Depends is encountered). Setting this option to "
3907 "any value other than <literal>all</literal> will implicitly also activate "
3908 "the next option by default, as otherwise the system could end in an "
3909 "unconfigured and potentially unbootable state."
3912 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3915 "If this option is set APT will call <command>dpkg --configure --pending</"
3916 "command> to let &dpkg; handle all required configurations and triggers. This "
3917 "option is activated automatically per default if the previous option is not "
3918 "set to <literal>all</literal>, but deactivating it could be useful if you "
3919 "want to run APT multiple times in a row - e.g. in an installer. In these "
3920 "sceneries you could deactivate this option in all but the last run."
3923 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3926 "Useful for the <literal>smart</literal> configuration as a package which has "
3927 "pending triggers is not considered as <literal>installed</literal>, and "
3928 "&dpkg; treats them as <literal>unpacked</literal> currently which is a "
3929 "showstopper for Pre-Dependencies (see debbugs #526774). Note that this will "
3930 "process all triggers, not only the triggers needed to configure this package."
3933 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para><literallayout>
3937 "OrderList::Score {\n"
3939 "\tEssential 200;\n"
3941 "\tPreDepends 50;\n"
3945 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
3948 "Essential packages (and their dependencies) should be configured immediately "
3949 "after unpacking. It is a good idea to do this quite early in the upgrade "
3950 "process as these configure calls also currently require <literal>DPkg::"
3951 "TriggersPending</literal> which will run quite a few triggers (which may not "
3952 "be needed). Essentials get per default a high score but the immediate flag "
3953 "is relatively low (a package which has a Pre-Depends is rated higher). "
3954 "These option and the others in the same group can be used to change the "
3955 "scoring. The following example shows the settings with their default "
3956 "values. <placeholder type=\"literallayout\" id=\"0\"/>"
3959 #. type: Content of: <refentry><refsect1><title>
3961 msgid "Periodic and Archives options"
3964 #. type: Content of: <refentry><refsect1><para>
3967 "<literal>APT::Periodic</literal> and <literal>APT::Archives</literal> groups "
3968 "of options configure behavior of apt periodic updates, which is done by the "
3969 "<literal>/etc/cron.daily/apt</literal> script. See the top of this script "
3970 "for the brief documentation of these options."
3973 #. type: Content of: <refentry><refsect1><title>
3975 msgid "Debug options"
3978 #. type: Content of: <refentry><refsect1><para>
3981 "Enabling options in the <literal>Debug::</literal> section will cause "
3982 "debugging information to be sent to the standard error stream of the program "
3983 "utilizing the <literal>apt</literal> libraries, or enable special program "
3984 "modes that are primarily useful for debugging the behavior of <literal>apt</"
3985 "literal>. Most of these options are not interesting to a normal user, but a "
3989 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
3992 "<literal>Debug::pkgProblemResolver</literal> enables output about the "
3993 "decisions made by <literal>dist-upgrade, upgrade, install, remove, purge</"
3997 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4000 "<literal>Debug::NoLocking</literal> disables all file locking. This can be "
4001 "used to run some operations (for instance, <literal>apt-get -s install</"
4002 "literal>) as a non-root user."
4005 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4008 "<literal>Debug::pkgDPkgPM</literal> prints out the actual command line each "
4009 "time that <literal>apt</literal> invokes &dpkg;."
4013 #. motivating example, except I haven't a clue why you'd want
4015 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
4018 "<literal>Debug::IdentCdrom</literal> disables the inclusion of statfs data "
4022 #. type: Content of: <refentry><refsect1><para>
4024 msgid "A full list of debugging options to apt follows."
4027 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4030 "Print information related to accessing <literal>cdrom://</literal> sources."
4033 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4035 msgid "Print information related to downloading packages using FTP."
4038 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4040 msgid "Print information related to downloading packages using HTTP."
4043 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4045 msgid "Print information related to downloading packages using HTTPS."
4048 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4051 "Print information related to verifying cryptographic signatures using "
4052 "<literal>gpg</literal>."
4055 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4058 "Output information about the process of accessing collections of packages "
4059 "stored on CD-ROMs."
4062 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4064 msgid "Describes the process of resolving build-dependencies in &apt-get;."
4067 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4070 "Output each cryptographic hash that is generated by the <literal>apt</"
4071 "literal> libraries."
4074 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4077 "Do not include information from <literal>statfs</literal>, namely the number "
4078 "of used and free blocks on the CD-ROM filesystem, when generating an ID for "
4082 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4085 "Disable all file locking. For instance, this will allow two instances of "
4086 "<quote><literal>apt-get update</literal></quote> to run at the same time."
4089 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4091 msgid "Log when items are added to or removed from the global download queue."
4094 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4097 "Output status messages and errors related to verifying checksums and "
4098 "cryptographic signatures of downloaded files."
4101 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4104 "Output information about downloading and applying package index list diffs, "
4105 "and errors relating to package index list diffs."
4108 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4111 "Output information related to patching apt package lists when downloading "
4112 "index diffs instead of full indices."
4115 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4118 "Log all interactions with the sub-processes that actually perform downloads."
4121 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4124 "Log events related to the automatically-installed status of packages and to "
4125 "the removal of unused packages."
4128 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4131 "Generate debug messages describing which packages are being automatically "
4132 "installed to resolve dependencies. This corresponds to the initial auto-"
4133 "install pass performed in, e.g., <literal>apt-get install</literal>, and not "
4134 "to the full <literal>apt</literal> dependency resolver; see <literal>Debug::"
4135 "pkgProblemResolver</literal> for that."
4138 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4141 "Generate debug messages describing which packages are marked as keep/install/"
4142 "remove while the ProblemResolver does his work. Each addition or deletion "
4143 "may trigger additional actions; they are shown indented two additional "
4144 "spaces under the original entry. The format for each line is "
4145 "<literal>MarkKeep</literal>, <literal>MarkDelete</literal> or "
4146 "<literal>MarkInstall</literal> followed by <literal>package-name <a.b.c -"
4147 "> d.e.f | x.y.z> (section)</literal> where <literal>a.b.c</literal> is "
4148 "the current version of the package, <literal>d.e.f</literal> is the version "
4149 "considered for installation and <literal>x.y.z</literal> is a newer version, "
4150 "but not considered for installation (because of a low pin score). The later "
4151 "two can be omitted if there is none or if it is the same as the installed "
4152 "version. <literal>section</literal> is the name of the section the package "
4156 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4159 "When invoking &dpkg;, output the precise command line with which it is being "
4160 "invoked, with arguments separated by a single space character."
4163 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4166 "Output all the data received from &dpkg; on the status file descriptor and "
4167 "any errors encountered while parsing it."
4170 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4173 "Generate a trace of the algorithm that decides the order in which "
4174 "<literal>apt</literal> should pass packages to &dpkg;."
4177 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4180 "Output status messages tracing the steps performed when invoking &dpkg;."
4183 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4185 msgid "Output the priority of each package list on startup."
4188 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4191 "Trace the execution of the dependency resolver (this applies only to what "
4192 "happens when a complex dependency problem is encountered)."
4195 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4198 "Display a list of all installed packages with their calculated score used by "
4199 "the pkgProblemResolver. The description of the package is the same as "
4200 "described in <literal>Debug::pkgDepCache::Marker</literal>"
4203 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4206 "Print information about the vendors read from <filename>/etc/apt/vendors."
4210 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
4213 "Display the external commands that are called by apt hooks. This includes e."
4214 "g. the config options <literal>DPkg::{Pre,Post}-Invoke</literal> or "
4215 "<literal>APT::Update::{Pre,Post}-Invoke</literal>."
4218 #. type: Content of: <refentry><refsect1><title>
4219 #: apt.conf.5.xml apt_preferences.5.xml sources.list.5.xml apt-ftparchive.1.xml
4224 #. type: Content of: <refentry><refsect1><para>
4227 "&configureindex; is a configuration file showing example values for all "
4231 #. ? reading apt.conf
4232 #. type: Content of: <refentry><refsect1><para>
4235 msgid "&apt-cache;, &apt-config;, &apt-preferences;."
4236 msgstr "&apt-get; &apt-cache; &apt-conf; &sources-list;"
4238 #. type: Content of: <refentry><refnamediv><refpurpose>
4239 #: apt_preferences.5.xml
4241 msgid "Preference control file for APT"
4242 msgstr "Arquivo de controle de preferências para o APT"
4244 #. type: Content of: <refentry><refsect1><para>
4245 #: apt_preferences.5.xml
4248 "The APT preferences file <filename>/etc/apt/preferences</filename> and the "
4249 "fragment files in the <filename>/etc/apt/preferences.d/</filename> folder "
4250 "can be used to control which versions of packages will be selected for "
4253 "O arquivo de preferências do APT <filename>/etc/apt/preferences</filename> "
4254 "pode ser usado para controlar quais versões de pacotes serão selecionadas "
4257 #. type: Content of: <refentry><refsect1><para>
4258 #: apt_preferences.5.xml
4261 "Several versions of a package may be available for installation when the "
4262 "&sources-list; file contains references to more than one distribution (for "
4263 "example, <literal>stable</literal> and <literal>testing</literal>). APT "
4264 "assigns a priority to each version that is available. Subject to dependency "
4265 "constraints, <command>apt-get</command> selects the version with the highest "
4266 "priority for installation. The APT preferences override the priorities that "
4267 "APT assigns to package versions by default, thus giving the user control "
4268 "over which one is selected for installation."
4270 "Diversas versões de um pacote podem estar disponíveis para instalação quando "
4271 "o arquivo &sources-list; contém referências para mais de uma distribuição "
4272 "(por exemplo, <literal>stable</literal> e <literal>testing</literal>). O APT "
4273 "atribui uma prioridade para cada versão que esteja disponível. Sujeito a "
4274 "obstáculos de dependências, o <command>apt-get</command> seleciona para "
4275 "instalação a versão com a maior prioridade. O arquivo de preferências do APT "
4276 "sobrepoe as prioridades que o APT atribui a cada versão de pacote por "
4277 "padrão, dando assim ao usuário controle sobre qual versão do pacote é "
4278 "selecionada para instalação."
4280 #. type: Content of: <refentry><refsect1><para>
4281 #: apt_preferences.5.xml
4284 "Several instances of the same version of a package may be available when the "
4285 "&sources-list; file contains references to more than one source. In this "
4286 "case <command>apt-get</command> downloads the instance listed earliest in "
4287 "the &sources-list; file. The APT preferences do not affect the choice of "
4288 "instance, only the choice of version."
4290 "Diversas instâncias da mesma versão de um pacote pode estar disponíveis "
4291 "quando o arquivo &sources-list; contém referências a mais de uma fonte. "
4292 "Nesse caso, o <command>apt-get</command> faz o download da instância listada "
4293 "antes no arquivo &sources-list; . O arquivo de preferências do APT não afeta "
4294 "a escolha da instância."
4296 #. type: Content of: <refentry><refsect1><para>
4297 #: apt_preferences.5.xml
4299 "Preferences are a strong power in the hands of a system administrator but "
4300 "they can become also their biggest nightmare if used without care! APT will "
4301 "not question the preferences, so wrong settings can lead to uninstallable "
4302 "packages or wrong decisions while upgrading packages. Even more problems "
4303 "will arise if multiple distribution releases are mixed without a good "
4304 "understanding of the following paragraphs. Packages included in a specific "
4305 "release aren't tested in (and therefore don't always work as expected in) "
4306 "older or newer releases, or together with other packages from different "
4307 "releases. You have been warned."
4310 #. type: Content of: <refentry><refsect1><para>
4311 #: apt_preferences.5.xml
4313 "Note that the files in the <filename>/etc/apt/preferences.d</filename> "
4314 "directory are parsed in alphanumeric ascending order and need to obey the "
4315 "following naming convention: The files have either no or \"<literal>pref</"
4316 "literal>\" as filename extension and only contain alphanumeric, hyphen (-), "
4317 "underscore (_) and period (.) characters. Otherwise APT will print a notice "
4318 "that it has ignored a file, unless that file matches a pattern in the "
4319 "<literal>Dir::Ignore-Files-Silently</literal> configuration list - in which "
4320 "case it will be silently ignored."
4323 #. type: Content of: <refentry><refsect1><refsect2><title>
4324 #: apt_preferences.5.xml
4326 msgid "APT's Default Priority Assignments"
4327 msgstr "Atribuições de Prioridade Padrão do APT"
4329 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4330 #: apt_preferences.5.xml
4332 msgid "<command>apt-get install -t testing <replaceable>some-package</replaceable></command>\n"
4334 "<programlisting>\n"
4335 "<command>apt-get install -t testing <replaceable>algum-pacote</replaceable></command>\n"
4337 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
4338 #: apt_preferences.5.xml
4340 msgid "APT::Default-Release \"stable\";\n"
4342 "<programlisting>\n"
4343 "APT::Default-Release \"stable\";\n"
4345 #. type: Content of: <refentry><refsect1><refsect2><para>
4346 #: apt_preferences.5.xml
4349 "If there is no preferences file or if there is no entry in the file that "
4350 "applies to a particular version then the priority assigned to that version "
4351 "is the priority of the distribution to which that version belongs. It is "
4352 "possible to single out a distribution, \"the target release\", which "
4353 "receives a higher priority than other distributions do by default. The "
4354 "target release can be set on the <command>apt-get</command> command line or "
4355 "in the APT configuration file <filename>/etc/apt/apt.conf</filename>. Note "
4356 "that this has precedence over any general priority you set in the <filename>/"
4357 "etc/apt/preferences</filename> file described later, but not over "
4358 "specifically pinned packages. For example, <placeholder type="
4359 "\"programlisting\" id=\"0\"/> <placeholder type=\"programlisting\" id=\"1\"/>"
4361 "Caso não exista um arquivo de preferências ou caso não exista uma entrada no "
4362 "arquivo que se aplique a uma instância em particular, a prioridade atribuída "
4363 "a essa instância é a prioridade da distribuição para a qual a instância "
4364 "pertence. É possível selecionar uma distribuição, conhecida como \"a versão "
4365 "alvo\" (the target release), que recebe uma prioridade maior do que as "
4366 "outras distribuições. A versão alvo pode ser definida na linha de comando do "
4367 "<command>apt-get</command> ou no arquivo de configuração do APT <filename>/"
4368 "etc/apt/apt.conf</filename>. Por exemplo,"
4370 #. type: Content of: <refentry><refsect1><refsect2><para>
4371 #: apt_preferences.5.xml
4374 "If the target release has been specified then APT uses the following "
4375 "algorithm to set the priorities of the versions of a package. Assign:"
4377 "Caso uma versão alvo tenha sido especificada o APT usará o seguinte "
4378 "algoritmo para definir as prioridades das instâncias de um pacote. "
4381 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4382 #: apt_preferences.5.xml
4385 msgstr "prioridade 100"
4387 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4388 #: apt_preferences.5.xml
4390 "to the versions coming from archives which in their <filename>Release</"
4391 "filename> files are marked as \"NotAutomatic: yes\" but <emphasis>not</"
4392 "emphasis> as \"ButAutomaticUpgrades: yes\" like the Debian "
4393 "<literal>experimental</literal> archive."
4396 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4397 #: apt_preferences.5.xml
4399 msgid "priority 100"
4400 msgstr "prioridade 100"
4402 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4403 #: apt_preferences.5.xml
4405 "to the version that is already installed (if any) and to the versions coming "
4406 "from archives which in their <filename>Release</filename> files are marked "
4407 "as \"NotAutomatic: yes\" and \"ButAutomaticUpgrades: yes\" like the Debian "
4408 "backports archive since <literal>squeeze-backports</literal>."
4411 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4412 #: apt_preferences.5.xml
4414 msgid "priority 500"
4415 msgstr "prioridade 500"
4417 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4418 #: apt_preferences.5.xml
4420 msgid "to the versions that do not belong to the target release."
4422 "para as instâncias que não estejam instaladas e pertençam a versão alvo."
4424 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4425 #: apt_preferences.5.xml
4427 msgid "priority 990"
4428 msgstr "prioridade 990"
4430 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4431 #: apt_preferences.5.xml
4433 msgid "to the versions that belong to the target release."
4435 "para as instâncias que não estejam instaladas e pertençam a versão alvo."
4437 #. type: Content of: <refentry><refsect1><refsect2><para>
4438 #: apt_preferences.5.xml
4440 "The highest of those priorities whose description matches the version is "
4441 "assigned to the version."
4444 #. type: Content of: <refentry><refsect1><refsect2><para>
4445 #: apt_preferences.5.xml
4448 "If the target release has not been specified then APT simply assigns "
4449 "priority 100 to all installed package versions and priority 500 to all "
4450 "uninstalled package versions, except versions coming from archives which in "
4451 "their <filename>Release</filename> files are marked as \"NotAutomatic: yes\" "
4452 "- these versions get the priority 1 or priority 100 if it is additionally "
4453 "marked as \"ButAutomaticUpgrades: yes\"."
4455 "Caso nenhuma versão alvo tenha sido especificada, o APT simplesmente irá "
4456 "atribuir a prioridade 100 para todas as instâncias de pacotes instaladas e a "
4457 "prioridade 500 para todas as instâncias de pacotes não instaladas."
4459 #. type: Content of: <refentry><refsect1><refsect2><para>
4460 #: apt_preferences.5.xml
4463 "APT then applies the following rules, listed in order of precedence, to "
4464 "determine which version of a package to install."
4466 "O APT aplica as regras a seguir, listadas em ordem de precedência, para "
4467 "determinar qual instância de um pacote instalar."
4469 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4470 #: apt_preferences.5.xml
4473 "Never downgrade unless the priority of an available version exceeds 1000. "
4474 "(\"Downgrading\" is installing a less recent version of a package in place "
4475 "of a more recent version. Note that none of APT's default priorities "
4476 "exceeds 1000; such high priorities can only be set in the preferences file. "
4477 "Note also that downgrading a package can be risky.)"
4479 "Nunca faz um downgrade a menos que a prioridade de uma instância disponível "
4480 "exceda 1000. (Fazer um \"downgrade\" é instalar uma versão menos recente de "
4481 "um pacote no lugar de uma versão mais recente. Note que nenhuma das "
4482 "prioridades padrão do APT excede 1000; prioridades altas como essa podem ser "
4483 "definidas somente no arquivo de preferências. Note também que fazer um "
4484 "\"downgrade\" pode ser arriscado.)"
4486 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4487 #: apt_preferences.5.xml
4489 msgid "Install the highest priority version."
4490 msgstr "Instala a instância de prioridade mais alta."
4492 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4493 #: apt_preferences.5.xml
4496 "If two or more versions have the same priority, install the most recent one "
4497 "(that is, the one with the higher version number)."
4499 "Caso duas ou mais instâncias possuam a mesma prioridade, instala a instância "
4500 "mais recente (ou seja, aquela com o maior número de versão)."
4502 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4503 #: apt_preferences.5.xml
4506 "If two or more versions have the same priority and version number but either "
4507 "the packages differ in some of their metadata or the <literal>--reinstall</"
4508 "literal> option is given, install the uninstalled one."
4510 "Caso duas ou mais instâncias possuam a mesma prioridade e número de versão "
4511 "mas os pacotes sejam diferentes em alguns de seus metadados ou a opção "
4512 "<literal>--reinstall</literal> seja fornecida, instala aquela desinstalada."
4514 #. type: Content of: <refentry><refsect1><refsect2><para>
4515 #: apt_preferences.5.xml
4518 "In a typical situation, the installed version of a package (priority 100) "
4519 "is not as recent as one of the versions available from the sources listed in "
4520 "the &sources-list; file (priority 500 or 990). Then the package will be "
4521 "upgraded when <command>apt-get install <replaceable>some-package</"
4522 "replaceable></command> or <command>apt-get upgrade</command> is executed."
4524 "Em uma situação típica, a instância instalada de um pacote (prioridade 100) "
4525 "não é tão recente quanto uma das versões disponíveis nas fontes listadas no "
4526 "arquivo &sources-list; (prioridade 500 ou 990). Então o pacote será "
4527 "atualizado quando os comandos <command>apt-get install <replaceable>algum-"
4528 "pacote</replaceable></command> ou <command>apt-get dist-upgrade</command> "
4531 #. type: Content of: <refentry><refsect1><refsect2><para>
4532 #: apt_preferences.5.xml
4535 "More rarely, the installed version of a package is <emphasis>more</emphasis> "
4536 "recent than any of the other available versions. The package will not be "
4537 "downgraded when <command>apt-get install <replaceable>some-package</"
4538 "replaceable></command> or <command>apt-get upgrade</command> is executed."
4540 "Mais raramente, a versão instalada de um pacote é <emphasis>mais</emphasis> "
4541 "recente do que qualquer uma das outras versões disponíveis. O dowgrade do "
4542 "pacote não será feito quando os comandos <command>apt-get install "
4543 "<replaceable>algum-pacote</replaceable></command> ou <command>apt-get "
4544 "upgrade</command> forem executados."
4546 #. type: Content of: <refentry><refsect1><refsect2><para>
4547 #: apt_preferences.5.xml
4550 "Sometimes the installed version of a package is more recent than the version "
4551 "belonging to the target release, but not as recent as a version belonging to "
4552 "some other distribution. Such a package will indeed be upgraded when "
4553 "<command>apt-get install <replaceable>some-package</replaceable></command> "
4554 "or <command>apt-get upgrade</command> is executed, because at least "
4555 "<emphasis>one</emphasis> of the available versions has a higher priority "
4556 "than the installed version."
4558 "Algumas vezes a versão instalada de um pacote é mais recente que a versão "
4559 "que pertence a versão alvo, mas não tão recente quanto a versão que pertence "
4560 "a alguma outra distribuição. Um pacote como esse será na verdade atualizado "
4561 "quando os comandos <command>apt-get install <replaceable>algum-pacote</"
4562 "replaceable></command> ou <command>apt-get upgrade</command> forem "
4563 "executados, devido a pelo menos <emphasis>uma</emphasis> das versões "
4564 "disponíveis possuir uma prioridade maior do que a versão instalada."
4566 #. type: Content of: <refentry><refsect1><refsect2><title>
4567 #: apt_preferences.5.xml
4569 msgid "The Effect of APT Preferences"
4570 msgstr "O Efeito das Preferências do APT"
4572 #. type: Content of: <refentry><refsect1><refsect2><para>
4573 #: apt_preferences.5.xml
4576 "The APT preferences file allows the system administrator to control the "
4577 "assignment of priorities. The file consists of one or more multi-line "
4578 "records separated by blank lines. Records can have one of two forms, a "
4579 "specific form and a general form."
4581 "O arquivo de preferências do APT permite ao administrador do sistema "
4582 "personalizar prioridades. O arquivo consiste de um ou mais registros de "
4583 "múltiplas linhas separados por linhas em branco. Registros podem possuir uma "
4584 "das duas formas, uma forma específica e uma forma geral."
4586 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4587 #: apt_preferences.5.xml
4590 "The specific form assigns a priority (a \"Pin-Priority\") to one or more "
4591 "specified packages with a specified version or version range. For example, "
4592 "the following record assigns a high priority to all versions of the "
4593 "<filename>perl</filename> package whose version number begins with "
4594 "\"<literal>&good-perl;</literal>\". Multiple packages can be separated by "
4597 "A forma específica atribui uma uma prioridade (uma \"Pin-Priority\") para um "
4598 "pacote e versão ou faixa de versão especificados. Por exemplo, o registro a "
4599 "seguir atribui uma prioridade alta para todas as versões do pacote "
4600 "<filename>perl</filename> os quais tenham seus números de versão iniciando "
4601 "com \"<literal>5.8</literal>\"."
4603 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4604 #: apt_preferences.5.xml
4608 "Pin: version &good-perl;*\n"
4609 "Pin-Priority: 1001\n"
4611 "<programlisting>\n"
4613 "Pin: version 5.8*\n"
4614 "Pin-Priority: 1001\n"
4616 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4617 #: apt_preferences.5.xml
4620 "The general form assigns a priority to all of the package versions in a "
4621 "given distribution (that is, to all the versions of packages that are listed "
4622 "in a certain <filename>Release</filename> file) or to all of the package "
4623 "versions coming from a particular Internet site, as identified by the site's "
4624 "fully qualified domain name."
4626 "O forma geral atribui uma prioridade para todas as versões de pacotes em uma "
4627 "dada distribuição (isto é, para toda as versões de pacotes que estejam em um "
4628 "certo arquivo <filename>Release</filename>) ou para todas as versões de "
4629 "pacotes que provenientes de um site Internet em particular, como "
4630 "identificado pelo nome de domínio totalmente qualificado do site Internet."
4632 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4633 #: apt_preferences.5.xml
4636 "This general-form entry in the APT preferences file applies only to groups "
4637 "of packages. For example, the following record assigns a high priority to "
4638 "all package versions available from the local site."
4640 "Essa entrada de forma geral no arquivo de preferências do APT aplica-se "
4641 "somente a grupos de pacotes. Por exemplo, o registro a seguir faz com que o "
4642 "APT atribua uma prioridade alta para todas as versões de pacotes disponíveis "
4645 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4646 #: apt_preferences.5.xml
4650 "Pin: origin \"\"\n"
4651 "Pin-Priority: 999\n"
4653 "<programlisting>\n"
4655 "Pin: origin \"\"\n"
4656 "Pin-Priority: 999\n"
4658 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4659 #: apt_preferences.5.xml
4661 "A note of caution: the keyword used here is \"<literal>origin</literal>\" "
4662 "which can be used to match a hostname. The following record will assign a "
4663 "high priority to all versions available from the server identified by the "
4664 "hostname \"ftp.de.debian.org\""
4667 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4668 #: apt_preferences.5.xml
4672 "Pin: origin \"ftp.de.debian.org\"\n"
4673 "Pin-Priority: 999\n"
4675 "<programlisting>\n"
4677 "Pin: origin \"\"\n"
4678 "Pin-Priority: 999\n"
4680 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4681 #: apt_preferences.5.xml
4684 "This should <emphasis>not</emphasis> be confused with the Origin of a "
4685 "distribution as specified in a <filename>Release</filename> file. What "
4686 "follows the \"Origin:\" tag in a <filename>Release</filename> file is not an "
4687 "Internet address but an author or vendor name, such as \"Debian\" or \"Ximian"
4690 "Uma nota de aviso : a palavra-chave usada aqui é \"<literal>origin</literal>"
4691 "\". Esta palavra não deve ser confundida com a origem (\"Origin:\") de uma "
4692 "distribuição como especificado em um arquivo <filename>Release</filename>. O "
4693 "que segue a tag \"Origin:\" em um arquivo <filename>Release</filename> não é "
4694 "um endereço de site Internet mas sim nome de autor ou distribuidor (vendor), "
4695 "como \"Debian\" ou \"Ximian\"."
4697 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4698 #: apt_preferences.5.xml
4701 "The following record assigns a low priority to all package versions "
4702 "belonging to any distribution whose Archive name is \"<literal>unstable</"
4705 "O registro a seguir atribui uma prioridade baixa para todas as versões de "
4706 "pacote que pertençam a qualquer distribuição cujo nome do Repositório seja "
4707 "\"<literal>unstable</literal>\"."
4709 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4710 #: apt_preferences.5.xml
4714 "Pin: release a=unstable\n"
4715 "Pin-Priority: 50\n"
4717 "<programlisting>\n"
4719 "Pin: release a=unstable\n"
4720 "Pin-Priority: 50\n"
4722 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4723 #: apt_preferences.5.xml
4726 "The following record assigns a high priority to all package versions "
4727 "belonging to any distribution whose Codename is \"<literal>&debian-testing-"
4728 "codename;</literal>\"."
4730 "O registro a seguir atribui uma prioridade baixa para todas as versões de "
4731 "pacote que pertençam a qualquer distribuição cujo nome do Repositório seja "
4732 "\"<literal>unstable</literal>\"."
4734 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4735 #: apt_preferences.5.xml
4739 "Pin: release n=&debian-testing-codename;\n"
4740 "Pin-Priority: 900\n"
4742 "<programlisting>\n"
4744 "Pin: release a=unstable\n"
4745 "Pin-Priority: 50\n"
4747 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
4748 #: apt_preferences.5.xml
4751 "The following record assigns a high priority to all package versions "
4752 "belonging to any release whose Archive name is \"<literal>stable</literal>\" "
4753 "and whose release Version number is \"<literal>&debian-stable-version;</"
4756 "O registro a seguir atribui uma prioridade alta para todas as versões de "
4757 "pacotes que pertençam a qualquer versão cujo nome do Repositório seja "
4758 "\"<literal>stable</literal>\" e cujo número de versão seja \"<literal>3.0</"
4761 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><programlisting>
4762 #: apt_preferences.5.xml
4766 "Pin: release a=stable, v=&debian-stable-version;\n"
4767 "Pin-Priority: 500\n"
4769 "<programlisting>\n"
4771 "Pin: release a=unstable, v=3.0\n"
4772 "Pin-Priority: 50\n"
4774 #. type: Content of: <refentry><refsect1><refsect2><para>
4775 #: apt_preferences.5.xml
4777 "The effect of the comma operator is similar to an \"and\" in logic: All "
4778 "conditions must be satisfied for the pin to match. There is one exception: "
4779 "For any type of condition (such as two \"a\" conditions), only the last such "
4780 "condition is checked."
4783 #. type: Content of: <refentry><refsect1><refsect2><title>
4784 #: apt_preferences.5.xml
4785 msgid "Regular expressions and &glob; syntax"
4788 #. type: Content of: <refentry><refsect1><refsect2><para>
4789 #: apt_preferences.5.xml
4791 "APT also supports pinning by &glob; expressions, and regular expressions "
4792 "surrounded by slashes. For example, the following example assigns the "
4793 "priority 500 to all packages from experimental where the name starts with "
4794 "gnome (as a &glob;-like expression) or contains the word kde (as a POSIX "
4795 "extended regular expression surrounded by slashes)."
4798 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
4799 #: apt_preferences.5.xml
4802 "Package: gnome* /kde/\n"
4803 "Pin: release a=experimental\n"
4804 "Pin-Priority: 500\n"
4806 "<programlisting>\n"
4808 "Pin: release a=unstable\n"
4809 "Pin-Priority: 50\n"
4811 #. type: Content of: <refentry><refsect1><refsect2><para>
4812 #: apt_preferences.5.xml
4814 "The rule for those expressions is that they can occur anywhere where a "
4815 "string can occur. Thus, the following pin assigns the priority 990 to all "
4816 "packages from a release starting with &ubuntu-codename;."
4819 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
4820 #: apt_preferences.5.xml
4824 "Pin: release n=&ubuntu-codename;*\n"
4825 "Pin-Priority: 990\n"
4827 "<programlisting>\n"
4829 "Pin: release a=unstable\n"
4830 "Pin-Priority: 50\n"
4832 #. type: Content of: <refentry><refsect1><refsect2><para>
4833 #: apt_preferences.5.xml
4835 "If a regular expression occurs in a <literal>Package</literal> field, the "
4836 "behavior is the same as if this regular expression were replaced with a list "
4837 "of all package names it matches. It is undecided whether this will change in "
4838 "the future; thus you should always list wild-card pins first, so later "
4839 "specific pins override it. The pattern \"<literal>*</literal>\" in a "
4840 "Package field is not considered a &glob; expression in itself."
4843 #. type: Content of: <refentry><refsect1><refsect2><title>
4844 #: apt_preferences.5.xml
4846 msgid "How APT Interprets Priorities"
4847 msgstr "Como o APT Interpreta Prioridades"
4849 #. type: Content of: <refentry><refsect1><refsect2><para>
4850 #: apt_preferences.5.xml
4853 "Priorities (P) assigned in the APT preferences file must be positive or "
4854 "negative integers. They are interpreted as follows (roughly speaking):"
4856 "Prioridades (P) atribuídas no arquivo de preferências do APT devem ser "
4857 "números inteiros positivos ou negativos. Eles são interpretados como a "
4858 "seguir (a grosso modo):"
4860 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4861 #: apt_preferences.5.xml
4862 msgid "P >= 1000"
4863 msgstr "P >= 1000"
4865 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4866 #: apt_preferences.5.xml
4869 "causes a version to be installed even if this constitutes a downgrade of the "
4872 "faz com que uma instância seja instalada mesmo caso isso constitua um "
4873 "dowgrade do pacote"
4875 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4876 #: apt_preferences.5.xml
4877 msgid "990 <= P < 1000"
4878 msgstr "990 <= P < 1000"
4880 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4881 #: apt_preferences.5.xml
4884 "causes a version to be installed even if it does not come from the target "
4885 "release, unless the installed version is more recent"
4887 "faz com que uma versão seja instalada mesmo caso a mesma não venha de uma "
4888 "versão alvo, a menos que a versão instalada seja mais recente"
4890 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4891 #: apt_preferences.5.xml
4892 msgid "500 <= P < 990"
4893 msgstr "500 <= P < 990"
4895 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4896 #: apt_preferences.5.xml
4899 "causes a version to be installed unless there is a version available "
4900 "belonging to the target release or the installed version is more recent"
4902 "faz com que uma versão seja instalada a menos que exista uma versão "
4903 "disponível pertencente a versão alvo ou a versão instalada seja mais recente"
4905 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4906 #: apt_preferences.5.xml
4907 msgid "100 <= P < 500"
4908 msgstr "100 <= P < 500"
4910 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4911 #: apt_preferences.5.xml
4914 "causes a version to be installed unless there is a version available "
4915 "belonging to some other distribution or the installed version is more recent"
4917 "faz com que uma versão seja instalada a menos que exista uma versão "
4918 "disponível pertencente a alguma outra distribuição ou a versão instalada "
4921 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4922 #: apt_preferences.5.xml
4923 msgid "0 < P < 100"
4924 msgstr "0 < P < 100"
4926 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4927 #: apt_preferences.5.xml
4930 "causes a version to be installed only if there is no installed version of "
4933 "faz com que uma versão seja instalada somente caso não exista uma versão "
4934 "instalada do pacote"
4936 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4937 #: apt_preferences.5.xml
4941 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4942 #: apt_preferences.5.xml
4944 msgid "prevents the version from being installed"
4945 msgstr "impede a versão de ser instalada"
4947 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
4948 #: apt_preferences.5.xml
4952 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
4953 #: apt_preferences.5.xml
4954 msgid "has undefined behaviour, do not use it."
4957 #. type: Content of: <refentry><refsect1><refsect2><para>
4958 #: apt_preferences.5.xml
4961 "The first specific-form record matching an available package version "
4962 "determines the priority of the package version. Failing that, the priority "
4963 "of the package is defined as the maximum of all priorities defined by "
4964 "generic-form records matching the version. Records defined using patterns "
4965 "in the Pin field other than \"*\" are treated like specific-form records."
4967 "Caso um dos registro de forma específica descritos acima case (match) com "
4968 "uma versão disponível do pacote então o primeiro desses registros "
4969 "encontrados determinará a prioridade da versão do pacote. Na falha desse "
4970 "cenário, caso quaisquer registros de forma genérica casem (match) com uma "
4971 "versão do pacote disponível então o primeiro desses registros encontrado "
4972 "determinará a prioridade da versão do pacote."
4974 #. type: Content of: <refentry><refsect1><refsect2><para>
4975 #: apt_preferences.5.xml
4978 "For example, suppose the APT preferences file contains the three records "
4979 "presented earlier:"
4981 "Por exemplo, suponha que o arquivo de preferências do APT contenha os três "
4982 "registros apresentados anteriormente :"
4984 #. type: Content of: <refentry><refsect1><refsect2><programlisting>
4985 #: apt_preferences.5.xml
4989 "Pin: version &good-perl;*\n"
4990 "Pin-Priority: 1001\n"
4993 "Pin: origin \"\"\n"
4994 "Pin-Priority: 999\n"
4997 "Pin: release unstable\n"
4998 "Pin-Priority: 50\n"
5000 "<programlisting>\n"
5002 "Pin: version 5.8*\n"
5003 "Pin-Priority: 1001\n"
5006 "Pin: origin \"\"\n"
5007 "Pin-Priority: 999\n"
5010 "Pin: release unstable\n"
5011 "Pin-Priority: 50\n"
5013 #. type: Content of: <refentry><refsect1><refsect2><para>
5014 #: apt_preferences.5.xml
5018 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5019 #: apt_preferences.5.xml
5022 "The most recent available version of the <literal>perl</literal> package "
5023 "will be installed, so long as that version's version number begins with "
5024 "\"<literal>&good-perl;</literal>\". If <emphasis>any</emphasis> &good-perl;"
5025 "* version of <literal>perl</literal> is available and the installed version "
5026 "is &bad-perl;*, then <literal>perl</literal> will be downgraded."
5028 "A versão mais recente disponível do pacote <literal>perl</literal> será "
5029 "instalado, contanto que esse número de versão da versão inicie com "
5030 "\"<literal>5.8</literal>\". Caso <emphasis>qualquer</emphasis> versão 5.8* "
5031 "de <literal>perl</literal> esteja disponível e a versão instalada seja 5.9*, "
5032 "será feito um downgrade do <literal>perl</literal>."
5034 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5035 #: apt_preferences.5.xml
5038 "A version of any package other than <literal>perl</literal> that is "
5039 "available from the local system has priority over other versions, even "
5040 "versions belonging to the target release."
5042 "Uma versão de qualquer pacote diferente de <literal>perl</literal> que "
5043 "esteja disponível no sistema local possui prioridade sobre outras versões, "
5044 "mesmo versões pertencentes a versão alvo."
5046 #. type: Content of: <refentry><refsect1><refsect2><para><itemizedlist><listitem><simpara>
5047 #: apt_preferences.5.xml
5050 "A version of a package whose origin is not the local system but some other "
5051 "site listed in &sources-list; and which belongs to an <literal>unstable</"
5052 "literal> distribution is only installed if it is selected for installation "
5053 "and no version of the package is already installed."
5055 "Uma versão de um pacote cuja origem não seja o sistema local mas sim algum "
5056 "outro site listado no arquivo &sources-list; e que pertença a uma "
5057 "distribuição <literal>unstable</literal> é instalada somente caso a mesma "
5058 "seja selecionada para instalação e nenhuma versão do pacote já esteja "
5061 #. type: Content of: <refentry><refsect1><refsect2><title>
5062 #: apt_preferences.5.xml
5064 msgid "Determination of Package Version and Distribution Properties"
5065 msgstr "Determinação da Versão do Pacote e Propriedades da Distribuição"
5067 #. type: Content of: <refentry><refsect1><refsect2><para>
5068 #: apt_preferences.5.xml
5071 "The locations listed in the &sources-list; file should provide "
5072 "<filename>Packages</filename> and <filename>Release</filename> files to "
5073 "describe the packages available at that location."
5075 "As localidades listadas em um arquivo &sources-list; devem fornecer arquivos "
5076 "<filename>Packages</filename> e <filename>Release</filename> para descrever "
5077 "os pacotes disponíveis nessas localidades."
5079 #. type: Content of: <refentry><refsect1><refsect2><para>
5080 #: apt_preferences.5.xml
5083 "The <filename>Packages</filename> file is normally found in the directory "
5084 "<filename>.../dists/<replaceable>dist-name</replaceable>/"
5085 "<replaceable>component</replaceable>/<replaceable>arch</replaceable></"
5086 "filename>: for example, <filename>.../dists/stable/main/binary-i386/"
5087 "Packages</filename>. It consists of a series of multi-line records, one for "
5088 "each package available in that directory. Only two lines in each record are "
5089 "relevant for setting APT priorities:"
5091 "O arquivo <filename>Packages</filename> é normalmente encontrado no "
5092 "diretório <filename>.../dists/<replaceable>nome-distribuição</replaceable>/"
5093 "<replaceable>componente</replaceable>/<replaceable>arquitetura</"
5094 "replaceable></filename> : por exemplo, <filename>.../dists/stable/main/"
5095 "binary-i386/Packages</filename>. O arquivo consiste de uma série de "
5096 "registros de múltiplas linhas, uma para cada pacote disponível no diretório. "
5097 "Somente duas linhas em cada registro são relevantes para definir prioridades "
5100 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5101 #: apt_preferences.5.xml
5103 msgid "the <literal>Package:</literal> line"
5104 msgstr "a linha <literal>Package:</literal>"
5106 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5107 #: apt_preferences.5.xml
5109 msgid "gives the package name"
5110 msgstr "informa o nome do pacote"
5112 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5113 #: apt_preferences.5.xml
5115 msgid "the <literal>Version:</literal> line"
5116 msgstr "a linha <literal>Version:</literal>"
5118 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5119 #: apt_preferences.5.xml
5121 msgid "gives the version number for the named package"
5122 msgstr "informa o número de versão do pacote"
5124 #. type: Content of: <refentry><refsect1><refsect2><para>
5125 #: apt_preferences.5.xml
5128 "The <filename>Release</filename> file is normally found in the directory "
5129 "<filename>.../dists/<replaceable>dist-name</replaceable></filename>: for "
5130 "example, <filename>.../dists/stable/Release</filename>, or <filename>.../"
5131 "dists/&debian-stable-codename;/Release</filename>. It consists of a single "
5132 "multi-line record which applies to <emphasis>all</emphasis> of the packages "
5133 "in the directory tree below its parent. Unlike the <filename>Packages</"
5134 "filename> file, nearly all of the lines in a <filename>Release</filename> "
5135 "file are relevant for setting APT priorities:"
5137 "O arquivo <filename>Release</filename> é normalmente encontrado no diretório "
5138 "<filename>.../dists/<replaceable>nome-distribuição</replaceable></"
5139 "filename> : por exemplo, <filename>.../dists/stable/Release</filename>, ou "
5140 "<filename>.../dists/woody/Release</filename>. O arquivo consiste de um "
5141 "registro de múltiplas linhas o qual se aplica a <emphasis>todos</emphasis> "
5142 "os pacotes na àrvore de diretórios abaixo de seu diretório pai. Diferente do "
5143 "arquivo <filename>Packages</filename>, quase todas as linhas em um arquivo "
5144 "<filename>Release</filename> são relevantes para a definição de prioridades "
5147 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5148 #: apt_preferences.5.xml
5150 msgid "the <literal>Archive:</literal> or <literal>Suite:</literal> line"
5151 msgstr "a linha <literal>Archive:</literal>"
5153 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5154 #: apt_preferences.5.xml
5157 "names the archive to which all the packages in the directory tree belong. "
5158 "For example, the line \"Archive: stable\" or \"Suite: stable\" specifies "
5159 "that all of the packages in the directory tree below the parent of the "
5160 "<filename>Release</filename> file are in a <literal>stable</literal> "
5161 "archive. Specifying this value in the APT preferences file would require "
5164 "dá nome ao repositório para o qual todos os pacotes na àrvore de diretório "
5165 "pertencem. Por exemplo, a linha \"Archive: stable\" especifica que todos os "
5166 "pacotes na àrvore de diretório abaixo do diretório pai do arquivo "
5167 "<filename>Release</filename> estão no respositório <literal>stable</"
5168 "literal>. Especificar esse valor no arquivo de preferências do APT iria "
5169 "requerer a linha :"
5171 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5172 #: apt_preferences.5.xml
5174 msgid "Pin: release a=stable\n"
5176 "<programlisting>\n"
5177 "Pin: release a=stable\n"
5179 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5180 #: apt_preferences.5.xml
5182 msgid "the <literal>Codename:</literal> line"
5183 msgstr "a linha <literal>Component:</literal>"
5185 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5186 #: apt_preferences.5.xml
5189 "names the codename to which all the packages in the directory tree belong. "
5190 "For example, the line \"Codename: &debian-testing-codename;\" specifies that "
5191 "all of the packages in the directory tree below the parent of the "
5192 "<filename>Release</filename> file belong to a version named <literal>&debian-"
5193 "testing-codename;</literal>. Specifying this value in the APT preferences "
5194 "file would require the line:"
5196 "dá nome ao repositório para o qual todos os pacotes na àrvore de diretório "
5197 "pertencem. Por exemplo, a linha \"Archive: stable\" especifica que todos os "
5198 "pacotes na àrvore de diretório abaixo do diretório pai do arquivo "
5199 "<filename>Release</filename> estão no respositório <literal>stable</"
5200 "literal>. Especificar esse valor no arquivo de preferências do APT iria "
5201 "requerer a linha :"
5203 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5204 #: apt_preferences.5.xml
5206 msgid "Pin: release n=&debian-testing-codename;\n"
5208 "<programlisting>\n"
5209 "Pin: release a=stable\n"
5211 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5212 #: apt_preferences.5.xml
5215 "names the release version. For example, the packages in the tree might "
5216 "belong to Debian release version &debian-stable-version;. Note that there "
5217 "is normally no version number for the <literal>testing</literal> and "
5218 "<literal>unstable</literal> distributions because they have not been "
5219 "released yet. Specifying this in the APT preferences file would require one "
5220 "of the following lines."
5222 "dá nome a versão da distribuição. Por exemplo, os pacote na àrvore podem "
5223 "pertencer a distribuição Debian versão 3.0. Note que normalmente não existe "
5224 "número de versão para as distribuições <literal>testing</literal> e "
5225 "<literal>unstable</literal> devido as mesmas não terem sido lançadas ainda. "
5226 "Especificar isso no arquivo de preferências do APT iria requerer uma das "
5229 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5230 #: apt_preferences.5.xml
5233 "Pin: release v=&debian-stable-version;\n"
5234 "Pin: release a=stable, v=&debian-stable-version;\n"
5235 "Pin: release &debian-stable-version;\n"
5237 "<programlisting>\n"
5238 "Pin: release v=3.0\n"
5239 "Pin: release a=stable v=3.0\n"
5240 "Pin: release 3.0\n"
5242 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5243 #: apt_preferences.5.xml
5245 msgid "the <literal>Component:</literal> line"
5246 msgstr "a linha <literal>Component:</literal>"
5248 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5249 #: apt_preferences.5.xml
5252 "names the licensing component associated with the packages in the directory "
5253 "tree of the <filename>Release</filename> file. For example, the line "
5254 "\"Component: main\" specifies that all the packages in the directory tree "
5255 "are from the <literal>main</literal> component, which entails that they are "
5256 "licensed under terms listed in the Debian Free Software Guidelines. "
5257 "Specifying this component in the APT preferences file would require the line:"
5259 "dá nome ao componente de licenciamento associado com os pacotes na àrvore de "
5260 "diretório do arquivo <filename>Release</filename>. Por exemplo, a linha "
5261 "\"Component: main\" especifica que todos os pacotes na àrvore de diretório "
5262 "são do componente <literal>main</literal>, o que significa que as mesmas "
5263 "estão licenciadas sob os termos da Linhas Guias Debian para o Software Livre "
5264 "(a DFSG). Especificar esse componente no arquivo de preferências do APT iria "
5265 "requerer a linha :"
5267 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5268 #: apt_preferences.5.xml
5270 msgid "Pin: release c=main\n"
5272 "<programlisting>\n"
5273 "Pin: release c=main\n"
5275 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5276 #: apt_preferences.5.xml
5278 msgid "the <literal>Origin:</literal> line"
5279 msgstr "a linha <literal>Origin:</literal>"
5281 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5282 #: apt_preferences.5.xml
5285 "names the originator of the packages in the directory tree of the "
5286 "<filename>Release</filename> file. Most commonly, this is <literal>Debian</"
5287 "literal>. Specifying this origin in the APT preferences file would require "
5290 "dá nome ao produtor dos pacotes na àrvore de diretório do arquivo "
5291 "<filename>Release</filename>. O mais comum é esse valor ser <literal>Debian</"
5292 "literal>. Especificar essa origem no arquivo de preferências do APT iria "
5293 "requerer a linha :"
5295 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5296 #: apt_preferences.5.xml
5298 msgid "Pin: release o=Debian\n"
5300 "<programlisting>\n"
5301 "Pin: release o=Debian\n"
5303 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><term>
5304 #: apt_preferences.5.xml
5306 msgid "the <literal>Label:</literal> line"
5307 msgstr "a linha <literal>Label:</literal>"
5309 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
5310 #: apt_preferences.5.xml
5313 "names the label of the packages in the directory tree of the "
5314 "<filename>Release</filename> file. Most commonly, this is <literal>Debian</"
5315 "literal>. Specifying this label in the APT preferences file would require "
5318 "dá nome ao rótulo (label) dos pacotes na árvore de diretório. O mais comum é "
5319 "esse valor ser <literal>Debian</literal>. Especificar esse rótulo (label) no "
5320 "arquivo de preferências do APT iria requerer a linha :"
5322 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><programlisting>
5323 #: apt_preferences.5.xml
5325 msgid "Pin: release l=Debian\n"
5327 "<programlisting>\n"
5328 "Pin: release l=Debian\n"
5330 #. type: Content of: <refentry><refsect1><refsect2><para>
5331 #: apt_preferences.5.xml
5334 "All of the <filename>Packages</filename> and <filename>Release</filename> "
5335 "files retrieved from locations listed in the &sources-list; file are stored "
5336 "in the directory <filename>/var/lib/apt/lists</filename>, or in the file "
5337 "named by the variable <literal>Dir::State::Lists</literal> in the "
5338 "<filename>apt.conf</filename> file. For example, the file <filename>debian."
5339 "lcs.mit.edu_debian_dists_unstable_contrib_binary-i386_Release</filename> "
5340 "contains the <filename>Release</filename> file retrieved from the site "
5341 "<literal>debian.lcs.mit.edu</literal> for <literal>binary-i386</literal> "
5342 "architecture files from the <literal>contrib</literal> component of the "
5343 "<literal>unstable</literal> distribution."
5345 "Todos os arquivos <filename>Packages</filename> e <filename>Release</"
5346 "filename> obtidos das localidades listadas no arquivo &sources-list; são "
5347 "mantidos no diretório <filename>/var/lib/apt/lists</filename> ou no arquivo "
5348 "indicado pela variável <literal>Dir::State::Lists</literal> no arquivo "
5349 "<filename>apt.conf</filename>. Por exemplo, o arquivo <filename>debian.lcs."
5350 "mit.edu_debian_dists_unstable_contrib_binary-i386_Release</filename> contém "
5351 "o arquivo <filename>Release</filename> obtido do site <literal>debian.lcs."
5352 "mit.edu</literal> para a arquitetura <literal>binary-i386</literal>, "
5353 "arquivos do componente <literal>contrib</literal> da distribuição "
5354 "<literal>unstable</literal>."
5356 #. type: Content of: <refentry><refsect1><refsect2><title>
5357 #: apt_preferences.5.xml
5359 msgid "Optional Lines in an APT Preferences Record"
5360 msgstr "Linhas Opcionais em um Registro de Preferências do APT"
5362 #. type: Content of: <refentry><refsect1><refsect2><para>
5363 #: apt_preferences.5.xml
5366 "Each record in the APT preferences file can optionally begin with one or "
5367 "more lines beginning with the word <literal>Explanation:</literal>. This "
5368 "provides a place for comments."
5370 "Cada registro em um arquivo de preferências do APT pode opcionalmente "
5371 "iniciar com uma ou mais linhas iniciadas com a palavra <literal>Explanation:"
5372 "</literal>. Isto oferece um local para inserir comentários."
5374 #. type: Content of: <refentry><refsect1><refsect2><title>
5375 #: apt_preferences.5.xml
5377 msgid "Tracking Stable"
5378 msgstr "Acompanhando a Stable"
5380 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5381 #: apt_preferences.5.xml
5384 "Explanation: Uninstall or do not install any Debian-originated\n"
5385 "Explanation: package versions other than those in the stable distro\n"
5387 "Pin: release a=stable\n"
5388 "Pin-Priority: 900\n"
5391 "Pin: release o=Debian\n"
5392 "Pin-Priority: -10\n"
5394 "<programlisting>\n"
5395 "Explanation: Desinstala ou não instala nenhuma versão de pacote originada\n"
5396 "Explanation: do Debian a não ser aquelas na distribuição stable\n"
5398 "Pin: release a=stable\n"
5399 "Pin-Priority: 900\n"
5402 "Pin: release o=Debian\n"
5403 "Pin-Priority: -10\n"
5405 #. type: Content of: <refentry><refsect1><refsect2><para>
5406 #: apt_preferences.5.xml
5409 "The following APT preferences file will cause APT to assign a priority "
5410 "higher than the default (500) to all package versions belonging to a "
5411 "<literal>stable</literal> distribution and a prohibitively low priority to "
5412 "package versions belonging to other <literal>Debian</literal> "
5413 "distributions. <placeholder type=\"programlisting\" id=\"0\"/>"
5415 "O arquivo de preferências do APT a seguir fará com que o APT atribua uma "
5416 "prioridade maior do que a prioridade padrão (500) para todas as versões de "
5417 "pacotes pertencentes a distribuição <literal>stable</literal> e uma "
5418 "prioridade proibitivamente baixa para versões de pacotes pertencentes a "
5419 "outras distribuições <literal>Debian</literal>."
5421 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5422 #: apt_preferences.5.xml
5425 "apt-get install <replaceable>package-name</replaceable>\n"
5427 "apt-get dist-upgrade\n"
5429 "<programlisting>\n"
5430 "apt-get install <replaceable>nome-pacote</replaceable>\n"
5432 "apt-get dist-upgrade\n"
5434 #. type: Content of: <refentry><refsect1><refsect2><para>
5435 #: apt_preferences.5.xml
5438 "With a suitable &sources-list; file and the above preferences file, any of "
5439 "the following commands will cause APT to upgrade to the latest "
5440 "<literal>stable</literal> version(s). <placeholder type=\"programlisting\" "
5443 "Com um arquivo &sources-list; apropriado e o arquivo de preferências acima, "
5444 "quaisquer um dos comandos a seguir farão com que o APT atualize para a(s) "
5445 "ulítma(s) versão(ôes) <literal>stable</literal>."
5447 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5448 #: apt_preferences.5.xml
5450 msgid "apt-get install <replaceable>package</replaceable>/testing\n"
5452 "<programlisting>\n"
5453 "apt-get install <replaceable>pacote</replaceable>/testing\n"
5455 #. type: Content of: <refentry><refsect1><refsect2><para>
5456 #: apt_preferences.5.xml
5459 "The following command will cause APT to upgrade the specified package to the "
5460 "latest version from the <literal>testing</literal> distribution; the package "
5461 "will not be upgraded again unless this command is given again. <placeholder "
5462 "type=\"programlisting\" id=\"0\"/>"
5464 "O comando a seguir fará com que o APT atualize o pacote especificado para a "
5465 "última versão da distribuição <literal>testing</literal>; o pacote não serpa "
5466 "atualizado novamente a menos que esse comando seja executado novamente."
5468 #. type: Content of: <refentry><refsect1><refsect2><title>
5469 #: apt_preferences.5.xml
5471 msgid "Tracking Testing or Unstable"
5472 msgstr "Acompanhando a Testing"
5474 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5475 #: apt_preferences.5.xml
5479 "Pin: release a=testing\n"
5480 "Pin-Priority: 900\n"
5483 "Pin: release a=unstable\n"
5484 "Pin-Priority: 800\n"
5487 "Pin: release o=Debian\n"
5488 "Pin-Priority: -10\n"
5490 "<programlisting>\n"
5492 "Pin: release a=testing\n"
5493 "Pin-Priority: 900\n"
5496 "Pin: release a=unstable\n"
5497 "Pin-Priority: 800\n"
5500 "Pin: release o=Debian\n"
5501 "Pin-Priority: -10\n"
5503 #. type: Content of: <refentry><refsect1><refsect2><para>
5504 #: apt_preferences.5.xml
5507 "The following APT preferences file will cause APT to assign a high priority "
5508 "to package versions from the <literal>testing</literal> distribution, a "
5509 "lower priority to package versions from the <literal>unstable</literal> "
5510 "distribution, and a prohibitively low priority to package versions from "
5511 "other <literal>Debian</literal> distributions. <placeholder type="
5512 "\"programlisting\" id=\"0\"/>"
5514 "O arquivo de preferências do APT a seguir fará com que o APT atribua uma "
5515 "prioridade maior para versões de pacote da distribuição <literal>testing</"
5516 "literal>, uma prioridade menor para versões de pacotes da distribuição "
5517 "<literal>unstable</literal> e uma prioridade proibitivamente baixa para "
5518 "versões de pacotes de outras distribuições <literal>Debian</literal>."
5520 #. type: Content of: <refentry><refsect1><refsect2><para>
5521 #: apt_preferences.5.xml
5524 "With a suitable &sources-list; file and the above preferences file, any of "
5525 "the following commands will cause APT to upgrade to the latest "
5526 "<literal>testing</literal> version(s). <placeholder type=\"programlisting\" "
5529 "Com um arquivo &sources-list; adequado e o arquivo de preferências do APT "
5530 "acima, quaisquer dos comandos a seguir farão com que o APT atualize para "
5531 "a(s) última(s) versão(ões) <literal>testing</literal>."
5533 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5534 #: apt_preferences.5.xml
5536 msgid "apt-get install <replaceable>package</replaceable>/unstable\n"
5538 "<programlisting>\n"
5539 "apt-get install <replaceable>pacote</replaceable>/unstable\n"
5541 #. type: Content of: <refentry><refsect1><refsect2><para>
5542 #: apt_preferences.5.xml
5545 "The following command will cause APT to upgrade the specified package to the "
5546 "latest version from the <literal>unstable</literal> distribution. "
5547 "Thereafter, <command>apt-get upgrade</command> will upgrade the package to "
5548 "the most recent <literal>testing</literal> version if that is more recent "
5549 "than the installed version, otherwise, to the most recent <literal>unstable</"
5550 "literal> version if that is more recent than the installed version. "
5551 "<placeholder type=\"programlisting\" id=\"0\"/>"
5553 "O comando a seguir fará com que o APT atualize o pacote especificado para a "
5554 "última versão da distribuição <literal>unstable</literal>. Assim, o comando "
5555 "<command>apt-get upgrade</command> irá atualizar o pacote para a versão "
5556 "<literal>testing</literal> mais recente caso essa versão seja mais recente "
5557 "que a versão instalada, caso não seja, o pacote será atualizado para a "
5558 "versão <literal>unstable</literal> mais recente caso a mesma seja mais "
5559 "recente que a versão instalada."
5561 #. type: Content of: <refentry><refsect1><refsect2><title>
5562 #: apt_preferences.5.xml
5563 msgid "Tracking the evolution of a codename release"
5566 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5567 #: apt_preferences.5.xml
5570 "Explanation: Uninstall or do not install any Debian-originated package versions\n"
5571 "Explanation: other than those in the distribution codenamed with &debian-testing-codename; or sid\n"
5573 "Pin: release n=&debian-testing-codename;\n"
5574 "Pin-Priority: 900\n"
5576 "Explanation: Debian unstable is always codenamed with sid\n"
5578 "Pin: release n=sid\n"
5579 "Pin-Priority: 800\n"
5582 "Pin: release o=Debian\n"
5583 "Pin-Priority: -10\n"
5585 "<programlisting>\n"
5586 "Explanation: Desinstala ou não instala nenhuma versão de pacote originada\n"
5587 "Explanation: do Debian a não ser aquelas na distribuição stable\n"
5589 "Pin: release a=stable\n"
5590 "Pin-Priority: 900\n"
5593 "Pin: release o=Debian\n"
5594 "Pin-Priority: -10\n"
5596 #. type: Content of: <refentry><refsect1><refsect2><para>
5597 #: apt_preferences.5.xml
5599 "The following APT preferences file will cause APT to assign a priority "
5600 "higher than the default (500) to all package versions belonging to a "
5601 "specified codename of a distribution and a prohibitively low priority to "
5602 "package versions belonging to other <literal>Debian</literal> distributions, "
5603 "codenames and archives. Note that with this APT preference APT will follow "
5604 "the migration of a release from the archive <literal>testing</literal> to "
5605 "<literal>stable</literal> and later <literal>oldstable</literal>. If you "
5606 "want to follow for example the progress in <literal>testing</literal> "
5607 "notwithstanding the codename changes you should use the example "
5608 "configurations above. <placeholder type=\"programlisting\" id=\"0\"/>"
5611 #. type: Content of: <refentry><refsect1><refsect2><para>
5612 #: apt_preferences.5.xml
5615 "With a suitable &sources-list; file and the above preferences file, any of "
5616 "the following commands will cause APT to upgrade to the latest version(s) in "
5617 "the release codenamed with <literal>&debian-testing-codename;</literal>. "
5618 "<placeholder type=\"programlisting\" id=\"0\"/>"
5620 "Com um arquivo &sources-list; apropriado e o arquivo de preferências acima, "
5621 "quaisquer um dos comandos a seguir farão com que o APT atualize para a(s) "
5622 "ulítma(s) versão(ôes) <literal>stable</literal>."
5624 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
5625 #: apt_preferences.5.xml
5627 msgid "apt-get install <replaceable>package</replaceable>/sid\n"
5629 "<programlisting>\n"
5630 "apt-get install <replaceable>pacote</replaceable>/testing\n"
5632 #. type: Content of: <refentry><refsect1><refsect2><para>
5633 #: apt_preferences.5.xml
5636 "The following command will cause APT to upgrade the specified package to the "
5637 "latest version from the <literal>sid</literal> distribution. Thereafter, "
5638 "<command>apt-get upgrade</command> will upgrade the package to the most "
5639 "recent <literal>&debian-testing-codename;</literal> version if that is more "
5640 "recent than the installed version, otherwise, to the most recent "
5641 "<literal>sid</literal> version if that is more recent than the installed "
5642 "version. <placeholder type=\"programlisting\" id=\"0\"/>"
5644 "O comando a seguir fará com que o APT atualize o pacote especificado para a "
5645 "última versão da distribuição <literal>unstable</literal>. Assim, o comando "
5646 "<command>apt-get upgrade</command> irá atualizar o pacote para a versão "
5647 "<literal>testing</literal> mais recente caso essa versão seja mais recente "
5648 "que a versão instalada, caso não seja, o pacote será atualizado para a "
5649 "versão <literal>unstable</literal> mais recente caso a mesma seja mais "
5650 "recente que a versão instalada."
5652 #. type: Content of: <refentry><refsect1><para>
5653 #: apt_preferences.5.xml
5655 msgid "&apt-get; &apt-cache; &apt-conf; &sources-list;"
5656 msgstr "&apt-get; &apt-cache; &apt-conf; &sources-list;"
5658 #. type: Content of: <refentry><refnamediv><refpurpose>
5659 #: sources.list.5.xml
5660 msgid "List of configured APT data sources"
5663 #. type: Content of: <refentry><refsect1><para>
5664 #: sources.list.5.xml
5666 "The source list <filename>/etc/apt/sources.list</filename> and the files "
5667 "contained in <filename>/etc/apt/sources.list.d/</filename> are designed to "
5668 "support any number of active sources and a variety of source media. The "
5669 "files list one source per line (one-line style) or contain multiline stanzas "
5670 "defining one or more sources per stanza (deb822 style), with the most "
5671 "preferred source listed first (in case a single version is available from "
5672 "more than one source). The information available from the configured sources "
5673 "is acquired by <command>apt-get update</command> (or by an equivalent "
5674 "command from another APT front-end)."
5677 #. type: Content of: <refentry><refsect1><title>
5678 #: sources.list.5.xml
5679 msgid "sources.list.d"
5682 #. type: Content of: <refentry><refsect1><para>
5683 #: sources.list.5.xml
5685 "The <filename>/etc/apt/sources.list.d</filename> directory provides a way to "
5686 "add sources.list entries in separate files. Two different file formats are "
5687 "allowed as described in the next two sections. Filenames need to have "
5688 "either the extension <filename>.list</filename> or <filename>.sources</"
5689 "filename> depending on the contained format. The filenames may only contain "
5690 "letters (a-z and A-Z), digits (0-9), underscore (_), hyphen (-) and period "
5691 "(.) characters. Otherwise APT will print a notice that it has ignored a "
5692 "file, unless that file matches a pattern in the <literal>Dir::Ignore-Files-"
5693 "Silently</literal> configuration list - in which case it will be silently "
5697 #. type: Content of: <refentry><refsect1><title>
5698 #: sources.list.5.xml
5699 msgid "One-Line-Style Format"
5702 #. type: Content of: <refentry><refsect1><para>
5703 #: sources.list.5.xml
5705 "Files in this format have the extension <filename>.list</filename>. Each "
5706 "line specifying a source starts with a type (e.g. <literal>deb-src</"
5707 "literal>) followed by options and arguments for this type. Individual "
5708 "entries cannot be continued onto a following line. Empty lines are ignored, "
5709 "and a <literal>#</literal> character anywhere on a line marks the remainder "
5710 "of that line as a comment. Consequently an entry can be disabled by "
5711 "commenting out the entire line. If options should be provided they are "
5712 "separated by spaces and all of them together are enclosed by square brackets "
5713 "(<literal>[]</literal>) included in the line after the type separated from "
5714 "it with a space. If an option allows multiple values these are separated "
5715 "from each other with a comma (<literal>,</literal>). An option name is "
5716 "separated from its value(s) by an equals sign (<literal>=</literal>). "
5717 "Multivalue options also have <literal>-=</literal> and <literal>+=</literal> "
5718 "as separators, which instead of replacing the default with the given "
5719 "value(s) modify the default value(s) to remove or include the given values."
5722 #. type: Content of: <refentry><refsect1><para>
5723 #: sources.list.5.xml
5725 "This is the traditional format and supported by all apt versions. Note that "
5726 "not all options as described below are supported by all apt versions. Note "
5727 "also that some older applications parsing this format on their own might not "
5728 "expect to encounter options as they were uncommon before the introduction of "
5729 "multi-architecture support."
5732 #. type: Content of: <refentry><refsect1><title>
5733 #: sources.list.5.xml
5734 msgid "deb822-Style Format"
5737 #. type: Content of: <refentry><refsect1><para>
5738 #: sources.list.5.xml
5740 "Files in this format have the extension <filename>.sources</filename>. The "
5741 "format is similar in syntax to other files used by Debian and its "
5742 "derivatives, such as the metadata files that apt will download from the "
5743 "configured sources or the <filename>debian/control</filename> file in a "
5744 "Debian source package. Individual entries are separated by an empty line; "
5745 "additional empty lines are ignored, and a <literal>#</literal> character at "
5746 "the start of the line marks the entire line as a comment. An entry can hence "
5747 "be disabled by commenting out each line belonging to the stanza, but it is "
5748 "usually easier to add the field \"Enabled: no\" to the stanza to disable the "
5749 "entry. Removing the field or setting it to yes reenables it. Options have "
5750 "the same syntax as every other field: A fieldname separated by a colon "
5751 "(<literal>:</literal>) and optionally spaces from its value(s). Note "
5752 "especially that multiple values are separated by spaces, not by commas as in "
5753 "the one-line format. Multivalue fields like <literal>Architectures</literal> "
5754 "also have <literal>Architectures-Add</literal> and <literal>Architectures-"
5755 "Remove</literal> to modify the default value rather than replacing it."
5758 #. type: Content of: <refentry><refsect1><para>
5759 #: sources.list.5.xml
5761 "This is a new format supported by apt itself since version 1.1. Previous "
5762 "versions ignore such files with a notice message as described earlier. It "
5763 "is intended to make this format gradually the default format, deprecating "
5764 "the previously described one-line-style format, as it is easier to create, "
5765 "extend and modify for humans and machines alike especially if a lot of "
5766 "sources and/or options are involved. Developers who are working with and/or "
5767 "parsing apt sources are highly encouraged to add support for this format and "
5768 "to contact the APT team to coordinate and share this work. Users can freely "
5769 "adopt this format already, but may encounter problems with software not "
5770 "supporting the format yet."
5773 #. type: Content of: <refentry><refsect1><title>
5774 #: sources.list.5.xml
5775 msgid "The deb and deb-src Types: General Format"
5778 #. type: Content of: <refentry><refsect1><para>
5779 #: sources.list.5.xml
5781 "The <literal>deb</literal> type references a typical two-level Debian "
5782 "archive, <filename>distribution/component</filename>. The "
5783 "<literal>distribution</literal> is generally a suite name like "
5784 "<literal>stable</literal> or <literal>testing</literal> or a codename like "
5785 "<literal>&debian-stable-codename;</literal> or <literal>&debian-testing-"
5786 "codename;</literal> while component is one of <literal>main</literal>, "
5787 "<literal>contrib</literal> or <literal>non-free</literal>. The <literal>deb-"
5788 "src</literal> type references a Debian distribution's source code in the "
5789 "same form as the <literal>deb</literal> type. A <literal>deb-src</literal> "
5790 "line is required to fetch source indexes."
5793 #. type: Content of: <refentry><refsect1><para>
5794 #: sources.list.5.xml
5796 "The format for two one-line-style entries using the <literal>deb</literal> "
5797 "and <literal>deb-src</literal> types is:"
5800 #. type: Content of: <refentry><refsect1><literallayout>
5801 #: sources.list.5.xml
5804 "deb [ option1=value1 option2=value2 ] uri suite [component1] [component2] [...]\n"
5805 "deb-src [ option1=value1 option2=value2 ] uri suite [component1] [component2] [...]"
5808 #. type: Content of: <refentry><refsect1><para><literallayout>
5809 #: sources.list.5.xml
5812 " Types: deb deb-src\n"
5815 " Components: [component1] [component2] [...]\n"
5816 " option1: value1\n"
5817 " option2: value2\n"
5821 #. type: Content of: <refentry><refsect1><para>
5822 #: sources.list.5.xml
5824 "Alternatively the equivalent entry in deb822 style looks like this: "
5825 "<placeholder type=\"literallayout\" id=\"0\"/>"
5828 #. type: Content of: <refentry><refsect1><para>
5829 #: sources.list.5.xml
5831 "The URI for the <literal>deb</literal> type must specify the base of the "
5832 "Debian distribution, from which APT will find the information it needs. "
5833 "<literal>suite</literal> can specify an exact path, in which case the "
5834 "components must be omitted and <literal>suite</literal> must end with a "
5835 "slash (<literal>/</literal>). This is useful for the case when only a "
5836 "particular sub-directory of the archive denoted by the URI is of interest. "
5837 "If <literal>suite</literal> does not specify an exact path, at least one "
5838 "<literal>component</literal> must be present."
5841 #. type: Content of: <refentry><refsect1><para>
5842 #: sources.list.5.xml
5844 "<literal>suite</literal> may also contain a variable, <literal>$(ARCH)</"
5845 "literal> which expands to the Debian architecture (such as <literal>amd64</"
5846 "literal> or <literal>armel</literal>) used on the system. This permits "
5847 "architecture-independent <filename>sources.list</filename> files to be used. "
5848 "In general this is only of interest when specifying an exact path; "
5849 "<literal>APT</literal> will automatically generate a URI with the current "
5850 "architecture otherwise."
5853 #. type: Content of: <refentry><refsect1><para>
5854 #: sources.list.5.xml
5856 "Especially in the one-line-style format since only one distribution can be "
5857 "specified per line it may be necessary to have multiple lines for the same "
5858 "URI, if a subset of all available distributions or components at that "
5859 "location is desired. APT will sort the URI list after it has generated a "
5860 "complete set internally, and will collapse multiple references to the same "
5861 "Internet host, for instance, into a single connection, so that it does not "
5862 "inefficiently establish a connection, close it, do something else, and then "
5863 "re-establish a connection to that same host. APT also parallelizes "
5864 "connections to different hosts to more effectively deal with sites with low "
5868 #. type: Content of: <refentry><refsect1><para>
5869 #: sources.list.5.xml
5871 "It is important to list sources in order of preference, with the most "
5872 "preferred source listed first. Typically this will result in sorting by "
5873 "speed from fastest to slowest (CD-ROM followed by hosts on a local network, "
5874 "followed by distant Internet hosts, for example)."
5877 #. type: Content of: <refentry><refsect1><para><literallayout>
5878 #: sources.list.5.xml
5880 msgid "&sourceslist-list-format;"
5883 #. type: Content of: <refentry><refsect1><para><literallayout>
5884 #: sources.list.5.xml
5886 msgid "&sourceslist-sources-format;"
5889 #. type: Content of: <refentry><refsect1><para>
5890 #: sources.list.5.xml
5892 "As an example, the sources for your distribution could look like this in one-"
5893 "line-style format: <placeholder type=\"literallayout\" id=\"0\"/> or like "
5894 "this in deb822 style format: <placeholder type=\"literallayout\" id=\"1\"/>"
5897 #. type: Content of: <refentry><refsect1><title>
5898 #: sources.list.5.xml
5899 msgid "The deb and deb-src types: Options"
5902 #. type: Content of: <refentry><refsect1><para>
5903 #: sources.list.5.xml
5905 "Each source entry can have options specified to modify which source is "
5906 "accessed and how data is acquired from it. Format, syntax and names of the "
5907 "options vary between the one-line-style and deb822-style formats as "
5908 "described, but they both have the same options available. For simplicity we "
5909 "list the deb822 fieldname and provide the one-line name in brackets. "
5910 "Remember that besides setting multivalue options explicitly, there is also "
5911 "the option to modify them based on the default, but we aren't listing those "
5912 "names explicitly here. Unsupported options are silently ignored by all APT "
5916 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5917 #: sources.list.5.xml
5919 "<option>Architectures</option> (<option>arch</option>) is a multivalue "
5920 "option defining for which architectures information should be downloaded. If "
5921 "this option isn't set the default is all architectures as defined by the "
5922 "<option>APT::Architectures</option> config option."
5925 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5926 #: sources.list.5.xml
5928 "<option>Languages</option> (<option>lang</option>) is a multivalue option "
5929 "defining for which languages information such as translated package "
5930 "descriptions should be downloaded. If this option isn't set the default is "
5931 "all languages as defined by the <option>Acquire::Languages</option> config "
5935 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5936 #: sources.list.5.xml
5938 "<option>Targets</option> (<option>target</option>) is a multivalue option "
5939 "defining which download targets apt will try to acquire from this source. If "
5940 "not specified, the default set is defined by the <option>Acquire::"
5941 "IndexTargets</option> configuration scope (targets are specified by their "
5942 "name in the <literal>Created-By</literal> field). Additionally, targets can "
5943 "be enabled or disabled by using the <literal>Identifier</literal> field as "
5944 "an option with a boolean value instead of using this multivalue option."
5947 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5948 #: sources.list.5.xml
5950 "<option>PDiffs</option> (<option>pdiffs</option>) is a yes/no value which "
5951 "controls if APT should try to use PDiffs to update old indexes instead of "
5952 "downloading the new indexes entirely. The value of this option is ignored if "
5953 "the repository doesn't announce the availability of PDiffs. Defaults to the "
5954 "value of the option with the same name for a specific index file defined in "
5955 "the <option>Acquire::IndexTargets</option> scope, which itself defaults to "
5956 "the value of configuration option <option>Acquire::PDiffs</option> which "
5957 "defaults to <literal>yes</literal>."
5960 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5961 #: sources.list.5.xml
5963 "<option>By-Hash</option> (<option>by-hash</option>) can have the value "
5964 "<literal>yes</literal>, <literal>no</literal> or <literal>force</literal> "
5965 "and controls if APT should try to acquire indexes via a URI constructed from "
5966 "a hashsum of the expected file instead of using the well-known stable "
5967 "filename of the index. Using this can avoid hashsum mismatches, but requires "
5968 "a supporting mirror. A <literal>yes</literal> or <literal>no</literal> value "
5969 "activates/disables the use of this feature if this source indicates support "
5970 "for it, while <literal>force</literal> will enable the feature regardless of "
5971 "what the source indicates. Defaults to the value of the option of the same "
5972 "name for a specific index file defined in the <option>Acquire::IndexTargets</"
5973 "option> scope, which itself defaults to the value of configuration option "
5974 "<option>Acquire::By-Hash</option> which defaults to <literal>yes</literal>."
5977 #. type: Content of: <refentry><refsect1><para>
5978 #: sources.list.5.xml
5980 "Furthermore, there are options which if set affect <emphasis>all</emphasis> "
5981 "sources with the same URI and Suite, so they have to be set on all such "
5982 "entries and can not be varied between different components. APT will try to "
5983 "detect and error out on such anomalies."
5986 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5987 #: sources.list.5.xml
5989 "<option>Allow-Insecure</option> (<option>allow-insecure</option>), "
5990 "<option>Allow-Weak</option> (<option>allow-weak</option>) and <option>Allow-"
5991 "Downgrade-To-Insecure</option> (<option>allow-downgrade-to-insecure</"
5992 "option>) are boolean values which all default to <literal>no</literal>. If "
5993 "set to <literal>yes</literal> they circumvent parts of &apt-secure; and "
5994 "should therefore not be used lightly!"
5997 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
5998 #: sources.list.5.xml
6000 "<option>Trusted</option> (<option>trusted</option>) is a tri-state value "
6001 "which defaults to APT deciding if a source is considered trusted or if "
6002 "warnings should be raised before e.g. packages are installed from this "
6003 "source. This option can be used to override that decision. The value "
6004 "<literal>yes</literal> tells APT always to consider this source as trusted, "
6005 "even if it doesn't pass authentication checks. It disables parts of &apt-"
6006 "secure;, and should therefore only be used in a local and trusted context "
6007 "(if at all) as otherwise security is breached. The value <literal>no</"
6008 "literal> does the opposite, causing the source to be handled as untrusted "
6009 "even if the authentication checks passed successfully. The default value "
6010 "can't be set explicitly."
6013 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
6014 #: sources.list.5.xml
6016 "<option>Signed-By</option> (<option>signed-by</option>) is either an "
6017 "absolute path to a keyring file (has to be accessible and readable for the "
6018 "<literal>_apt</literal> user, so ensure everyone has read-permissions on the "
6019 "file) or one or more fingerprints of keys either in the <filename>trusted."
6020 "gpg</filename> keyring or in the keyrings in the <filename>trusted.gpg.d/</"
6021 "filename> directory (see <command>apt-key fingerprint</command>). If the "
6022 "option is set, only the key(s) in this keyring or only the keys with these "
6023 "fingerprints are used for the &apt-secure; verification of this repository. "
6024 "Defaults to the value of the option with the same name if set in the "
6025 "previously acquired <filename>Release</filename> file. Otherwise all keys "
6026 "in the trusted keyrings are considered valid signers for this repository."
6029 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
6030 #: sources.list.5.xml
6032 "<option>Check-Valid-Until</option> (<option>check-valid-until</option>) is "
6033 "a yes/no value which controls if APT should try to detect replay attacks. A "
6034 "repository creator can declare a time until which the data provided in the "
6035 "repository should be considered valid, and if this time is reached, but no "
6036 "new data is provided, the data is considered expired and an error is "
6037 "raised. Besides increasing security, as a malicious attacker can't send old "
6038 "data forever to prevent a user from upgrading to a new version, this also "
6039 "helps users identify mirrors which are no longer updated. However, some "
6040 "repositories such as historic archives are not updated any more by design, "
6041 "so this check can be disabled by setting this option to <literal>no</"
6042 "literal>. Defaults to the value of configuration option <option>Acquire::"
6043 "Check-Valid-Until</option> which itself defaults to <literal>yes</literal>."
6046 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
6047 #: sources.list.5.xml
6049 "<option>Valid-Until-Min</option> (<option>valid-until-min</option>) and "
6050 "<option>Valid-Until-Max</option> (<option>valid-until-max</option>) can be "
6051 "used to raise or lower the time period in seconds in which the data from "
6052 "this repository is considered valid. -Max can be especially useful if the "
6053 "repository provides no Valid-Until field on its Release file to set your own "
6054 "value, while -Min can be used to increase the valid time on seldom updated "
6055 "(local) mirrors of a more frequently updated but less accessible archive "
6056 "(which is in the sources.list as well) instead of disabling the check "
6057 "entirely. Default to the value of the configuration options "
6058 "<option>Acquire::Min-ValidTime</option> and <option>Acquire::Max-ValidTime</"
6059 "option> which are both unset by default."
6062 #. type: Content of: <refentry><refsect1><title>
6063 #: sources.list.5.xml
6064 msgid "URI Specification"
6067 #. type: Content of: <refentry><refsect1><para>
6068 #: sources.list.5.xml
6069 msgid "The currently recognized URI types are:"
6072 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6073 #: sources.list.5.xml
6075 "The file scheme allows an arbitrary directory in the file system to be "
6076 "considered an archive. This is useful for NFS mounts and local mirrors or "
6080 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6081 #: sources.list.5.xml
6083 "The cdrom scheme allows APT to use a local CD-ROM drive with media swapping. "
6084 "Use the &apt-cdrom; program to create cdrom entries in the source list."
6087 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6088 #: sources.list.5.xml
6090 "The http scheme specifies an HTTP server for the archive. If an environment "
6091 "variable <envar>http_proxy</envar> is set with the format http://server:"
6092 "port/, the proxy server specified in <envar>http_proxy</envar> will be used. "
6093 "Users of authenticated HTTP/1.1 proxies may use a string of the format "
6094 "http://user:pass@server:port/. Note that this is an insecure method of "
6098 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6099 #: sources.list.5.xml
6101 "The ftp scheme specifies an FTP server for the archive. APT's FTP behavior "
6102 "is highly configurable; for more information see the &apt-conf; manual page. "
6103 "Please note that an FTP proxy can be specified by using the "
6104 "<envar>ftp_proxy</envar> environment variable. It is possible to specify an "
6105 "HTTP proxy (HTTP proxy servers often understand FTP URLs) using this "
6106 "environment variable and <emphasis>only</emphasis> this environment "
6107 "variable. Proxies using HTTP specified in the configuration file will be "
6111 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6112 #: sources.list.5.xml
6114 "The copy scheme is identical to the file scheme except that packages are "
6115 "copied into the cache directory instead of used directly at their location. "
6116 "This is useful for people using removable media to copy files around with "
6120 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6121 #: sources.list.5.xml
6123 "The rsh/ssh method invokes RSH/SSH to connect to a remote host and access "
6124 "the files as a given user. Prior configuration of rhosts or RSA keys is "
6125 "recommended. The standard <command>find</command> and <command>dd</command> "
6126 "commands are used to perform the file transfers from the remote host."
6129 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><term>
6130 #: sources.list.5.xml
6131 msgid "adding more recognizable URI types"
6134 #. type: Content of: <refentry><refsect1><para><variablelist><varlistentry><listitem><para>
6135 #: sources.list.5.xml
6137 "APT can be extended with more methods shipped in other optional packages, "
6138 "which should follow the naming scheme <package>apt-transport-"
6139 "<replaceable>method</replaceable></package>. For instance, the APT team "
6140 "also maintains the package <package>apt-transport-https</package>, which "
6141 "provides access methods for HTTPS URIs with features similar to the http "
6142 "method. Methods for using e.g. debtorrent are also available - see &apt-"
6143 "transport-debtorrent;."
6146 #. type: Content of: <refentry><refsect1><para>
6147 #: sources.list.5.xml
6149 "Uses the archive stored locally (or NFS mounted) at /home/apt/debian for "
6150 "stable/main, stable/contrib, and stable/non-free."
6153 #. type: Content of: <refentry><refsect1><literallayout>
6154 #: sources.list.5.xml
6156 msgid "deb file:/home/apt/debian stable main contrib non-free"
6159 #. type: Content of: <refentry><refsect1><literallayout>
6160 #: sources.list.5.xml
6164 "URIs: file:/home/apt/debian\n"
6166 "Components: main contrib non-free"
6169 #. type: Content of: <refentry><refsect1><para>
6170 #: sources.list.5.xml
6171 msgid "As above, except this uses the unstable (development) distribution."
6174 #. type: Content of: <refentry><refsect1><literallayout>
6175 #: sources.list.5.xml
6177 msgid "deb file:/home/apt/debian unstable main contrib non-free"
6180 #. type: Content of: <refentry><refsect1><literallayout>
6181 #: sources.list.5.xml
6185 "URIs: file:/home/apt/debian\n"
6186 "Suites: unstable\n"
6187 "Components: main contrib non-free"
6190 #. type: Content of: <refentry><refsect1><para>
6191 #: sources.list.5.xml
6192 msgid "Sources specification for the above."
6195 #. type: Content of: <refentry><refsect1><literallayout>
6196 #: sources.list.5.xml
6198 msgid "deb-src file:/home/apt/debian unstable main contrib non-free"
6201 #. type: Content of: <refentry><refsect1><literallayout>
6202 #: sources.list.5.xml
6206 "URIs: file:/home/apt/debian\n"
6207 "Suites: unstable\n"
6208 "Components: main contrib non-free"
6211 #. type: Content of: <refentry><refsect1><para>
6212 #: sources.list.5.xml
6214 "The first line gets package information for the architectures in "
6215 "<literal>APT::Architectures</literal> while the second always retrieves "
6216 "<literal>amd64</literal> and <literal>armel</literal>."
6219 #. type: Content of: <refentry><refsect1><literallayout>
6220 #: sources.list.5.xml
6223 "deb http://httpredir.debian.org/debian &debian-stable-codename; main\n"
6224 "deb [ arch=amd64,armel ] http://httpredir.debian.org/debian &debian-stable-codename; main"
6227 #. type: Content of: <refentry><refsect1><literallayout>
6228 #: sources.list.5.xml
6232 "URIs: http://httpredir.debian.org/debian\n"
6233 "Suites: &debian-stable-codename;\n"
6234 "Components: main\n"
6237 "URIs: http://httpredir.debian.org/debian\n"
6238 "Suites: &debian-stable-codename;\n"
6239 "Components: main\n"
6240 "Architectures: amd64 armel\n"
6243 #. type: Content of: <refentry><refsect1><para>
6244 #: sources.list.5.xml
6246 "Uses HTTP to access the archive at archive.debian.org, and uses only the "
6250 #. type: Content of: <refentry><refsect1><literallayout>
6251 #: sources.list.5.xml
6253 msgid "deb http://archive.debian.org/debian-archive hamm main"
6256 #. type: Content of: <refentry><refsect1><literallayout>
6257 #: sources.list.5.xml
6261 "URIs: http://archive.debian.org/debian-archive\n"
6266 #. type: Content of: <refentry><refsect1><para>
6267 #: sources.list.5.xml
6269 "Uses FTP to access the archive at ftp.debian.org, under the debian "
6270 "directory, and uses only the &debian-stable-codename;/contrib area."
6273 #. type: Content of: <refentry><refsect1><literallayout>
6274 #: sources.list.5.xml
6276 msgid "deb ftp://ftp.debian.org/debian &debian-stable-codename; contrib"
6279 #. type: Content of: <refentry><refsect1><literallayout>
6280 #: sources.list.5.xml
6284 "URIs: ftp://ftp.debian.org/debian\n"
6285 "Suites: &debian-stable-codename;\n"
6286 "Components: contrib"
6289 #. type: Content of: <refentry><refsect1><para>
6290 #: sources.list.5.xml
6292 "Uses FTP to access the archive at ftp.debian.org, under the debian "
6293 "directory, and uses only the unstable/contrib area. If this line appears as "
6294 "well as the one in the previous example in <filename>sources.list</filename> "
6295 "a single FTP session will be used for both resource lines."
6298 #. type: Content of: <refentry><refsect1><literallayout>
6299 #: sources.list.5.xml
6301 msgid "deb ftp://ftp.debian.org/debian unstable contrib"
6304 #. type: Content of: <refentry><refsect1><literallayout>
6305 #: sources.list.5.xml
6309 "URIs: ftp://ftp.debian.org/debian\n"
6310 "Suites: unstable\n"
6311 "Components: contrib"
6314 #. type: Content of: <refentry><refsect1><para><literallayout>
6315 #: sources.list.5.xml
6317 msgid "deb http://ftp.tlh.debian.org/universe unstable/binary-$(ARCH)/"
6320 #. type: Content of: <refentry><refsect1><para><literallayout>
6321 #: sources.list.5.xml
6325 "URIs: http://ftp.tlh.debian.org/universe\n"
6326 "Suites: unstable/binary-$(ARCH)/"
6329 #. type: Content of: <refentry><refsect1><para>
6330 #: sources.list.5.xml
6332 "Uses HTTP to access the archive at ftp.tlh.debian.org, under the universe "
6333 "directory, and uses only files found under <filename>unstable/binary-i386</"
6334 "filename> on i386 machines, <filename>unstable/binary-amd64</filename> on "
6335 "amd64, and so forth for other supported architectures. [Note this example "
6336 "only illustrates how to use the substitution variable; official debian "
6337 "archives are not structured like this] <placeholder type=\"literallayout\" "
6338 "id=\"0\"/> <placeholder type=\"literallayout\" id=\"1\"/>"
6341 #. type: Content of: <refentry><refsect1><para>
6342 #: sources.list.5.xml
6344 "Uses HTTP to get binary packages as well as sources from the stable, testing "
6345 "and unstable suites and the components main and contrib."
6348 #. type: Content of: <refentry><refsect1><literallayout>
6349 #: sources.list.5.xml
6352 "deb http://httpredir.debian.org/debian stable main contrib\n"
6353 "deb-src http://httpredir.debian.org/debian stable main contrib\n"
6354 "deb http://httpredir.debian.org/debian testing main contrib\n"
6355 "deb-src http://httpredir.debian.org/debian testing main contrib\n"
6356 "deb http://httpredir.debian.org/debian unstable main contrib\n"
6357 "deb-src http://httpredir.debian.org/debian unstable main contrib"
6360 #. type: Content of: <refentry><refsect1><literallayout>
6361 #: sources.list.5.xml
6364 "Types: deb deb-src\n"
6365 "URIs: http://httpredir.debian.org/debian\n"
6366 "Suites: stable testing unstable\n"
6367 "Components: main contrib\n"
6370 #. type: Content of: <refentry><refsect1><para>
6371 #: sources.list.5.xml
6373 msgid "&apt-get;, &apt-conf;, &apt-acquire-additional-files;"
6374 msgstr "&apt-get; &apt-cache; &apt-conf; &sources-list;"
6376 #. type: Content of: <refentry><refmeta><manvolnum>
6377 #: apt-extracttemplates.1.xml apt-sortpkgs.1.xml apt-ftparchive.1.xml
6381 #. type: Content of: <refentry><refnamediv><refpurpose>
6382 #: apt-extracttemplates.1.xml
6384 "Utility to extract <command>debconf</command> config and templates from "
6388 #. type: Content of: <refentry><refsect1><para>
6389 #: apt-extracttemplates.1.xml
6391 "<command>apt-extracttemplates</command> will take one or more Debian package "
6392 "files as input and write out (to a temporary directory) all associated "
6393 "config scripts and template files. For each passed in package that contains "
6394 "config scripts and templates, one line of output will be generated in the "
6398 #. type: Content of: <refentry><refsect1><para>
6399 #: apt-extracttemplates.1.xml
6400 msgid "package version template-file config-script"
6403 #. type: Content of: <refentry><refsect1><para>
6404 #: apt-extracttemplates.1.xml
6406 "template-file and config-script are written to the temporary directory "
6407 "specified by the <option>-t</option> or <option>--tempdir</option> "
6408 "(<literal>APT::ExtractTemplates::TempDir</literal>) directory, with "
6409 "filenames of the form <filename>package.template.XXXXXX</filename> and "
6410 "<filename>package.config.XXXXXX</filename>"
6413 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6414 #: apt-extracttemplates.1.xml
6416 "Temporary directory in which to write extracted <command>debconf</command> "
6417 "template files and config scripts. Configuration Item: <literal>APT::"
6418 "ExtractTemplates::TempDir</literal>"
6421 #. type: Content of: <refentry><refsect1><para>
6422 #: apt-extracttemplates.1.xml
6424 "<command>apt-extracttemplates</command> returns zero on normal operation, "
6425 "decimal 100 on error."
6428 #. type: Content of: <refentry><refnamediv><refpurpose>
6429 #: apt-sortpkgs.1.xml
6430 msgid "Utility to sort package index files"
6433 #. type: Content of: <refentry><refsect1><para>
6434 #: apt-sortpkgs.1.xml
6436 "<command>apt-sortpkgs</command> will take an index file (source index or "
6437 "package index) and sort the records so that they are ordered by the package "
6438 "name. It will also sort the internal fields of each record according to the "
6439 "internal sorting rules."
6442 #. type: Content of: <refentry><refsect1><para>
6443 #: apt-sortpkgs.1.xml
6445 "All output is sent to standard output; the input must be a seekable file."
6448 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6449 #: apt-sortpkgs.1.xml
6451 "Use source index field ordering. Configuration Item: <literal>APT::"
6452 "SortPkgs::Source</literal>."
6455 #. type: Content of: <refentry><refsect1><para>
6456 #: apt-sortpkgs.1.xml
6458 "<command>apt-sortpkgs</command> returns zero on normal operation, decimal "
6462 #. type: Content of: <refentry><refnamediv><refpurpose>
6463 #: apt-ftparchive.1.xml
6464 msgid "Utility to generate index files"
6467 #. type: Content of: <refentry><refsect1><para>
6468 #: apt-ftparchive.1.xml
6470 "<command>apt-ftparchive</command> is the command line tool that generates "
6471 "the index files that APT uses to access a distribution source. The index "
6472 "files should be generated on the origin site based on the content of that "
6476 #. type: Content of: <refentry><refsect1><para>
6477 #: apt-ftparchive.1.xml
6479 "<command>apt-ftparchive</command> is a superset of the &dpkg-scanpackages; "
6480 "program, incorporating its entire functionality via the <literal>packages</"
6481 "literal> command. It also contains a contents file generator, "
6482 "<literal>contents</literal>, and an elaborate means to 'script' the "
6483 "generation process for a complete archive."
6486 #. type: Content of: <refentry><refsect1><para>
6487 #: apt-ftparchive.1.xml
6489 "Internally <command>apt-ftparchive</command> can make use of binary "
6490 "databases to cache the contents of a .deb file and it does not rely on any "
6491 "external programs aside from &gzip;. When doing a full generate it "
6492 "automatically performs file-change checks and builds the desired compressed "
6496 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6497 #: apt-ftparchive.1.xml
6499 "The packages command generates a package file from a directory tree. It "
6500 "takes the given directory and recursively searches it for .deb files, "
6501 "emitting a package record to stdout for each. This command is approximately "
6502 "equivalent to &dpkg-scanpackages;."
6505 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6506 #: apt-ftparchive.1.xml
6508 "The option <option>--db</option> can be used to specify a binary caching DB."
6511 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6512 #: apt-ftparchive.1.xml
6514 "The <literal>sources</literal> command generates a source index file from a "
6515 "directory tree. It takes the given directory and recursively searches it "
6516 "for .dsc files, emitting a source record to stdout for each. This command is "
6517 "approximately equivalent to &dpkg-scansources;."
6520 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6521 #: apt-ftparchive.1.xml
6523 "If an override file is specified then a source override file will be looked "
6524 "for with an extension of .src. The --source-override option can be used to "
6525 "change the source override file that will be used."
6528 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6529 #: apt-ftparchive.1.xml
6531 "The <literal>contents</literal> command generates a contents file from a "
6532 "directory tree. It takes the given directory and recursively searches it "
6533 "for .deb files, and reads the file list from each file. It then sorts and "
6534 "writes to stdout the list of files matched to packages. Directories are not "
6535 "written to the output. If multiple packages own the same file then each "
6536 "package is separated by a comma in the output."
6539 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6540 #: apt-ftparchive.1.xml
6542 "The <literal>release</literal> command generates a Release file from a "
6543 "directory tree. It recursively searches the given directory for uncompressed "
6544 "and compressed <filename>Packages</filename>, <filename>Sources</filename>, "
6545 "<filename>Contents</filename>, <filename>Components</filename> and "
6546 "<filename>icons</filename> files as well as <filename>Release</filename>, "
6547 "<filename>Index</filename> and <filename>md5sum.txt</filename> files by "
6548 "default (<literal>APT::FTPArchive::Release::Default-Patterns</literal>). "
6549 "Additional filename patterns can be added by listing them in <literal>APT::"
6550 "FTPArchive::Release::Patterns</literal>. It then writes to stdout a "
6551 "<filename>Release</filename> file containing (by default) an MD5, SHA1, "
6552 "SHA256 and SHA512 digest for each file."
6555 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6556 #: apt-ftparchive.1.xml
6558 "Values for the additional metadata fields in the Release file are taken from "
6559 "the corresponding variables under <literal>APT::FTPArchive::Release</"
6560 "literal>, e.g. <literal>APT::FTPArchive::Release::Origin</literal>. The "
6561 "supported fields are <literal>Origin</literal>, <literal>Label</literal>, "
6562 "<literal>Suite</literal>, <literal>Version</literal>, <literal>Codename</"
6563 "literal>, <literal>Date</literal>, <literal>Valid-Until</literal>, "
6564 "<literal>Signed-By</literal>, <literal>Architectures</literal>, "
6565 "<literal>Components</literal> and <literal>Description</literal>."
6568 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6569 #: apt-ftparchive.1.xml
6571 "The <literal>generate</literal> command is designed to be runnable from a "
6572 "cron script and builds indexes according to the given config file. The "
6573 "config language provides a flexible means of specifying which index files "
6574 "are built from which directories, as well as providing a simple means of "
6575 "maintaining the required settings."
6578 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
6579 #: apt-ftparchive.1.xml
6581 "The <literal>clean</literal> command tidies the databases used by the given "
6582 "configuration file by removing any records that are no longer necessary."
6585 #. type: Content of: <refentry><refsect1><title>
6586 #: apt-ftparchive.1.xml
6587 msgid "The Generate Configuration"
6590 #. type: Content of: <refentry><refsect1><para>
6591 #: apt-ftparchive.1.xml
6593 "The <literal>generate</literal> command uses a configuration file to "
6594 "describe the archives that are going to be generated. It follows the typical "
6595 "ISC configuration format as seen in ISC tools like bind 8 and dhcpd. &apt-"
6596 "conf; contains a description of the syntax. Note that the generate "
6597 "configuration is parsed in sectional manner, but &apt-conf; is parsed in a "
6598 "tree manner. This only effects how the scope tag is handled."
6601 #. type: Content of: <refentry><refsect1><para>
6602 #: apt-ftparchive.1.xml
6604 "The generate configuration has four separate sections, each described below."
6607 #. type: Content of: <refentry><refsect1><refsect2><title>
6608 #: apt-ftparchive.1.xml
6610 msgid "<literal>Dir</literal> Section"
6611 msgstr "a linha <literal>Origin:</literal>"
6613 #. type: Content of: <refentry><refsect1><refsect2><para>
6614 #: apt-ftparchive.1.xml
6616 "The <literal>Dir</literal> section defines the standard directories needed "
6617 "to locate the files required during the generation process. These "
6618 "directories are prepended certain relative paths defined in later sections "
6619 "to produce a complete an absolute path."
6622 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6623 #: apt-ftparchive.1.xml
6625 "Specifies the root of the FTP archive, in a standard Debian configuration "
6626 "this is the directory that contains the <filename>ls-LR</filename> and dist "
6630 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6631 #: apt-ftparchive.1.xml
6632 msgid "Specifies the location of the override files."
6635 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6636 #: apt-ftparchive.1.xml
6637 msgid "Specifies the location of the cache files."
6640 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6641 #: apt-ftparchive.1.xml
6643 "Specifies the location of the file list files, if the <literal>FileList</"
6644 "literal> setting is used below."
6647 #. type: Content of: <refentry><refsect1><refsect2><title>
6648 #: apt-ftparchive.1.xml
6650 msgid "<literal>Default</literal> Section"
6651 msgstr "a linha <literal>Label:</literal>"
6653 #. type: Content of: <refentry><refsect1><refsect2><para>
6654 #: apt-ftparchive.1.xml
6656 "The <literal>Default</literal> section specifies default values, and "
6657 "settings that control the operation of the generator. Other sections may "
6658 "override these defaults with a per-section setting."
6661 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6662 #: apt-ftparchive.1.xml
6664 "Sets the default compression schemes to use for the package index files. It "
6665 "is a string that contains a space separated list of at least one of the "
6666 "compressors configured via the <option>APT::Compressor</option> "
6667 "configuration scope. The default for all compression schemes is '. gzip'."
6670 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6671 #: apt-ftparchive.1.xml
6673 "Sets the default list of file extensions that are package files. This "
6674 "defaults to '.deb'."
6677 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6678 #: apt-ftparchive.1.xml
6680 "This is similar to <literal>Packages::Compress</literal> except that it "
6681 "controls the compression for the Sources files."
6684 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6685 #: apt-ftparchive.1.xml
6687 "Sets the default list of file extensions that are source files. This "
6688 "defaults to '.dsc'."
6691 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6692 #: apt-ftparchive.1.xml
6694 "This is similar to <literal>Packages::Compress</literal> except that it "
6695 "controls the compression for the Contents files."
6698 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6699 #: apt-ftparchive.1.xml
6701 "This is similar to <literal>Packages::Compress</literal> except that it "
6702 "controls the compression for the Translation-en master file."
6705 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6706 #: apt-ftparchive.1.xml
6708 "Specifies the number of kilobytes to delink (and replace with hard links) "
6709 "per run. This is used in conjunction with the per-section <literal>External-"
6710 "Links</literal> setting."
6713 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6714 #: apt-ftparchive.1.xml
6716 "Specifies the mode of all created index files. It defaults to 0644. All "
6717 "index files are set to this mode with no regard to the umask."
6720 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6721 #: apt-ftparchive.1.xml
6723 "Specifies whether long descriptions should be included in the "
6724 "<filename>Packages</filename> file or split out into a master "
6725 "<filename>Translation-en</filename> file."
6728 #. type: Content of: <refentry><refsect1><refsect2><title>
6729 #: apt-ftparchive.1.xml
6731 msgid "<literal>TreeDefault</literal> Section"
6732 msgstr "a linha <literal>Label:</literal>"
6734 #. type: Content of: <refentry><refsect1><refsect2><para>
6735 #: apt-ftparchive.1.xml
6737 "Sets defaults specific to <literal>Tree</literal> sections. All of these "
6738 "variables are substitution variables and have the strings $(DIST), "
6739 "$(SECTION) and $(ARCH) replaced with their respective values."
6742 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6743 #: apt-ftparchive.1.xml
6745 "Sets the number of kilobytes of contents files that are generated each day. "
6746 "The contents files are round-robined so that over several days they will all "
6750 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6751 #: apt-ftparchive.1.xml
6753 "Controls the number of days a contents file is allowed to be checked without "
6754 "changing. If this limit is passed the mtime of the contents file is updated. "
6755 "This case can occur if the package file is changed in such a way that does "
6756 "not result in a new contents file [override edit for instance]. A hold off "
6757 "is allowed in hopes that new .debs will be installed, requiring a new file "
6758 "anyhow. The default is 10, the units are in days."
6761 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6762 #: apt-ftparchive.1.xml
6764 "Sets the top of the .deb directory tree. Defaults to <filename>$(DIST)/"
6765 "$(SECTION)/binary-$(ARCH)/</filename>"
6768 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6769 #: apt-ftparchive.1.xml
6771 "Sets the top of the source package directory tree. Defaults to <filename>"
6772 "$(DIST)/$(SECTION)/source/</filename>"
6775 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6776 #: apt-ftparchive.1.xml
6778 "Sets the output Packages file. Defaults to <filename>$(DIST)/$(SECTION)/"
6779 "binary-$(ARCH)/Packages</filename>"
6782 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6783 #: apt-ftparchive.1.xml
6785 "Sets the output Sources file. Defaults to <filename>$(DIST)/$(SECTION)/"
6786 "source/Sources</filename>"
6789 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6790 #: apt-ftparchive.1.xml
6792 "Sets the output Translation-en master file with the long descriptions if "
6793 "they should be not included in the Packages file. Defaults to <filename>"
6794 "$(DIST)/$(SECTION)/i18n/Translation-en</filename>"
6797 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6798 #: apt-ftparchive.1.xml
6800 "Sets the path prefix that causes a symlink to be considered an internal link "
6801 "instead of an external link. Defaults to <filename>$(DIST)/$(SECTION)/</"
6805 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6806 #: apt-ftparchive.1.xml
6808 "Sets the output Contents file. Defaults to <filename>$(DIST)/$(SECTION)/"
6809 "Contents-$(ARCH)</filename>. If this setting causes multiple Packages files "
6810 "to map onto a single Contents file (as is the default) then <command>apt-"
6811 "ftparchive</command> will integrate those package files together "
6815 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6816 #: apt-ftparchive.1.xml
6817 msgid "Sets header file to prepend to the contents output."
6820 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6821 #: apt-ftparchive.1.xml
6823 "Sets the binary cache database to use for this section. Multiple sections "
6824 "can share the same database."
6827 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6828 #: apt-ftparchive.1.xml
6830 "Specifies that instead of walking the directory tree, <command>apt-"
6831 "ftparchive</command> should read the list of files from the given file. "
6832 "Relative files names are prefixed with the archive directory."
6835 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6836 #: apt-ftparchive.1.xml
6838 "Specifies that instead of walking the directory tree, <command>apt-"
6839 "ftparchive</command> should read the list of files from the given file. "
6840 "Relative files names are prefixed with the archive directory. This is used "
6841 "when processing source indexes."
6844 #. type: Content of: <refentry><refsect1><refsect2><title>
6845 #: apt-ftparchive.1.xml
6847 msgid "<literal>Tree</literal> Section"
6848 msgstr "a linha <literal>Label:</literal>"
6850 #. type: Content of: <refentry><refsect1><refsect2><para>
6851 #: apt-ftparchive.1.xml
6853 "The <literal>Tree</literal> section defines a standard Debian file tree "
6854 "which consists of a base directory, then multiple sections in that base "
6855 "directory and finally multiple Architectures in each section. The exact "
6856 "pathing used is defined by the <literal>Directory</literal> substitution "
6860 #. type: Content of: <refentry><refsect1><refsect2><para>
6861 #: apt-ftparchive.1.xml
6863 "The <literal>Tree</literal> section takes a scope tag which sets the "
6864 "<literal>$(DIST)</literal> variable and defines the root of the tree (the "
6865 "path is prefixed by <literal>ArchiveDir</literal>). Typically this is a "
6866 "setting such as <filename>dists/&debian-stable-codename;</filename>."
6869 #. type: Content of: <refentry><refsect1><refsect2><para>
6870 #: apt-ftparchive.1.xml
6872 "All of the settings defined in the <literal>TreeDefault</literal> section "
6873 "can be used in a <literal>Tree</literal> section as well as three new "
6877 #. type: Content of: <refentry><refsect1><refsect2><para><programlisting>
6878 #: apt-ftparchive.1.xml
6881 "for i in Sections do \n"
6882 " for j in Architectures do\n"
6883 " Generate for DIST=scope SECTION=i ARCH=j\n"
6887 #. type: Content of: <refentry><refsect1><refsect2><para>
6888 #: apt-ftparchive.1.xml
6890 "When processing a <literal>Tree</literal> section <command>apt-ftparchive</"
6891 "command> performs an operation similar to: <placeholder type=\"programlisting"
6895 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6896 #: apt-ftparchive.1.xml
6898 "This is a space separated list of sections which appear under the "
6899 "distribution; typically this is something like <literal>main contrib non-"
6903 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6904 #: apt-ftparchive.1.xml
6906 "This is a space separated list of all the architectures that appear under "
6907 "search section. The special architecture 'source' is used to indicate that "
6908 "this tree has a source archive. The architecture 'all' signals that "
6909 "architecture specific files like <filename>Packages</filename> should not "
6910 "include information about architecture <literal>all</literal> packages in "
6911 "all files as they will be available in a dedicated file."
6914 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6915 #: apt-ftparchive.1.xml
6917 "Sets the binary override file. The override file contains section, priority "
6918 "and maintainer address information."
6921 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6922 #: apt-ftparchive.1.xml
6924 "Sets the source override file. The override file contains section "
6928 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6929 #: apt-ftparchive.1.xml
6930 msgid "Sets the binary extra override file."
6933 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6934 #: apt-ftparchive.1.xml
6935 msgid "Sets the source extra override file."
6938 #. type: Content of: <refentry><refsect1><refsect2><title>
6939 #: apt-ftparchive.1.xml
6941 msgid "<literal>BinDirectory</literal> Section"
6942 msgstr "a linha <literal>Component:</literal>"
6944 #. type: Content of: <refentry><refsect1><refsect2><para>
6945 #: apt-ftparchive.1.xml
6947 "The <literal>bindirectory</literal> section defines a binary directory tree "
6948 "with no special structure. The scope tag specifies the location of the "
6949 "binary directory and the settings are similar to the <literal>Tree</literal> "
6950 "section with no substitution variables or <literal>Section</"
6951 "literal><literal>Architecture</literal> settings."
6954 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6955 #: apt-ftparchive.1.xml
6956 msgid "Sets the Packages file output."
6959 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6960 #: apt-ftparchive.1.xml
6962 "Sets the Sources file output. At least one of <literal>Packages</literal> or "
6963 "<literal>Sources</literal> is required."
6966 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6967 #: apt-ftparchive.1.xml
6968 msgid "Sets the Contents file output (optional)."
6971 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6972 #: apt-ftparchive.1.xml
6973 msgid "Sets the binary override file."
6976 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6977 #: apt-ftparchive.1.xml
6978 msgid "Sets the source override file."
6981 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6982 #: apt-ftparchive.1.xml
6983 msgid "Sets the cache DB."
6986 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6987 #: apt-ftparchive.1.xml
6988 msgid "Appends a path to all the output paths."
6991 #. type: Content of: <refentry><refsect1><refsect2><variablelist><varlistentry><listitem><para>
6992 #: apt-ftparchive.1.xml
6993 msgid "Specifies the file list file."
6996 #. type: Content of: <refentry><refsect1><title>
6997 #: apt-ftparchive.1.xml
6998 msgid "The Binary Override File"
7001 #. type: Content of: <refentry><refsect1><para>
7002 #: apt-ftparchive.1.xml
7004 "The binary override file is fully compatible with &dpkg-scanpackages;. It "
7005 "contains four fields separated by spaces. The first field is the package "
7006 "name, the second is the priority to force that package to, the third is the "
7007 "section to force that package to and the final field is the maintainer "
7008 "permutation field."
7011 #. type: Content of: <refentry><refsect1><para><literallayout>
7012 #: apt-ftparchive.1.xml
7014 msgid "old [// oldn]* => new"
7017 #. type: Content of: <refentry><refsect1><para><literallayout>
7018 #: apt-ftparchive.1.xml
7023 #. type: Content of: <refentry><refsect1><para>
7024 #: apt-ftparchive.1.xml
7026 "The general form of the maintainer field is: <placeholder type="
7027 "\"literallayout\" id=\"0\"/> or simply, <placeholder type=\"literallayout\" "
7028 "id=\"1\"/> The first form allows a double-slash separated list of old email "
7029 "addresses to be specified. If any of those are found then new is substituted "
7030 "for the maintainer field. The second form unconditionally substitutes the "
7034 #. type: Content of: <refentry><refsect1><title>
7035 #: apt-ftparchive.1.xml
7036 msgid "The Source Override File"
7039 #. type: Content of: <refentry><refsect1><para>
7040 #: apt-ftparchive.1.xml
7042 "The source override file is fully compatible with &dpkg-scansources;. It "
7043 "contains two fields separated by spaces. The first field is the source "
7044 "package name, the second is the section to assign it."
7047 #. type: Content of: <refentry><refsect1><title>
7048 #: apt-ftparchive.1.xml
7049 msgid "The Extra Override File"
7052 #. type: Content of: <refentry><refsect1><para>
7053 #: apt-ftparchive.1.xml
7055 "The extra override file allows any arbitrary tag to be added or replaced in "
7056 "the output. It has three columns, the first is the package, the second is "
7057 "the tag and the remainder of the line is the new value."
7060 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
7061 #: apt-ftparchive.1.xml
7063 "Generate the given checksum. These options default to on, when turned off "
7064 "the generated index files will not have the checksum fields where possible. "
7065 "Configuration Items: <literal>APT::FTPArchive::<replaceable>Checksum</"
7066 "replaceable></literal> and <literal>APT::FTPArchive::<replaceable>Index</"
7067 "replaceable>::<replaceable>Checksum</replaceable></literal> where "
7068 "<literal><replaceable>Index</replaceable></literal> can be "
7069 "<literal>Packages</literal>, <literal>Sources</literal> or <literal>Release</"
7070 "literal> and <literal><replaceable>Checksum</replaceable></literal> can be "
7071 "<literal>MD5</literal>, <literal>SHA1</literal>, <literal>SHA256</literal> "
7072 "or <literal>SHA512</literal>."
7075 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
7076 #: apt-ftparchive.1.xml
7078 "Use a binary caching DB. This has no effect on the generate command. "
7079 "Configuration Item: <literal>APT::FTPArchive::DB</literal>."
7082 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
7083 #: apt-ftparchive.1.xml
7085 "Quiet; produces output suitable for logging, omitting progress indicators. "
7086 "More q's will produce more quiet up to a maximum of 2. You can also use "
7087 "<option>-q=#</option> to set the quiet level, overriding the configuration "
7088 "file. Configuration Item: <literal>quiet</literal>."
7091 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
7092 #: apt-ftparchive.1.xml
7094 "Perform Delinking. If the <literal>External-Links</literal> setting is used "
7095 "then this option actually enables delinking of the files. It defaults to on "
7096 "and can be turned off with <option>--no-delink</option>. Configuration "
7097 "Item: <literal>APT::FTPArchive::DeLinkAct</literal>."
7100 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
7101 #: apt-ftparchive.1.xml
7103 "Perform contents generation. When this option is set and package indexes are "
7104 "being generated with a cache DB then the file listing will also be extracted "
7105 "and stored in the DB for later use. When using the generate command this "
7106 "option also allows the creation of any Contents files. The default is on. "
7107 "Configuration Item: <literal>APT::FTPArchive::Contents</literal>."
7110 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
7111 #: apt-ftparchive.1.xml
7113 "Select the source override file to use with the <literal>sources</literal> "
7114 "command. Configuration Item: <literal>APT::FTPArchive::SourceOverride</"
7118 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
7119 #: apt-ftparchive.1.xml
7121 "Make the caching databases read only. Configuration Item: <literal>APT::"
7122 "FTPArchive::ReadOnlyDB</literal>."
7125 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
7126 #: apt-ftparchive.1.xml
7128 "Accept in the <literal>packages</literal> and <literal>contents</literal> "
7129 "commands only package files matching <literal>*_arch.deb</literal> or "
7130 "<literal>*_all.deb</literal> instead of all package files in the given "
7131 "path. Configuration Item: <literal>APT::FTPArchive::Architecture</literal>."
7134 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
7135 #: apt-ftparchive.1.xml
7137 "&apt-ftparchive; caches as much as possible of metadata in a cachedb. If "
7138 "packages are recompiled and/or republished with the same version again, this "
7139 "will lead to problems as the now outdated cached metadata like size and "
7140 "checksums will be used. With this option enabled this will no longer happen "
7141 "as it will be checked if the file was changed. Note that this option is set "
7142 "to \"<literal>false</literal>\" by default as it is not recommend to upload "
7143 "multiply versions/builds of a package with the same versionnumber, so in "
7144 "theory nobody will have these problems and therefore all these extra checks "
7148 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
7149 #: apt-ftparchive.1.xml
7151 "This configuration option defaults to \"<literal>true</literal>\" and should "
7152 "only be set to <literal>\"false\"</literal> if the Archive generated with "
7153 "&apt-ftparchive; also provides <filename>Translation</filename> files. Note "
7154 "that the <filename>Translation-en</filename> master file can only be created "
7155 "in the generate command."
7158 #. type: Content of: <refentry><refsect1><para><programlisting>
7159 #: apt-ftparchive.1.xml
7161 msgid "<command>apt-ftparchive</command> packages <replaceable>directory</replaceable> | <command>gzip</command> > <filename>Packages.gz</filename>\n"
7164 #. type: Content of: <refentry><refsect1><para>
7165 #: apt-ftparchive.1.xml
7167 "To create a compressed Packages file for a directory containing binary "
7168 "packages (.deb): <placeholder type=\"programlisting\" id=\"0\"/>"
7171 #. type: Content of: <refentry><refsect1><para>
7172 #: apt-ftparchive.1.xml
7174 "<command>apt-ftparchive</command> returns zero on normal operation, decimal "
7178 #. type: Attribute 'lang' of: <book>
7179 #: guide.dbk offline.dbk
7183 #. type: Content of: <book><title>
7185 msgid "APT User's Guide"
7188 #. type: Content of: <book><bookinfo><authorgroup><author><personname>
7189 #: guide.dbk offline.dbk
7190 msgid "Jason Gunthorpe"
7193 #. type: Content of: <book><bookinfo><authorgroup><author><email>
7194 #: guide.dbk offline.dbk
7195 msgid "jgg@debian.org"
7198 #. type: Content of: <book><bookinfo><releaseinfo>
7199 #: guide.dbk offline.dbk
7200 msgid "Version &apt-product-version;"
7203 #. type: Content of: <book><bookinfo><abstract><para>
7206 "This document provides an overview of how to use the the APT package manager."
7209 #. type: Content of: <book><bookinfo>
7212 "<copyright><year>1998</year><holder>Jason Gunthorpe</holder></copyright>"
7215 #. type: Content of: <book><bookinfo><legalnotice><title>
7216 #: guide.dbk offline.dbk
7217 msgid "License Notice"
7220 #. type: Content of: <book><bookinfo><legalnotice><para>
7221 #: guide.dbk offline.dbk
7223 "\"APT\" and this document are free software; you can redistribute them and/"
7224 "or modify them under the terms of the GNU General Public License as "
7225 "published by the Free Software Foundation; either version 2 of the License, "
7226 "or (at your option) any later version."
7229 #. type: Content of: <book><bookinfo><legalnotice><para>
7230 #: guide.dbk offline.dbk
7232 "For more details, on Debian systems, see the file /usr/share/common-licenses/"
7233 "GPL for the full license."
7236 #. type: Content of: <book><chapter><title>
7241 #. type: Content of: <book><chapter><para>
7244 "The APT package currently contains two sections, the APT <command>dselect</"
7245 "command> method and the <command>apt-get</command> command line user "
7246 "interface. Both provide a way to install and remove packages as well as "
7247 "download new packages from the Internet."
7250 #. type: Content of: <book><chapter><section><title>
7252 msgid "Anatomy of the Package System"
7255 #. type: Content of: <book><chapter><section><para>
7258 "The Debian packaging system has a large amount of information associated "
7259 "with each package to help assure that it integrates cleanly and easily into "
7260 "the system. The most prominent of its features is the dependency system."
7263 #. type: Content of: <book><chapter><section><para>
7266 "The dependency system allows individual programs to make use of shared "
7267 "elements in the system such as libraries. It simplifies placing infrequently "
7268 "used portions of a program in separate packages to reduce the number of "
7269 "things the average user is required to install. Also, it allows for choices "
7270 "in mail transport agents, X servers and so on."
7273 #. type: Content of: <book><chapter><section><para>
7276 "The first step to understanding the dependency system is to grasp the "
7277 "concept of a simple dependency. The meaning of a simple dependency is that a "
7278 "package requires another package to be installed at the same time to work "
7282 #. type: Content of: <book><chapter><section><para>
7285 "For instance, mailcrypt is an emacs extension that aids in encrypting email "
7286 "with GPG. Without GPGP installed mailcrypt is useless, so mailcrypt has a "
7287 "simple dependency on GPG. Also, because it is an emacs extension it has a "
7288 "simple dependency on emacs, without emacs it is completely useless."
7291 #. type: Content of: <book><chapter><section><para>
7294 "The other important dependency to understand is a conflicting dependency. It "
7295 "means that a package, when installed with another package, will not work and "
7296 "may possibly be extremely harmful to the system. As an example consider a "
7297 "mail transport agent such as sendmail, exim or qmail. It is not possible to "
7298 "have two mail transport agents installed because both need to listen to the "
7299 "network to receive mail. Attempting to install two will seriously damage the "
7300 "system so all mail transport agents have a conflicting dependency with all "
7301 "other mail transport agents."
7304 #. type: Content of: <book><chapter><section><para>
7307 "As an added complication there is the possibility for a package to pretend "
7308 "to be another package. Consider that exim and sendmail for many intents are "
7309 "identical, they both deliver mail and understand a common interface. Hence, "
7310 "the package system has a way for them to declare that they are both mail-"
7311 "transport-agents. So, exim and sendmail both declare that they provide a "
7312 "mail-transport-agent and other packages that need a mail transport agent "
7313 "depend on mail-transport-agent. This can add a great deal of confusion when "
7314 "trying to manually fix packages."
7317 #. type: Content of: <book><chapter><section><para>
7320 "At any given time a single dependency may be met by packages that are "
7321 "already installed or it may not be. APT attempts to help resolve dependency "
7322 "issues by providing a number of automatic algorithms that help in selecting "
7323 "packages for installation."
7326 #. type: Content of: <book><chapter><title>
7331 #. type: Content of: <book><chapter><para>
7334 "<command>apt-get</command> provides a simple way to install packages from "
7335 "the command line. Unlike <command>dpkg</command>, <command>apt-get</command> "
7336 "does not understand .deb files, it works with the package's proper name and "
7337 "can only install .deb archives from a <emphasis>Source</emphasis>."
7340 #. type: Content of: <book><chapter><para><footnote><para>
7343 "If you are using an http proxy server you must set the http_proxy "
7344 "environment variable first, see sources.list(5)"
7347 #. type: Content of: <book><chapter><para>
7350 "The first <placeholder type=\"footnote\" id=\"0\"/> thing that should be "
7351 "done before using <command>apt-get</command> is to fetch the package lists "
7352 "from the <emphasis>Sources</emphasis> so that it knows what packages are "
7353 "available. This is done with <literal>apt-get update</literal>. For instance,"
7356 #. type: Content of: <book><chapter><screen>
7360 "# apt-get update\n"
7361 "Get http://ftp.de.debian.org/debian-non-US/ stable/binary-i386/ Packages\n"
7362 "Get http://llug.sep.bnl.gov/debian/ testing/contrib Packages\n"
7363 "Reading Package Lists... Done\n"
7364 "Building Dependency Tree... Done\n"
7367 #. type: Content of: <book><chapter><para>
7369 msgid "Once updated there are several commands that can be used:"
7372 #. type: Content of: <book><chapter><variablelist><varlistentry><term>
7377 #. type: Content of: <book><chapter><variablelist><varlistentry><listitem><para>
7380 "Upgrade will attempt to gently upgrade the whole system. Upgrade will never "
7381 "install a new package or remove an existing package, nor will it ever "
7382 "upgrade a package that might cause some other package to break. This can be "
7383 "used daily to relatively safely upgrade the system. Upgrade will list all of "
7384 "the packages that it could not upgrade, this usually means that they depend "
7385 "on new packages or conflict with some other package. <command>dselect</"
7386 "command> or <literal>apt-get install</literal> can be used to force these "
7387 "packages to install."
7390 #. type: Content of: <book><chapter><variablelist><varlistentry><term>
7395 #. type: Content of: <book><chapter><variablelist><varlistentry><listitem><para>
7398 "Install is used to install packages by name. The package is automatically "
7399 "fetched and installed. This can be useful if you already know the name of "
7400 "the package to install and do not want to go into a GUI to select it. Any "
7401 "number of packages may be passed to install, they will all be fetched. "
7402 "Install automatically attempts to resolve dependency problems with the "
7403 "listed packages and will print a summary and ask for confirmation if "
7404 "anything other than its arguments are changed."
7407 #. type: Content of: <book><chapter><variablelist><varlistentry><term>
7409 msgid "dist-upgrade"
7412 #. type: Content of: <book><chapter><variablelist><varlistentry><listitem><para>
7415 "Dist-upgrade is a complete upgrader designed to simplify upgrading between "
7416 "releases of Debian. It uses a sophisticated algorithm to determine the best "
7417 "set of packages to install, upgrade and remove to get as much of the system "
7418 "to the newest release. In some situations it may be desired to use dist-"
7419 "upgrade rather than spend the time manually resolving dependencies in "
7420 "<command>dselect</command>. Once dist-upgrade has completed then "
7421 "<command>dselect</command> can be used to install any packages that may have "
7425 #. type: Content of: <book><chapter><variablelist><varlistentry><listitem><para>
7428 "It is important to closely look at what dist-upgrade is going to do, its "
7429 "decisions may sometimes be quite surprising."
7432 #. type: Content of: <book><chapter><para>
7435 "<command>apt-get</command> has several command line options that are "
7436 "detailed in its man page, <citerefentry><refentrytitle>apt-get</"
7437 "refentrytitle><manvolnum>8</manvolnum></citerefentry>. The most useful "
7438 "option is <literal>-d</literal> which does not install the fetched files. If "
7439 "the system has to download a large number of package it would be undesired "
7440 "to start installing them in case something goes wrong. When <literal>-d</"
7441 "literal> is used the downloaded archives can be installed by simply running "
7442 "the command that caused them to be downloaded again without <literal>-d</"
7446 #. type: Content of: <book><chapter><title>
7451 #. type: Content of: <book><chapter><para>
7454 "The APT <command>dselect</command> method provides the complete APT system "
7455 "with the <command>dselect</command> package selection GUI. <command>dselect</"
7456 "command> is used to select the packages to be installed or removed and APT "
7457 "actually installs them."
7460 #. type: Content of: <book><chapter><para>
7463 "To enable the APT method you need to select [A]ccess in <command>dselect</"
7464 "command> and then choose the APT method. You will be prompted for a set of "
7465 "<emphasis>Sources</emphasis> which are places to fetch archives from. These "
7466 "can be remote Internet sites, local Debian mirrors or CD-ROMs. Each source "
7467 "can provide a fragment of the total Debian archive, APT will automatically "
7468 "combine them to form a complete set of packages. If you have a CD-ROM then "
7469 "it is a good idea to specify it first and then specify a mirror so that you "
7470 "have access to the latest bug fixes. APT will automatically use packages on "
7471 "your CD-ROM before downloading from the Internet."
7474 #. type: Content of: <book><chapter><screen>
7478 " Set up a list of distribution source locations\n"
7480 " Please give the base URL of the debian distribution.\n"
7481 " The access schemes I know about are: http file\n"
7484 " file:/mnt/debian,\n"
7485 " ftp://ftp.debian.org/debian,\n"
7486 " http://ftp.de.debian.org/debian,\n"
7489 " URL [http://llug.sep.bnl.gov/debian]:\n"
7492 #. type: Content of: <book><chapter><para>
7495 "The <emphasis>Sources</emphasis> setup starts by asking for the base of the "
7496 "Debian archive, defaulting to a HTTP mirror. Next it asks for the "
7497 "distribution to get."
7500 #. type: Content of: <book><chapter><screen>
7504 " Please give the distribution tag to get or a path to the\n"
7505 " package file ending in a /. The distribution\n"
7506 " tags are typically something like: stable unstable testing non-US\n"
7508 " Distribution [stable]:\n"
7511 #. type: Content of: <book><chapter><para>
7514 "The distribution refers to the Debian version in the archive, "
7515 "<emphasis>stable</emphasis> refers to the latest released version and "
7516 "<emphasis>unstable</emphasis> refers to the developmental version. "
7517 "<emphasis>non-US</emphasis> is only available on some mirrors and refers to "
7518 "packages that contain encryption technology or other things that cannot be "
7519 "exported from the United States. Importing these packages into the US is "
7523 #. type: Content of: <book><chapter><screen>
7527 " Please give the components to get\n"
7528 " The components are typically something like: main contrib non-free\n"
7530 " Components [main contrib non-free]:\n"
7533 #. type: Content of: <book><chapter><para>
7536 "The components list refers to the list of sub distributions to fetch. The "
7537 "distribution is split up based on software licenses, main being DFSG free "
7538 "packages while contrib and non-free contain things that have various "
7539 "restrictions placed on their use and distribution."
7542 #. type: Content of: <book><chapter><para>
7545 "Any number of sources can be added, the setup script will continue to prompt "
7546 "until you have specified all that you want."
7549 #. type: Content of: <book><chapter><para>
7552 "Before starting to use <command>dselect</command> it is necessary to update "
7553 "the available list by selecting [U]pdate from the menu. This is a superset "
7554 "of <literal>apt-get update</literal> that makes the fetched information "
7555 "available to <command>dselect</command>. [U]pdate must be performed even if "
7556 "<literal>apt-get update</literal> has been run before."
7559 #. type: Content of: <book><chapter><para>
7562 "You can then go on and make your selections using [S]elect and then perform "
7563 "the installation using [I]nstall. When using the APT method the [C]onfig and "
7564 "[R]emove commands have no meaning, the [I]nstall command performs both of "
7568 #. type: Content of: <book><chapter><para>
7571 "By default APT will automatically remove the package (.deb) files once they "
7572 "have been successfully installed. To change this behavior place "
7573 "<literal>Dselect::clean \"prompt\";</literal> in /etc/apt/apt.conf."
7576 #. type: Content of: <book><chapter><title>
7578 msgid "The Interface"
7581 #. type: Content of: <book><chapter><para><footnote><para>
7584 "The <command>dselect</command> method actually is a set of wrapper scripts "
7585 "to <command>apt-get</command>. The method actually provides more "
7586 "functionality than is present in <command>apt-get</command> alone."
7589 #. type: Content of: <book><chapter><para>
7592 "Both that APT <command>dselect</command> method and <command>apt-get</"
7593 "command> share the same interface. It is a simple system that generally "
7594 "tells you what it will do and then goes and does it. <placeholder type="
7595 "\"footnote\" id=\"0\"/> After printing out a summary of what will happen APT "
7596 "then will print out some informative status messages so that you can "
7597 "estimate how far along it is and how much is left to do."
7600 #. type: Content of: <book><chapter><section><title>
7605 #. type: Content of: <book><chapter><section><para>
7608 "Before all operations except update, APT performs a number of actions to "
7609 "prepare its internal state. It also does some checks of the system's state. "
7610 "At any time these operations can be performed by running <literal>apt-get "
7614 #. type: Content of: <book><chapter><section><screen>
7619 "Reading Package Lists... Done\n"
7620 "Building Dependency Tree... Done\n"
7623 #. type: Content of: <book><chapter><section><para>
7626 "The first thing it does is read all the package files into memory. APT uses "
7627 "a caching scheme so this operation will be faster the second time it is run. "
7628 "If some of the package files are not found then they will be ignored and a "
7629 "warning will be printed when apt-get exits."
7632 #. type: Content of: <book><chapter><section><para>
7635 "The final operation performs a detailed analysis of the system's "
7636 "dependencies. It checks every dependency of every installed or unpacked "
7637 "package and considers if it is OK. Should this find a problem then a report "
7638 "will be printed out and <command>apt-get</command> will refuse to run."
7641 #. type: Content of: <book><chapter><section><screen>
7646 "Reading Package Lists... Done\n"
7647 "Building Dependency Tree... Done\n"
7648 "You might want to run apt-get -f install' to correct these.\n"
7649 "Sorry, but the following packages have unmet dependencies:\n"
7650 " 9fonts: Depends: xlib6g but it is not installed\n"
7651 " uucp: Depends: mailx but it is not installed\n"
7652 " blast: Depends: xlib6g (>= 3.3-5) but it is not installed\n"
7653 " adduser: Depends: perl-base but it is not installed\n"
7654 " aumix: Depends: libgpmg1 but it is not installed\n"
7655 " debiandoc-sgml: Depends: sgml-base but it is not installed\n"
7656 " bash-builtins: Depends: bash (>= 2.01) but 2.0-3 is installed\n"
7657 " cthugha: Depends: svgalibg1 but it is not installed\n"
7658 " Depends: xlib6g (>= 3.3-5) but it is not installed\n"
7659 " libreadlineg2: Conflicts:libreadline2 (<< 2.1-2.1)\n"
7662 #. type: Content of: <book><chapter><section><para>
7665 "In this example the system has many problems, including a serious problem "
7666 "with libreadlineg2. For each package that has unmet dependencies a line is "
7667 "printed out indicating the package with the problem and the dependencies "
7668 "that are unmet. A short explanation of why the package has a dependency "
7669 "problem is also included."
7672 #. type: Content of: <book><chapter><section><para><footnote><para>
7675 "APT however considers all known dependencies and attempts to prevent broken "
7679 #. type: Content of: <book><chapter><section><para>
7682 "There are two ways a system can get into a broken state like this. The first "
7683 "is caused by <command>dpkg</command> missing some subtle relationships "
7684 "between packages when performing upgrades. <placeholder type=\"footnote\" id="
7685 "\"0\"/>. The second is if a package installation fails during an operation. "
7686 "In this situation a package may have been unpacked without its dependents "
7690 #. type: Content of: <book><chapter><section><para>
7693 "The second situation is much less serious than the first because APT places "
7694 "certain constraints on the order that packages are installed. In both cases "
7695 "supplying the <literal>-f</literal> option to <command>apt-get</command> "
7696 "will cause APT to deduce a possible solution to the problem and then "
7697 "continue on. The APT <command>dselect</command> method always supplies the "
7698 "<literal>-f</literal> option to allow for easy continuation of failed "
7699 "maintainer scripts."
7702 #. type: Content of: <book><chapter><section><para>
7705 "However, if the <literal>-f</literal> option is used to correct a seriously "
7706 "broken system caused by the first case then it is possible that it will "
7707 "either fail immediately or the installation sequence will fail. In either "
7708 "case it is necessary to manually use dpkg (possibly with forcing options) to "
7709 "correct the situation enough to allow APT to proceed."
7712 #. type: Content of: <book><chapter><section><title>
7714 msgid "The Status Report"
7717 #. type: Content of: <book><chapter><section><para>
7720 "Before proceeding <command>apt-get</command> will present a report on what "
7721 "will happen. Generally the report reflects the type of operation being "
7722 "performed but there are several common elements. In all cases the lists "
7723 "reflect the final state of things, taking into account the <literal>-f</"
7724 "literal> option and any other relevant activities to the command being "
7728 #. type: Content of: <book><chapter><section><section><title>
7730 msgid "The Extra Package list"
7733 #. type: Content of: <book><chapter><section><section><screen>
7737 "The following extra packages will be installed:\n"
7738 " libdbd-mysql-perl xlib6 zlib1 xzx libreadline2 libdbd-msql-perl\n"
7739 " mailpgp xdpkg fileutils pinepgp zlib1g xlib6g perl-base\n"
7740 " bin86 libgdbm1 libgdbmg1 quake-lib gmp2 bcc xbuffy\n"
7741 " squake pgp-i python-base debmake ldso perl libreadlineg2\n"
7745 #. type: Content of: <book><chapter><section><section><para>
7748 "The Extra Package list shows all of the packages that will be installed or "
7749 "upgraded in excess of the ones mentioned on the command line. It is only "
7750 "generated for an <literal>install</literal> command. The listed packages are "
7751 "often the result of an Auto Install."
7754 #. type: Content of: <book><chapter><section><section><title>
7756 msgid "The Packages to Remove"
7759 #. type: Content of: <book><chapter><section><section><screen>
7763 "The following packages will be REMOVED:\n"
7764 " xlib6-dev xpat2 tk40-dev xkeycaps xbattle xonix\n"
7765 " xdaliclock tk40 tk41 xforms0.86 ghostview xloadimage xcolorsel\n"
7766 " xadmin xboard perl-debug tkined xtetris libreadline2-dev perl-suid\n"
7767 " nas xpilot xfig\n"
7770 #. type: Content of: <book><chapter><section><section><para>
7773 "The Packages to Remove list shows all of the packages that will be removed "
7774 "from the system. It can be shown for any of the operations and should be "
7775 "given a careful inspection to ensure nothing important is to be taken off. "
7776 "The <literal>-f</literal> option is especially good at generating packages "
7777 "to remove so extreme care should be used in that case. The list may contain "
7778 "packages that are going to be removed because they are only partially "
7779 "installed, possibly due to an aborted installation."
7782 #. type: Content of: <book><chapter><section><section><title>
7784 msgid "The New Packages list"
7787 #. type: Content of: <book><chapter><section><section><screen>
7791 "The following NEW packages will installed:\n"
7792 " zlib1g xlib6g perl-base libgdbmg1 quake-lib gmp2 pgp-i python-base\n"
7795 #. type: Content of: <book><chapter><section><section><para>
7798 "The New Packages list is simply a reminder of what will happen. The packages "
7799 "listed are not presently installed in the system but will be when APT is "
7803 #. type: Content of: <book><chapter><section><section><title>
7805 msgid "The Kept Back list"
7808 #. type: Content of: <book><chapter><section><section><screen>
7812 "The following packages have been kept back\n"
7813 " compface man-db tetex-base msql libpaper svgalib1\n"
7814 " gs snmp arena lynx xpat2 groff xscreensaver\n"
7817 #. type: Content of: <book><chapter><section><section><para>
7820 "Whenever the whole system is being upgraded there is the possibility that "
7821 "new versions of packages cannot be installed because they require new things "
7822 "or conflict with already installed things. In this case the package will "
7823 "appear in the Kept Back list. The best way to convince packages listed there "
7824 "to install is with <literal>apt-get install</literal> or by using "
7825 "<command>dselect</command> to resolve their problems."
7828 #. type: Content of: <book><chapter><section><section><title>
7830 msgid "Held Packages warning"
7833 #. type: Content of: <book><chapter><section><section><screen>
7837 "The following held packages will be changed:\n"
7841 #. type: Content of: <book><chapter><section><section><para>
7844 "Sometimes you can ask APT to install a package that is on hold, in such a "
7845 "case it prints out a warning that the held package is going to be changed. "
7846 "This should only happen during dist-upgrade or install."
7849 #. type: Content of: <book><chapter><section><section><title>
7851 msgid "Final summary"
7854 #. type: Content of: <book><chapter><section><section><para>
7857 "Finally, APT will print out a summary of all the changes that will occur."
7860 #. type: Content of: <book><chapter><section><section><screen>
7864 "206 packages upgraded, 8 newly installed, 23 to remove and 51 not upgraded.\n"
7865 "12 packages not fully installed or removed.\n"
7866 "Need to get 65.7M/66.7M of archives. After unpacking 26.5M will be used.\n"
7869 #. type: Content of: <book><chapter><section><section><para>
7872 "The first line of the summary simply is a reduced version of all of the "
7873 "lists and includes the number of upgrades - that is packages already "
7874 "installed that have new versions available. The second line indicates the "
7875 "number of poorly configured packages, possibly the result of an aborted "
7876 "installation. The final line shows the space requirements that the "
7877 "installation needs. The first pair of numbers refer to the size of the "
7878 "archive files. The first number indicates the number of bytes that must be "
7879 "fetched from remote locations and the second indicates the total size of all "
7880 "the archives required. The next number indicates the size difference between "
7881 "the presently installed packages and the newly installed packages. It is "
7882 "roughly equivalent to the space required in /usr after everything is done. "
7883 "If a large number of packages are being removed then the value may indicate "
7884 "the amount of space that will be freed."
7887 #. type: Content of: <book><chapter><section><section><para>
7890 "Some other reports can be generated by using the -u option to show packages "
7891 "to upgrade, they are similar to the previous examples."
7894 #. type: Content of: <book><chapter><section><title>
7896 msgid "The Status Display"
7899 #. type: Content of: <book><chapter><section><para>
7902 "During the download of archives and package files APT prints out a series of "
7906 #. type: Content of: <book><chapter><section><screen>
7910 "# apt-get update\n"
7911 "Get:1 http://ftp.de.debian.org/debian-non-US/ stable/non-US/ Packages\n"
7912 "Get:2 http://llug.sep.bnl.gov/debian/ testing/contrib Packages\n"
7913 "Hit http://llug.sep.bnl.gov/debian/ testing/main Packages\n"
7914 "Get:4 http://ftp.de.debian.org/debian-non-US/ unstable/binary-i386/ Packages\n"
7915 "Get:5 http://llug.sep.bnl.gov/debian/ testing/non-free Packages\n"
7916 "11% [5 testing/non-free `Waiting for file' 0/32.1k 0%] 2203b/s 1m52s\n"
7919 #. type: Content of: <book><chapter><section><para>
7922 "The lines starting with <emphasis>Get</emphasis> are printed out when APT "
7923 "begins to fetch a file while the last line indicates the progress of the "
7924 "download. The first percent value on the progress line indicates the total "
7925 "percent done of all files. Unfortunately since the size of the Package files "
7926 "is unknown <literal>apt-get update</literal> estimates the percent done "
7927 "which causes some inaccuracies."
7930 #. type: Content of: <book><chapter><section><para>
7933 "The next section of the status line is repeated once for each download "
7934 "thread and indicates the operation being performed and some useful "
7935 "information about what is happening. Sometimes this section will simply read "
7936 "<emphasis>Forking</emphasis> which means the OS is loading the download "
7937 "module. The first word after the [ is the fetch number as shown on the "
7938 "history lines. The next word is the short form name of the object being "
7939 "downloaded. For archives it will contain the name of the package that is "
7943 #. type: Content of: <book><chapter><section><para>
7946 "Inside of the single quote is an informative string indicating the progress "
7947 "of the negotiation phase of the download. Typically it progresses from "
7948 "<emphasis>Connecting</emphasis> to <emphasis>Waiting for file</emphasis> to "
7949 "<emphasis>Downloading</emphasis> or <emphasis>Resuming</emphasis>. The final "
7950 "value is the number of bytes downloaded from the remote site. Once the "
7951 "download begins this is represented as <literal>102/10.2k</literal> "
7952 "indicating that 102 bytes have been fetched and 10.2 kilobytes is expected. "
7953 "The total size is always shown in 4 figure notation to preserve space. After "
7954 "the size display is a percent meter for the file itself. The second last "
7955 "element is the instantaneous average speed. This values is updated every 5 "
7956 "seconds and reflects the rate of data transfer for that period. Finally is "
7957 "shown the estimated transfer time. This is updated regularly and reflects "
7958 "the time to complete everything at the shown transfer rate."
7961 #. type: Content of: <book><chapter><section><para>
7964 "The status display updates every half second to provide a constant feedback "
7965 "on the download progress while the Get lines scroll back whenever a new file "
7966 "is started. Since the status display is constantly updated it is unsuitable "
7967 "for logging to a file, use the <literal>-q</literal> option to remove the "
7971 #. type: Content of: <book><chapter><section><title>
7976 #. type: Content of: <book><chapter><section><para>
7979 "APT uses <command>dpkg</command> for installing the archives and will switch "
7980 "over to the <command>dpkg</command> interface once downloading is completed. "
7981 "<command>dpkg</command> will also ask a number of questions as it processes "
7982 "the packages and the packages themselves may also ask several questions. "
7983 "Before each question there is usually a description of what it is asking and "
7984 "the questions are too varied to discuss completely here."
7987 #. type: Content of: <book><title>
7989 msgid "Using APT Offline"
7992 #. type: Content of: <book><bookinfo><abstract><para>
7995 "This document describes how to use APT in a non-networked environment, "
7996 "specifically a 'sneaker-net' approach for performing upgrades."
7999 #. type: Content of: <book><bookinfo>
8002 "<copyright><year>1999</year><holder>Jason Gunthorpe</holder></copyright>"
8005 #. type: Content of: <book><chapter><title>
8007 msgid "Introduction"
8010 #. type: Content of: <book><chapter><section><title>
8015 #. type: Content of: <book><chapter><section><para>
8018 "Normally APT requires direct access to a Debian archive, either from a local "
8019 "media or through a network. Another common complaint is that a Debian "
8020 "machine is on a slow link, such as a modem and another machine has a very "
8021 "fast connection but they are physically distant."
8024 #. type: Content of: <book><chapter><section><para>
8027 "The solution to this is to use large removable media such as a Zip disc or a "
8028 "SuperDisk disc. These discs are not large enough to store the entire Debian "
8029 "archive but can easily fit a subset large enough for most users. The idea is "
8030 "to use APT to generate a list of packages that are required and then fetch "
8031 "them onto the disc using another machine with good connectivity. It is even "
8032 "possible to use another Debian machine with APT or to use a completely "
8033 "different OS and a download tool like wget. Let <emphasis>remote host</"
8034 "emphasis> mean the machine downloading the packages, and <emphasis>target "
8035 "host</emphasis> the one with bad or no connection."
8038 #. type: Content of: <book><chapter><section><para>
8041 "This is achieved by creatively manipulating the APT configuration file. The "
8042 "essential premise to tell APT to look on a disc for it's archive files. Note "
8043 "that the disc should be formatted with a filesystem that can handle long "
8044 "file names such as ext2, fat32 or vfat."
8047 #. type: Content of: <book><chapter><title>
8049 msgid "Using APT on both machines"
8052 #. type: Content of: <book><chapter><section><para>
8055 "APT being available on both machines gives the simplest configuration. The "
8056 "basic idea is to place a copy of the status file on the disc and use the "
8057 "remote machine to fetch the latest package files and decide which packages "
8058 "to download. The disk directory structure should look like:"
8061 #. type: Content of: <book><chapter><section><screen>
8075 #. type: Content of: <book><chapter><section><title>
8077 msgid "The configuration file"
8080 #. type: Content of: <book><chapter><section><para>
8083 "The configuration file should tell APT to store its files on the disc and to "
8084 "use the configuration files on the disc as well. The sources.list should "
8085 "contain the proper sites that you wish to use from the remote machine, and "
8086 "the status file should be a copy of <emphasis>/var/lib/dpkg/status</"
8087 "emphasis> from the <emphasis>target host</emphasis>. Please note, if you are "
8088 "using a local archive you must use copy URIs, the syntax is identical to "
8092 #. type: Content of: <book><chapter><section><para>
8095 "<emphasis>apt.conf</emphasis> must contain the necessary information to make "
8099 #. type: Content of: <book><chapter><section><screen>
8105 " /* This is not necessary if the two machines are the same arch, it tells\n"
8106 " the remote APT what architecture the target machine is */\n"
8107 " Architecture \"i386\";\n"
8109 " Get::Download-Only \"true\";\n"
8114 " /* Use the disc for state information and redirect the status file from\n"
8115 " the /var/lib/dpkg default */\n"
8116 " State \"/disc/\";\n"
8117 " State::status \"status\";\n"
8119 " // Binary caches will be stored locally\n"
8120 " Cache::archives \"/disc/archives/\";\n"
8121 " Cache \"/tmp/\";\n"
8123 " // Location of the source list.\n"
8124 " Etc \"/disc/\";\n"
8128 #. type: Content of: <book><chapter><section><para>
8131 "More details can be seen by examining the apt.conf man page and the sample "
8132 "configuration file in <emphasis>/usr/share/doc/apt/examples/apt.conf</"
8136 #. type: Content of: <book><chapter><section><para>
8139 "On the target machine the first thing to do is mount the disc and copy "
8140 "<emphasis>/var/lib/dpkg/status</emphasis> to it. You will also need to "
8141 "create the directories outlined in the Overview, <emphasis>archives/partial/"
8142 "</emphasis> and <emphasis>lists/partial/</emphasis>. Then take the disc to "
8143 "the remote machine and configure the sources.list. On the remote machine "
8144 "execute the following:"
8147 #. type: Content of: <book><chapter><section><screen>
8151 " # export APT_CONFIG=\"/disc/apt.conf\"\n"
8152 " # apt-get update\n"
8153 " [ APT fetches the package files ]\n"
8154 " # apt-get dist-upgrade\n"
8155 " [ APT fetches all the packages needed to upgrade the target machine ]\n"
8158 #. type: Content of: <book><chapter><section><para>
8161 "The dist-upgrade command can be replaced with any other standard APT "
8162 "commands, particularly dselect-upgrade. You can even use an APT front end "
8163 "such as <emphasis>dselect</emphasis>. However this presents a problem in "
8164 "communicating your selections back to the local computer."
8167 #. type: Content of: <book><chapter><section><para>
8170 "Now the disc contains all of the index files and archives needed to upgrade "
8171 "the target machine. Take the disc back and run:"
8174 #. type: Content of: <book><chapter><section><screen>
8178 " # export APT_CONFIG=\"/disc/apt.conf\"\n"
8179 " # apt-get check\n"
8180 " [ APT generates a local copy of the cache files ]\n"
8181 " # apt-get --no-d -o dir::state::status=/var/lib/dpkg/status dist-upgrade\n"
8182 " [ Or any other APT command ]\n"
8185 #. type: Content of: <book><chapter><section><para>
8188 "It is necessary for proper function to re-specify the status file to be the "
8189 "local one. This is very important!"
8192 #. type: Content of: <book><chapter><section><para>
8195 "If you are using dselect you can do the very risky operation of copying disc/"
8196 "status to /var/lib/dpkg/status so that any selections you made on the remote "
8197 "machine are updated. I highly recommend that people only make selections on "
8198 "the local machine - but this may not always be possible. DO NOT copy the "
8199 "status file if dpkg or APT have been run in the mean time!!"
8202 #. type: Content of: <book><chapter><title>
8204 msgid "Using APT and wget"
8207 #. type: Content of: <book><chapter><section><para>
8210 "<emphasis>wget</emphasis> is a popular and portable download tool that can "
8211 "run on nearly any machine. Unlike the method above this requires that the "
8212 "Debian machine already has a list of available packages."
8215 #. type: Content of: <book><chapter><section><para>
8218 "The basic idea is to create a disc that has only the archive files "
8219 "downloaded from the remote site. This is done by using the --print-uris "
8220 "option to apt-get and then preparing a wget script to actually fetch the "
8224 #. type: Content of: <book><chapter><section><title>
8230 #. type: Content of: <book><chapter><section><para>
8233 "Unlike the previous technique no special configuration files are required. "
8234 "We merely use the standard APT commands to generate the file list."
8237 #. type: Content of: <book><chapter><section><screen>
8241 " # apt-get dist-upgrade\n"
8242 " [ Press no when prompted, make sure you are happy with the actions ]\n"
8243 " # apt-get -qq --print-uris dist-upgrade > uris\n"
8244 " # awk '{print \"wget -O \" $2 \" \" $1}' < uris > /disc/wget-script\n"
8247 #. type: Content of: <book><chapter><section><para>
8250 "Any command other than dist-upgrade could be used here, including dselect-"
8254 #. type: Content of: <book><chapter><section><para>
8257 "The /disc/wget-script file will now contain a list of wget commands to "
8258 "execute in order to fetch the necessary archives. This script should be run "
8259 "with the current directory as the disc's mount point so as to save the "
8260 "output on the disc."
8263 #. type: Content of: <book><chapter><section><para>
8265 msgid "The remote machine would do something like"
8268 #. type: Content of: <book><chapter><section><screen>
8273 " # sh -x ./wget-script\n"
8277 #. type: Content of: <book><chapter><section><para>
8280 "Once the archives are downloaded and the disc returned to the Debian machine "
8281 "installation can proceed using,"
8284 #. type: Content of: <book><chapter><section><screen>
8287 msgid " # apt-get -o dir::cache::archives=\"/disc/\" dist-upgrade\n"
8290 #. type: Content of: <book><chapter><section><para>
8292 msgid "Which will use the already fetched archives on the disc."
8296 #~ msgid "&apt-get;, &apt-conf;"
8297 #~ msgstr "&apt-get; &apt-cache; &apt-conf; &sources-list;"
8300 #~ msgid "The option <literal>DPkg::Progress-Fancy</literal> is enabled."
8301 #~ msgstr "a linha <literal>Package:</literal>"
8304 #~ msgid "The option <literal>APT::Color</literal> is enabled."
8305 #~ msgstr "a linha <literal>Component:</literal>"
8309 #~ "The option <literal>upgrade</literal> has <literal>--with-new-pkgs</"
8310 #~ "literal> enabled by default."
8311 #~ msgstr "a linha <literal>Archive:</literal>"
8315 #~ "to the versions that are not installed and do not belong to the target "
8318 #~ "para as instâncias que não estã instaladas e que não pertencem a versão "
8322 #~ msgid "Some examples:"
8323 #~ msgstr "Exemplos"
8327 #~ "See E<lt>http://bugs.debian.org/aptE<gt>. If you wish to report a bug in "
8328 #~ "B<apt>, please see I</usr/share/doc/debian/bug-reporting.txt> or the "
8329 #~ "B<reportbug>(1) command."
8332 #~ " <RefSect1><Title>Bugs</>\n"
8334 #~ " Consulte a <ulink url='http://bugs.debian.org/apt'>página de bugs do "
8336 #~ " Caso você queira relatar um bug no APT, por favor consulte o arquivo\n"
8337 #~ " <filename>/usr/share/doc/debian/bug-reporting.txt</> ou o comando "
8342 #~ msgid "apt was written by the APT team E<lt>apt@packages.debian.orgE<gt>."
8345 #~ " <RefSect1><Title>Author</>\n"
8347 #~ " O APT foi escrito pela equipe APT <email>apt@packages.debian.org</>.\n"
8353 #~ "Pin: release n=karmic*\n"
8354 #~ "Pin-Priority: 990\n"
8356 #~ "<programlisting>\n"
8358 #~ "Pin: release a=unstable\n"
8359 #~ "Pin-Priority: 50\n"
8362 #~ msgid "Dir Section"
8363 #~ msgstr "Descrição"
8366 #~ msgid "<replaceable>&synopsis-filename;</replaceable>"
8368 #~ "<programlisting>\n"
8369 #~ "apt-get install <replaceable>pacote</replaceable>/testing\n"
8372 #~ msgid "&apt-get;,&aptitude;,&apt-conf;"
8373 #~ msgstr "&apt-get; &apt-cache; &apt-conf; &sources-list;"
8376 #~ msgid "&file-preferences;"
8377 #~ msgstr "apt_preferences"
8380 #~ msgid "&apt-author.team; &apt-email; &apt-product;"
8381 #~ msgstr "&apt-get; &apt-cache; &apt-conf; &sources-list;"
8385 #~ "<!-- Boiler plate docinfo section -->\n"
8386 #~ "<!ENTITY apt-docinfo \"\n"
8387 #~ " <refentryinfo>\n"
8388 #~ " <address><email>apt@packages.debian.org</email></address>\n"
8390 #~ " <firstname>Jason</firstname> <surname>Gunthorpe</surname>\n"
8391 #~ " <contrib></contrib>\n"
8393 #~ " <copyright><year>1998-2001</year> <holder>Jason Gunthorpe</holder></"
8395 #~ " <date>28 October 2008</date>\n"
8396 #~ " <productname>Linux</productname>\n"
8397 #~ " </refentryinfo>\n"
8402 #~ " <address><email>apt@packages.debian.org</></address>\n"
8403 #~ " <author><firstname>Jason</> <surname>Gunthorpe</></>\n"
8404 #~ " <copyright><year>1998-2001</> <holder>Jason Gunthorpe</></>\n"
8405 #~ " <date>12 Março 2001</>\n"
8409 #~ msgid "to the version that is already installed (if any)."
8410 #~ msgstr "para a instância que já esteja instalada (caso exista)."
8414 #~ "The <literal>Pin-Priority:</literal> line in each APT preferences record "
8415 #~ "is optional. If omitted, APT assigns a priority of 1 less than the last "
8416 #~ "value specified on a line beginning with <literal>Pin-Priority: "
8417 #~ "release ...</literal>."
8419 #~ "A linha <literal>Pin-Priority:</literal> em cada registro de preferências "
8420 #~ "do APT é opcional. Caso omitida, o APT atribuirá uma prioridade de 1 "
8421 #~ "menos o último valor especificado em uma linha iniciando com <literal>Pin-"
8422 #~ "Priority: release ...</literal>."
8427 #~ " <VarListEntry><term><option/-h/</><term><option/--help/</>\n"
8428 #~ " <ListItem><Para>\n"
8429 #~ " Show a short usage summary.\n"
8430 #~ " </VarListEntry>\n"
8432 #~ " <VarListEntry><term><option/-v/</><term><option/--version/</>\n"
8433 #~ " <ListItem><Para>\n"
8434 #~ " Show the program version.\n"
8435 #~ " </VarListEntry>\n"
8437 #~ " <VarListEntry><term><option/-c/</><term><option/--config-file/</>\n"
8438 #~ " <ListItem><Para>\n"
8439 #~ " Configuration File; Specify a configuration file to use. \n"
8440 #~ " The program will read the default configuration file and then this \n"
8441 #~ " configuration file. See &apt-conf; for syntax information. \n"
8442 #~ " </VarListEntry>\n"
8444 #~ " <VarListEntry><term><option/-o/</><term><option/--option/</>\n"
8445 #~ " <ListItem><Para>\n"
8446 #~ " Set a Configuration Option; This will set an arbitary "
8447 #~ "configuration \n"
8448 #~ " option. The syntax is <option>-o Foo::Bar=bar</>.\n"
8449 #~ " </VarListEntry>\n"
8452 #~ " <VarListEntry><term><option/-h/</><term><option/--help/</>\n"
8453 #~ " <ListItem><Para>\n"
8454 #~ " Exibe um pequeno resumo de uso.\n"
8455 #~ " </VarListEntry>\n"
8457 #~ " <VarListEntry><term><option/-v/</><term><option/--version/</>\n"
8458 #~ " <ListItem><Para>\n"
8459 #~ " Exibe a versão do programa.\n"
8460 #~ " </VarListEntry>\n"
8462 #~ " <VarListEntry><term><option/-c/</><term><option/--config-file/</>\n"
8463 #~ " <ListItem><Para>\n"
8464 #~ " Arquivo de Configuração; Especifica um arquivo de configuração\n"
8465 #~ " a ser usado. O programa irá ler o arquivo de configuração padrão\n"
8466 #~ " e então este arquivo de configuração. Consulte &apt-conf; para\n"
8467 #~ " informação de sintaxe. \n"
8468 #~ " </VarListEntry>\n"
8470 #~ " <VarListEntry><term><option/-o/</><term><option/--option/</>\n"
8471 #~ " <ListItem><Para>\n"
8472 #~ " Defie uma Opção de Configuração; Esta opção irá definir uma opção\n"
8473 #~ " de configuração arbitrária. A sintaxe é <option>-o Foo::Bar=bar</>.\n"
8474 #~ " </VarListEntry>\n"
8477 #~ msgid "</programlisting> Then:"
8478 #~ msgstr "</programlisting> Então :"