4
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5
.\" Date: 25\ \&November\ \&2013
10
.TH "APT" "8" "25\ \&November\ \&2013" "APT 1.0" "APT"
11
.\" -----------------------------------------------------------------
12
.\" * Define some portability stuff
13
.\" -----------------------------------------------------------------
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
.\" http://bugs.debian.org/507673
16
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
.\" -----------------------------------------------------------------
21
.\" * set default formatting
22
.\" -----------------------------------------------------------------
23
.\" disable hyphenation
25
.\" disable justification (adjust text to left margin only)
27
.\" -----------------------------------------------------------------
28
.\" * MAIN CONTENT STARTS HERE *
29
.\" -----------------------------------------------------------------
31
apt \- command\-line interface
34
\fBapt\fR [\fB\-h\fR] [\fB\-o=\fR\fB\fIconfig_string\fR\fR] [\fB\-c=\fR\fB\fIconfig_file\fR\fR] [\fB\-t=\fR\fB\fItarget_release\fR\fR] [\fB\-a=\fR\fB\fIarchitecture\fR\fR] {list | search | show | update | install\ \fIpkg\fR\ [{=\fIpkg_version_number\fR\ |\ /\fItarget_release\fR}]... | remove\ \fIpkg\fR... | upgrade | full\-upgrade | edit\-sources | {\-v\ |\ \-\-version} | {\-h\ |\ \-\-help}}
38
(Advanced Package Tool) is the command\-line tool for handling packages\&. It provides a commandline interface for the package management of the system\&. See also
42
for more low\-level command options\&.
47
is used to display a list of packages\&. It supports shell pattern for matching package names and the following options:
50
\fB\-\-all\-versions\fR
57
searches for the given term(s) and display matching packages\&.
63
shows the package information for the given package(s)\&.
69
is followed by one or more package names desired for installation or upgrading\&.
71
A specific version of a package can be selected for installation by following the package name with an equals and the version of the package to select\&. This will cause that version to be located and selected for install\&. Alternatively a specific distribution can be selected by following the package name with a slash and the version of the distribution or the Archive name (stable, testing, unstable)\&.
79
except that packages are removed instead of installed\&. Note that removing a package leaves its configuration files on the system\&. If a plus sign is appended to the package name (with no intervening space), the identified package will be installed instead of removed\&.
85
lets you edit your sources\&.list file and provides basic sanity checks\&.
91
is used to resynchronize the package index files from their sources\&.
97
is used to install the newest versions of all packages currently installed on the system from the sources enumerated in
98
/etc/apt/sources\&.list\&. New package will be installed, but existing package will never removed\&.
104
performs the function of upgrade but may also remove installed packages if that is required in order to resolve a package conflict\&.
108
All command line options may be set using the configuration file, the descriptions indicate the configuration option to set\&. For boolean options you can override the config file by using something like
109
\fB\-f\-\fR,\fB\-\-no\-f\fR,
111
or several other variations\&.
113
\fB\-h\fR, \fB\-\-help\fR
115
Show a short usage summary\&.
118
\fB\-v\fR, \fB\-\-version\fR
120
Show the program version\&.
123
\fB\-c\fR, \fB\-\-config\-file\fR
125
Configuration File; Specify a configuration file to use\&. The program will read the default configuration file and then this configuration file\&. If configuration settings need to be set before the default configuration files are parsed specify a file with the
127
environment variable\&. See
129
for syntax information\&.
132
\fB\-o\fR, \fB\-\-option\fR
134
Set a Configuration Option; This will set an arbitrary configuration option\&. The syntax is
135
\fB\-o Foo::Bar=bar\fR\&.
139
can be used multiple times to set different options\&.
145
commandline is designed as a end\-user tool and it may change the output between versions\&. While it tries to not break backward compatibility there is no guarantee for it either\&. All features of
151
via APT options\&. Please prefer using these commands in your scripts\&.
152
.SH "DIFFERENCES TO APT-GET(8)"
156
command is meant to be pleasant for end users and does not need to be backward compatible like
157
\fBapt-get\fR(8)\&. Therefore some options are different:
168
DPkgPM::Progress\-Fancy
195
command is available similar to
211
enabled by default\&.
218
\fBsources.list\fR(5),
220
\fBapt-config\fR(8), The APT User\*(Aqs guide in /usr/share/doc/apt\-doc/,
221
\fBapt_preferences\fR(5), the APT Howto\&.
225
returns zero on normal operation, decimal 100 on error\&.
228
\m[blue]\fBAPT bug page\fR\m[]\&\s-2\u[1]\d\s+2\&. If you wish to report a bug in APT, please see
229
/usr/share/doc/debian/bug\-reporting\&.txt
242
\%http://bugs.debian.org/src:apt