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"> %aptent;
5 <!ENTITY % aptverbatiment SYSTEM
"apt-verbatim.ent"> %aptverbatiment;
6 <!ENTITY % aptvendor SYSTEM
"apt-vendor.ent"> %aptvendor;
15 <!-- The last update date -->
16 <date>2013-
11-
25T00:
00:
00Z
</date>
20 <refentrytitle>apt
</refentrytitle>
21 <manvolnum>8</manvolnum>
22 <refmiscinfo class=
"manual">APT
</refmiscinfo>
25 <!-- Man page title -->
27 <refname>apt
</refname>
28 <refpurpose>command-line interface
</refpurpose>
31 &synopsis-command-apt;
33 <refsect1><title>Description
</title>
34 <para><command>apt
</command> (Advanced Package Tool) is the
35 command-line tool for handling packages. It provides a commandline
36 interface for the package management of the system.
38 See also &apt-get; and &apt-cache; for more low-level command options.
42 <varlistentry><term><option>list
</option></term>
43 <listitem><para><literal>list
</literal> is used to
44 display a list of packages. It supports shell pattern for matching
45 package names and the following options:
46 <option>--installed
</option>,
47 <option>--upgradable
</option>,
48 <option>--upgradeable
</option>,
49 <option>--all-versions
</option>
54 <varlistentry><term><option>search
</option></term>
55 <listitem><para><literal>search
</literal> searches for the given
56 term(s) and display matching packages.
60 <varlistentry><term><option>show
</option></term>
61 <listitem><para><literal>show
</literal> shows the package information
62 for the given package(s).
66 <varlistentry><term><option>install
</option></term>
68 <para><literal>install
</literal> is followed by one or more
69 package names desired for installation or upgrading.
72 <para>A specific version of a package can be selected for installation by
73 following the package name with an equals and the version of the package
74 to select. This will cause that version to be located and selected for
75 install. Alternatively a specific distribution can be selected by
76 following the package name with a slash and the version of the
77 distribution or the Archive name (stable, testing, unstable).
</para>
81 <varlistentry><term><option>remove
</option></term>
82 <listitem><para><literal>remove
</literal> is identical to
<literal>install
</literal> except that packages are
83 removed instead of installed. Note that removing a package leaves its
84 configuration files on the system. If a plus sign is appended to the package
85 name (with no intervening space), the identified package will be
86 installed instead of removed.
</para></listitem>
89 <varlistentry><term><option>autoremove
</option> (and the
<option>auto-remove
</option> alias since
1.1)
</term>
90 <listitem><para><literal>autoremove
</literal> is used to remove packages that were automatically
91 installed to satisfy dependencies for other packages and are now no longer needed.
</para></listitem>
94 <varlistentry><term><option>edit-sources
</option></term>
95 <listitem><para><literal>edit-sources
</literal> lets you edit
96 your sources.list file and provides basic sanity checks.
100 <varlistentry><term><option>update
</option></term>
101 <listitem><para><literal>update
</literal> is used to
102 resynchronize the package index files from their sources.
106 <varlistentry><term><option>upgrade
</option></term>
107 <listitem><para><literal>upgrade
</literal> is used to install the
108 newest versions of all packages currently installed on the system
109 from the sources enumerated in
110 <filename>/etc/apt/sources.list
</filename>. New packages will be
111 installed, but existing packages will never be removed.
115 <varlistentry><term><option>full-upgrade
</option></term>
116 <listitem><para><literal>full-upgrade
</literal> performs the
117 function of upgrade but may also remove installed packages
118 if that is required in order to resolve a package conflict.
126 <refsect1><title>options
</title>
136 <refsect1><title>Script usage
</title>
138 The
&apt; commandline is designed as a end-user tool and it may
139 change the output between versions. While it tries to not break
140 backward compatibility there is no guarantee for it either.
141 All features of
&apt; are available in &apt-cache; and &apt-get;
142 via APT options. Please prefer using these commands in your scripts.
146 <refsect1><title>Differences to &apt-get;
</title>
147 <para>The
<command>apt
</command> command is meant to be pleasant for
148 end users and does not need to be backward compatible like
149 &apt-get;. Therefore some options are different:
153 <para>The option
<literal>DPkg::Progress-Fancy
</literal> is enabled.
157 <para>The option
<literal>APT::Color
</literal> is enabled.
161 <para>A new
<literal>list
</literal> command is available
162 similar to
<literal>dpkg --list
</literal>.
166 <para>The option
<literal>upgrade
</literal> has
167 <literal>--with-new-pkgs
</literal> enabled by default.
176 <refsect1><title>See Also
</title>
177 <para>&apt-get;, &apt-cache;, &sources-list;,
178 &apt-conf;, &apt-config;,
179 The APT User's guide in
&guidesdir;, &apt-preferences;, the APT Howto.
</para>
182 <refsect1><title>Diagnostics
</title>
183 <para><command>apt
</command> returns zero on normal operation, decimal
100 on error.
</para>