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>command-line interface</refpurpose>
35
&synopsis-command-apt;
37
<refsect1><title>Description</title>
38
<para><command>apt</command> (Advanced Package Tool) is the
39
command-line tool for handling packages. It provides a commandline
40
interface for the package management of the system.
42
See also &apt-get; and &apt-cache; for more low-level command options.
46
<varlistentry><term><option>list</option></term>
47
<listitem><para><literal>list</literal> is used to
48
display a list of packages. It supports shell pattern for matching
49
package names and the following options:
50
<option>--installed</option>,
51
<option>--upgradable</option>,
52
<option>--all-versions</option>
57
<varlistentry><term><option>search</option></term>
58
<listitem><para><literal>search</literal> searches for the given
59
term(s) and display matching packages.
63
<varlistentry><term><option>show</option></term>
64
<listitem><para><literal>show</literal> shows the package information
65
for the given package(s).
69
<varlistentry><term><option>install</option></term>
71
<para><literal>install</literal> is followed by one or more
72
package names desired for installation or upgrading.
75
<para>A specific version of a package can be selected for installation by
76
following the package name with an equals and the version of the package
77
to select. This will cause that version to be located and selected for
78
install. Alternatively a specific distribution can be selected by
79
following the package name with a slash and the version of the
80
distribution or the Archive name (stable, testing, unstable).</para>
84
<varlistentry><term><option>remove</option></term>
85
<listitem><para><literal>remove</literal> is identical to <literal>install</literal> except that packages are
86
removed instead of installed. Note that removing a package leaves its
87
configuration files on the system. If a plus sign is appended to the package
88
name (with no intervening space), the identified package will be
89
installed instead of removed.</para></listitem>
92
<varlistentry><term><option>edit-sources</option></term>
93
<listitem><para><literal>edit-sources</literal> lets you edit
94
your sources.list file and provides basic sanity checks.
98
<varlistentry><term><option>update</option></term>
99
<listitem><para><literal>update</literal> is used to
100
resynchronize the package index files from their sources.
104
<varlistentry><term><option>upgrade</option></term>
105
<listitem><para><literal>upgrade</literal> is used to install the
106
newest versions of all packages currently installed on the system
107
from the sources enumerated in
108
<filename>/etc/apt/sources.list</filename>. New package will be
109
installed, but existing package will never removed.
113
<varlistentry><term><option>full-upgrade</option></term>
114
<listitem><para><literal>full-upgrade</literal> performs the
115
function of upgrade but may also remove installed packages
116
if that is required in order to resolve a package conflict.
124
<refsect1><title>options</title>
134
<refsect1><title>Script usage</title>
136
The &apt; commandline is designed as a end-user tool and it may
137
change the output between versions. While it tries to not break
138
backward compatibility there is no guarantee for it either.
139
All features of &apt; are available in &apt-cache; and &apt-get;
140
via APT options. Please prefer using these commands in your scripts.
144
<refsect1><title>Differences to &apt-get;</title>
145
<para>The <command>apt</command> command is meant to be pleasant for
146
end users and does not need to be backward compatible like
147
&apt-get;. Therefore some options are different:
151
<para>The option <literal>DPkgPM::Progress-Fancy</literal> is enabled.
155
<para>The option <literal>APT::Color</literal> is enabled.
159
<para>A new <literal>list</literal> command is available
160
similar to <literal>dpkg --list</literal>.
164
<para>The option <literal>upgrade</literal> has
165
<literal>--with-new-pkgs</literal> enabled by default.
174
<refsect1><title>See Also</title>
175
<para>&apt-get;, &apt-cache;, &sources-list;,
176
&apt-conf;, &apt-config;,
177
The APT User's guide in &guidesdir;, &apt-preferences;, the APT Howto.</para>
180
<refsect1><title>Diagnostics</title>
181
<para><command>apt</command> returns zero on normal operation, decimal 100 on error.</para>