apt.8.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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.jgunthorpe;
  12. &apt-author.team;
  13. &apt-email;
  14. &apt-product;
  15. <!-- The last update date -->
  16. <date>2013-11-25T00:00:00Z</date>
  17. </refentryinfo>
  18. <refmeta>
  19. <refentrytitle>apt</refentrytitle>
  20. <manvolnum>8</manvolnum>
  21. <refmiscinfo class="manual">APT</refmiscinfo>
  22. </refmeta>
  23. <!-- Man page title -->
  24. <refnamediv>
  25. <refname>apt</refname>
  26. <refpurpose>APT package -- command-line interface</refpurpose>
  27. </refnamediv>
  28. &synopsis-command-apt;
  29. <refsect1><title>Description</title>
  30. <para><command>apt</command> is the command-line tool for handling packages. It provides a commandline interface for the package management of the system.
  31. See also &apt-get; and &apt-cache; for more low-level command options.
  32. </para>
  33. <variablelist>
  34. <varlistentry><term><option>update</option></term>
  35. <listitem><para><literal>update</literal> is used to
  36. resynchronize the package index files from their sources.
  37. </para></listitem>
  38. </varlistentry>
  39. <varlistentry><term><option>upgrade</option></term>
  40. <listitem><para><literal>upgrade</literal> is used to install the
  41. newest versions of all packages currently installed on the system
  42. from the sources enumerated in
  43. <filename>/etc/apt/sources.list</filename>. New package will be
  44. installed, but existing package will never removed.
  45. </para></listitem>
  46. </varlistentry>
  47. <varlistentry><term><option>install</option></term>
  48. <listitem>
  49. <para><literal>install</literal> is followed by one or more
  50. package names desired for installation or upgrading.
  51. </para>
  52. <para>A specific version of a package can be selected for installation by
  53. following the package name with an equals and the version of the package
  54. to select. This will cause that version to be located and selected for
  55. install. Alternatively a specific distribution can be selected by
  56. following the package name with a slash and the version of the
  57. distribution or the Archive name (stable, testing, unstable).</para>
  58. </listitem>
  59. </varlistentry>
  60. <varlistentry><term><option>remove</option></term>
  61. <listitem><para><literal>remove</literal> is identical to <literal>install</literal> except that packages are
  62. removed instead of installed. Note that removing a package leaves its
  63. configuration files on the system. If a plus sign is appended to the package
  64. name (with no intervening space), the identified package will be
  65. installed instead of removed.</para></listitem>
  66. </varlistentry>
  67. </variablelist>
  68. </refsect1>
  69. <refsect1><title>options</title>
  70. &apt-cmdblurb;
  71. <variablelist>
  72. &apt-commonoptions;
  73. </variablelist>
  74. </refsect1>
  75. <refsect1><title>Differences to &apt-get;</title>
  76. <para>The <command>apt</command> command is meant to be pleasant for
  77. end users and does not need to be backward compatilbe like
  78. &apt-get;. Therefore some options are different:
  79. <itemizedlist>
  80. <listitem>The option <literal>DPkgPM::Progress-Fancy</literal> is enabled.
  81. </listitem>
  82. <listitem>The option <literal>APT::Color</literal> is enabled.
  83. </listitem>
  84. <listitem>A new <literal>list</literal> command is available
  85. similar to <literal>dpkg --list</literal>.
  86. </listitem>
  87. <listitem>The option <literal>upgrade</literal> has
  88. <literal>--with-new-pkgs</literal> enabled by default.
  89. </listitem>
  90. </itemizedlist>
  91. </para>
  92. </refsect1>
  93. <refsect1><title>See Also</title>
  94. <para>&apt-get; &apt-cache;, &sources-list;,
  95. &apt-conf;, &apt-config;,
  96. The APT User's guide in &guidesdir;, &apt-preferences;, the APT Howto.</para>
  97. </refsect1>
  98. <refsect1><title>Diagnostics</title>
  99. <para><command>apt</command> returns zero on normal operation, decimal 100 on error.</para>
  100. </refsect1>
  101. &manbugs;
  102. </refentry>