apt.8.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % aptent SYSTEM "apt.ent">
  5. %aptent;
  6. <!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent">
  7. %aptverbatiment;
  8. ]>
  9. <refentry>
  10. <refentryinfo>
  11. &apt-author.team;
  12. &apt-email;
  13. &apt-product;
  14. <!-- The last update date -->
  15. <date>2013-11-25T00:00:00Z</date>
  16. </refentryinfo>
  17. <refmeta>
  18. <refentrytitle>apt</refentrytitle>
  19. <manvolnum>8</manvolnum>
  20. <refmiscinfo class="manual">APT</refmiscinfo>
  21. </refmeta>
  22. <!-- Man page title -->
  23. <refnamediv>
  24. <refname>apt</refname>
  25. <refpurpose>APT package -- command-line interface</refpurpose>
  26. </refnamediv>
  27. &synopsis-command-apt;
  28. <refsect1><title>Description</title>
  29. <para><command>apt</command> is the command-line tool for handling packages. It provides a commandline interface for the package management of the system.
  30. See also &apt-get; and &apt-cache; for more low-level command options.
  31. </para>
  32. <variablelist>
  33. <varlistentry><term><option>list</option></term>
  34. <listitem><para><literal>list</literal> is used to
  35. display a list of packages. It supports shell pattern for matching
  36. package names and the following options:
  37. <option>--installed</option>
  38. <option>--upgradable</option>
  39. <option>--all-versions</option>
  40. are supported.
  41. </para></listitem>
  42. </varlistentry>
  43. <varlistentry><term><option>search</option></term>
  44. <listitem><para><literal>search</literal> searches for the given
  45. term(s) and display matching packages.
  46. </para></listitem>
  47. </varlistentry>
  48. <varlistentry><term><option>show</option></term>
  49. <listitem><para><literal>show</literal> shows the package information
  50. for the given package(s).
  51. </para></listitem>
  52. </varlistentry>
  53. <varlistentry><term><option>install</option></term>
  54. <listitem>
  55. <para><literal>install</literal> is followed by one or more
  56. package names desired for installation or upgrading.
  57. </para>
  58. <para>A specific version of a package can be selected for installation by
  59. following the package name with an equals and the version of the package
  60. to select. This will cause that version to be located and selected for
  61. install. Alternatively a specific distribution can be selected by
  62. following the package name with a slash and the version of the
  63. distribution or the Archive name (stable, testing, unstable).</para>
  64. </listitem>
  65. </varlistentry>
  66. <varlistentry><term><option>remove</option></term>
  67. <listitem><para><literal>remove</literal> is identical to <literal>install</literal> except that packages are
  68. removed instead of installed. Note that removing a package leaves its
  69. configuration files on the system. If a plus sign is appended to the package
  70. name (with no intervening space), the identified package will be
  71. installed instead of removed.</para></listitem>
  72. </varlistentry>
  73. <varlistentry><term><option>edit-sources</option></term>
  74. <listitem><para><literal>edit-sources</literal> lets you edit
  75. your sources.list file and provides basic sanity checks.
  76. </para></listitem>
  77. </varlistentry>
  78. <varlistentry><term><option>update</option></term>
  79. <listitem><para><literal>update</literal> is used to
  80. resynchronize the package index files from their sources.
  81. </para></listitem>
  82. </varlistentry>
  83. <varlistentry><term><option>upgrade</option></term>
  84. <listitem><para><literal>upgrade</literal> is used to install the
  85. newest versions of all packages currently installed on the system
  86. from the sources enumerated in
  87. <filename>/etc/apt/sources.list</filename>. New package will be
  88. installed, but existing package will never removed.
  89. </para></listitem>
  90. </varlistentry>
  91. </variablelist>
  92. </refsect1>
  93. <refsect1><title>options</title>
  94. &apt-cmdblurb;
  95. <variablelist>
  96. &apt-commonoptions;
  97. </variablelist>
  98. </refsect1>
  99. <refsect1><title>Differences to &apt-get;</title>
  100. <para>The <command>apt</command> command is meant to be pleasant for
  101. end users and does not need to be backward compatilbe like
  102. &apt-get;. Therefore some options are different:
  103. <itemizedlist>
  104. <listitem>The option <literal>DPkgPM::Progress-Fancy</literal> is enabled.
  105. </listitem>
  106. <listitem>The option <literal>APT::Color</literal> is enabled.
  107. </listitem>
  108. <listitem>A new <literal>list</literal> command is available
  109. similar to <literal>dpkg --list</literal>.
  110. </listitem>
  111. <listitem>The option <literal>upgrade</literal> has
  112. <literal>--with-new-pkgs</literal> enabled by default.
  113. </listitem>
  114. </itemizedlist>
  115. </para>
  116. </refsect1>
  117. <refsect1><title>See Also</title>
  118. <para>&apt-get; &apt-cache;, &sources-list;,
  119. &apt-conf;, &apt-config;,
  120. The APT User's guide in &guidesdir;, &apt-preferences;, the APT Howto.</para>
  121. </refsect1>
  122. <refsect1><title>Diagnostics</title>
  123. <para><command>apt</command> returns zero on normal operation, decimal 100 on error.</para>
  124. </refsect1>
  125. &manbugs;
  126. </refentry>