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" [
5 <!ENTITY % aptent SYSTEM
"apt.ent">
8 <!ENTITY % aptverbatiment SYSTEM
"apt-verbatim.ent">
19 <!-- The last update date -->
20 <date>2013-
11-
25T00:
00:
00Z
</date>
24 <refentrytitle>apt
</refentrytitle>
25 <manvolnum>8</manvolnum>
26 <refmiscinfo class=
"manual">APT
</refmiscinfo>
29 <!-- Man page title -->
31 <refname>apt
</refname>
32 <refpurpose>APT package -- command-line interface
</refpurpose>
35 &synopsis-command-apt;
37 <refsect1><title>Description
</title>
38 <para><command>apt
</command> is the command-line tool for handling packages. It provides a commandline interface for the package management of the system.
40 See also &apt-get; and &apt-cache; for more low-level command options.
44 <varlistentry><term><option>list
</option></term>
45 <listitem><para><literal>list
</literal> is used to
46 display a list of packages. It supports shell pattern for matching
47 package names and the following options:
48 <option>--installed
</option>
49 <option>--upgradable
</option>
50 <option>--all-versions
</option>
55 <varlistentry><term><option>search
</option></term>
56 <listitem><para><literal>search
</literal> searches for the given
57 term(s) and display matching packages.
61 <varlistentry><term><option>show
</option></term>
62 <listitem><para><literal>show
</literal> shows the package information
63 for the given package(s).
67 <varlistentry><term><option>install
</option></term>
69 <para><literal>install
</literal> is followed by one or more
70 package names desired for installation or upgrading.
73 <para>A specific version of a package can be selected for installation by
74 following the package name with an equals and the version of the package
75 to select. This will cause that version to be located and selected for
76 install. Alternatively a specific distribution can be selected by
77 following the package name with a slash and the version of the
78 distribution or the Archive name (stable, testing, unstable).
</para>
82 <varlistentry><term><option>remove
</option></term>
83 <listitem><para><literal>remove
</literal> is identical to
<literal>install
</literal> except that packages are
84 removed instead of installed. Note that removing a package leaves its
85 configuration files on the system. If a plus sign is appended to the package
86 name (with no intervening space), the identified package will be
87 installed instead of removed.
</para></listitem>
90 <varlistentry><term><option>edit-sources
</option></term>
91 <listitem><para><literal>edit-sources
</literal> lets you edit
92 your sources.list file and provides basic sanity checks.
96 <varlistentry><term><option>update
</option></term>
97 <listitem><para><literal>update
</literal> is used to
98 resynchronize the package index files from their sources.
102 <varlistentry><term><option>upgrade
</option></term>
103 <listitem><para><literal>upgrade
</literal> is used to install the
104 newest versions of all packages currently installed on the system
105 from the sources enumerated in
106 <filename>/etc/apt/sources.list
</filename>. New package will be
107 installed, but existing package will never removed.
115 <refsect1><title>options
</title>
125 <refsect1><title>Differences to &apt-get;
</title>
126 <para>The
<command>apt
</command> command is meant to be pleasant for
127 end users and does not need to be backward compatilbe like
128 &apt-get;. Therefore some options are different:
131 <listitem>The option
<literal>DPkgPM::Progress-Fancy
</literal> is enabled.
133 <listitem>The option
<literal>APT::Color
</literal> is enabled.
135 <listitem>A new
<literal>list
</literal> command is available
136 similar to
<literal>dpkg --list
</literal>.
138 <listitem>The option
<literal>upgrade
</literal> has
139 <literal>--with-new-pkgs
</literal> enabled by default.
147 <refsect1><title>See Also
</title>
148 <para>&apt-get; &apt-cache;, &sources-list;,
149 &apt-conf;, &apt-config;,
150 The APT User's guide in
&guidesdir;, &apt-preferences;, the APT Howto.
</para>
153 <refsect1><title>Diagnostics
</title>
154 <para><command>apt
</command> returns zero on normal operation, decimal
100 on error.
</para>