]> git.saurik.com Git - apt.git/blame - doc/apt-get.8
Md5 support
[apt.git] / doc / apt-get.8
CommitLineData
578bfd0a
AL
1.\" $Id: apt-get.8,v 1.1 1998/07/02 02:58:12 jgg Exp $\r
2.\" This manpage is copyright (C) 1998 Branden Robinson <branden@debian.org>.\r
3.\" \r
4.\" This is free software; you may redistribute it and/or modify\r
5.\" it under the terms of the GNU General Public License as\r
6.\" published by the Free Software Foundation; either version 2,\r
7.\" or (at your option) any later version.\r
8.\"\r
9.\" This is distributed in the hope that it will be useful, but\r
10.\" WITHOUT ANY WARRANTY; without even the implied warranty of\r
11.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
12.\" GNU General Public License for more details.\r
13.\"\r
14.\" You should have received a copy of the GNU General Public\r
15.\" License along with APT; if not, write to the Free Software\r
16.\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA \r
17.\" 02111-1307 USA\r
18.TH apt-get 8 "16 June 1998" "Debian GNU/Linux"\r
19.SH NAME\r
20apt-get \- APT package handling utility \(em command-line interface\r
21.SH SYNOPSIS\r
22.B apt-get\r
23.RI [ options ]\r
24.RI [ command ]\r
25.RI [ package\r
26.IR ... ]\r
27.SH DESCRIPTION\r
28.B apt-get\r
29is the command-line tool for handling packages, and may be considered the\r
30user's "back-end" to\r
31.BR apt (8).\r
32Use\r
33.BR apt (8)\r
34if the usage of apt-get does not seem intuitive.\r
35.PP\r
36.I command\r
37is one of\r
38.RS\r
39.PD 0\r
40.B update\r
41.PP\r
42.B upgrade\r
43.PP\r
44.B dselect-upgrade\r
45.PP\r
46.B dist-upgrade\r
47.PP\r
48.B install\r
49.PP\r
50.B check\r
51.PP\r
52.B clean\r
53.RE\r
54.PD 1\r
55.PP\r
56Unless one of the\r
57.IR -h ,\r
58.IR --help ,\r
59.IR -f ,\r
60or\r
61.I --fix-broken\r
62options is given, one of the above commands must be present. Only the\r
63.B install\r
64command requires any further arguments.\r
65.SS update\r
66.B update\r
67is used to resynchronize the package overview files from their\r
68sources. The overviews of available packages are fetched from the\r
69location(s) specified in\r
70.IR /etc/apt/sources.list .\r
71For example, when using a Debian archive, this command retrieves and\r
72scans the\r
73.I Packages.gz\r
74files, so that information about new and updated packages is available. An\r
75.B update\r
76should always be performed before an\r
77.B upgrade\r
78or\r
79.BR dist-upgrade .\r
80.SS upgrade\r
81.B upgrade\r
82is used to install the newest versions of all packages currently installed\r
83on the system from the sources enumerated in\r
84.IR /etc/apt/sources.list .\r
85Packages currently installed with new versions available are retrieved\r
86and upgraded; under no circumstances are currently installed packages\r
87removed, or packages not already installed retrieved and installed. New\r
88versions of currently installed packages that cannot be upgraded without\r
89changing the install status of another package will be left at their\r
90current version. An\r
91.B update\r
92must be performed first so that\r
93.B apt-get\r
94knows that new versions of packages are available.\r
95.SS dselect-upgrade\r
96.B dselect-upgrade\r
97is used in conjunction with the traditional Debian GNU/Linux packaging\r
98front-end,\r
99.BR dselect (8). " dselect-upgrade"\r
100follows the changes made by\r
101.B dselect\r
102to the\r
103.I Status\r
104field of available packages, and performs the actions necessary to realize\r
105that state (for instance, the removal of old and the installation of new\r
106packages).\r
107.B dselect-upgrade\r
108does not attempt to intelligently address dependency issues as\r
109.B dist-upgrade\r
110or\r
111.B install\r
112do. If any dependency problems arise,\r
113.B apt-get\r
114aborts without performing any of the actions requested, even those\r
115without problems.\r
116.B dselect-upgrade\r
117is only useful to users of\r
118.B dselect\r
119and the\r
120.I .deb\r
121package file format. The\r
122.I /etc/apt/sources.list\r
123file contains a list of locations from which to retrieve desired package\r
124files.\r
125.SS dist-upgrade\r
126.BR dist-upgrade ,\r
127in addition to performing the function of\r
128.BR upgrade ,\r
129also intelligently handles changing dependencies with new versions of\r
130packages;\r
131.B apt-get\r
132has a "smart" conflict resolution system, and it will attempt to upgrade\r
133the most important packages at the expense of less important ones if\r
134necessary. The\r
135.I /etc/apt/sources.list\r
136file contains a list of locations from which to retrieve desired package\r
137files.\r
138.SS install\r
139.B install\r
140is followed by one or more\r
141.I packages\r
142desired for installation. Each\r
143.I package\r
144is a package name, not a fully qualified filename (for instance, in a\r
145Debian GNU/Linux system,\r
146.I lsdo\r
147would be the argument provided, not\r
148.IR ldso_1.9.6-2.deb ).\r
149All packages required by the package(s) specified for installation will\r
150also be retrieved and installed. The\r
151.I /etc/apt/sources.list\r
152file is used to locate the desired packages. If a hyphen is appended to\r
153the package name (with no intervening space), the identified package will\r
154be removed if it is installed. This latter feature may be used to override\r
155decisions made by apt-get's conflict resolution system.\r
156.SS check\r
157.B check\r
158is a diagnostic tool; it updates the package cache and checks for broken\r
159packages.\r
160.SS clean\r
161.B clean\r
162clears out the local repository of retrieved package files. It removes\r
163everything but the lock file from\r
164.I /var/cache/apt/archives/\r
165and\r
166.IR /var/cache/apt/archives/partial/ .\r
167When APT is used as a\r
168.BR dselect (8)\r
169method,\r
170.B\r
171clean\r
172is run automatically. Those who do not use dselect will likely want to\r
173run\r
174.B\r
175apt-get clean\r
176from time to time to free up disk space.\r
177.SH OPTIONS\r
178.TP\r
179.IR \-d , " --download-only"\r
180Download only; package files are only retrieved, not unpacked or installed.\r
181.TP\r
182.IR \-f , " --fix-broken"\r
183Fix; attempt to correct a system with broken dependencies in \r
184place. This option may be used alone or in conjunction with any of the \r
185command actions, and is sometimes necessary when running APT for the \r
186first time; APT itself does not allow broken package dependencies to \r
187exist on a system. It is possible that a system's dependency structure \r
188can be so corrupt as to require manual intervention (which usually \r
189means using dselect or dpkg --remove to eliminate some of the offending \r
190packages). Use of this option together with -m is discouraged. \r
191.TP\r
192.IR \-h , " --help"\r
193Help; display a helpful usage message and exit.\r
194.TP\r
195.IR \-m , " --ignore-missing"\r
196Ignore missing packages; If packages cannot be retrieved or fail the \r
197integrity check after retrieval (corrupted package files), hold back \r
198those packages and handle the result. Use of this option together with \r
199-f is discouraged. \r
200.TP\r
201.IR \-q , " --silent"\r
202Quiet; produces output suitable for logging, omitting progress indicators.\r
203.TP\r
204.I \-qq\r
205Very quiet; no output except for errors.\r
206.TP\r
207.IR \-s , " --simulate" , " --just-print" , " --dry-run" , " --recon " , " --no-act"\r
208No action; perform a simulation of events that would occur but do not\r
209actually change the system.\r
210.TP\r
211.IR \-y , " --yes" , " --assume-yes"\r
212Automatic yes to prompts; assume "yes" as answer to all prompts and run\r
213non-interactively.\r
214.SH FILES\r
215.TP\r
216.I /etc/apt/sources.list\r
217see\r
218.BR sources.list (5)\r
219.TP\r
220.I /var/cache/apt/archives/\r
221storage area for retrieved package files\r
222.TP\r
223.I /var/cache/apt/archives/partial/\r
224storage area for package files in transit\r
225.TP\r
226.I /var/state/apt/lists/\r
227storage area for state information for each package resource specified in\r
228.I /etc/apt/sources.list\r
229.TP\r
230.I /var/state/apt/lists/partial/\r
231storage area for state information in transit\r
232.SH SEE ALSO\r
233.BR apt (8),\r
234.BR apt-cache (8),\r
235.BR dpkg (8),\r
236.BR dselect (8),\r
237.BR sources.list (5)\r
238.SH DIAGNOSTICS\r
239apt-get returns zero on normal operation, decimal 100 on error.\r
240.SH BUGS\r
241See <http://www.debian.org/Bugs/db/pa/lapt.html>. If you wish to report a\r
242bug in\r
243.BR apt-get ,\r
244please see\r
245.I /usr/doc/debian/bug-reporting.txt\r
246or the\r
247.BR bug (1)\r
248command.\r
249.SH AUTHOR\r
250apt-get was written by the APT team <apt@packages.debian.org>.\r