]>
Commit | Line | Data |
---|---|---|
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 | |
20 | apt-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 | |
29 | is the command-line tool for handling packages, and may be considered the\r | |
30 | user's "back-end" to\r | |
31 | .BR apt (8).\r | |
32 | Use\r | |
33 | .BR apt (8)\r | |
34 | if the usage of apt-get does not seem intuitive.\r | |
35 | .PP\r | |
36 | .I command\r | |
37 | is 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 | |
56 | Unless one of the\r | |
57 | .IR -h ,\r | |
58 | .IR --help ,\r | |
59 | .IR -f ,\r | |
60 | or\r | |
61 | .I --fix-broken\r | |
62 | options is given, one of the above commands must be present. Only the\r | |
63 | .B install\r | |
64 | command requires any further arguments.\r | |
65 | .SS update\r | |
66 | .B update\r | |
67 | is used to resynchronize the package overview files from their\r | |
68 | sources. The overviews of available packages are fetched from the\r | |
69 | location(s) specified in\r | |
70 | .IR /etc/apt/sources.list .\r | |
71 | For example, when using a Debian archive, this command retrieves and\r | |
72 | scans the\r | |
73 | .I Packages.gz\r | |
74 | files, so that information about new and updated packages is available. An\r | |
75 | .B update\r | |
76 | should always be performed before an\r | |
77 | .B upgrade\r | |
78 | or\r | |
79 | .BR dist-upgrade .\r | |
80 | .SS upgrade\r | |
81 | .B upgrade\r | |
82 | is used to install the newest versions of all packages currently installed\r | |
83 | on the system from the sources enumerated in\r | |
84 | .IR /etc/apt/sources.list .\r | |
85 | Packages currently installed with new versions available are retrieved\r | |
86 | and upgraded; under no circumstances are currently installed packages\r | |
87 | removed, or packages not already installed retrieved and installed. New\r | |
88 | versions of currently installed packages that cannot be upgraded without\r | |
89 | changing the install status of another package will be left at their\r | |
90 | current version. An\r | |
91 | .B update\r | |
92 | must be performed first so that\r | |
93 | .B apt-get\r | |
94 | knows that new versions of packages are available.\r | |
95 | .SS dselect-upgrade\r | |
96 | .B dselect-upgrade\r | |
97 | is used in conjunction with the traditional Debian GNU/Linux packaging\r | |
98 | front-end,\r | |
99 | .BR dselect (8). " dselect-upgrade"\r | |
100 | follows the changes made by\r | |
101 | .B dselect\r | |
102 | to the\r | |
103 | .I Status\r | |
104 | field of available packages, and performs the actions necessary to realize\r | |
105 | that state (for instance, the removal of old and the installation of new\r | |
106 | packages).\r | |
107 | .B dselect-upgrade\r | |
108 | does not attempt to intelligently address dependency issues as\r | |
109 | .B dist-upgrade\r | |
110 | or\r | |
111 | .B install\r | |
112 | do. If any dependency problems arise,\r | |
113 | .B apt-get\r | |
114 | aborts without performing any of the actions requested, even those\r | |
115 | without problems.\r | |
116 | .B dselect-upgrade\r | |
117 | is only useful to users of\r | |
118 | .B dselect\r | |
119 | and the\r | |
120 | .I .deb\r | |
121 | package file format. The\r | |
122 | .I /etc/apt/sources.list\r | |
123 | file contains a list of locations from which to retrieve desired package\r | |
124 | files.\r | |
125 | .SS dist-upgrade\r | |
126 | .BR dist-upgrade ,\r | |
127 | in addition to performing the function of\r | |
128 | .BR upgrade ,\r | |
129 | also intelligently handles changing dependencies with new versions of\r | |
130 | packages;\r | |
131 | .B apt-get\r | |
132 | has a "smart" conflict resolution system, and it will attempt to upgrade\r | |
133 | the most important packages at the expense of less important ones if\r | |
134 | necessary. The\r | |
135 | .I /etc/apt/sources.list\r | |
136 | file contains a list of locations from which to retrieve desired package\r | |
137 | files.\r | |
138 | .SS install\r | |
139 | .B install\r | |
140 | is followed by one or more\r | |
141 | .I packages\r | |
142 | desired for installation. Each\r | |
143 | .I package\r | |
144 | is a package name, not a fully qualified filename (for instance, in a\r | |
145 | Debian GNU/Linux system,\r | |
146 | .I lsdo\r | |
147 | would be the argument provided, not\r | |
148 | .IR ldso_1.9.6-2.deb ).\r | |
149 | All packages required by the package(s) specified for installation will\r | |
150 | also be retrieved and installed. The\r | |
151 | .I /etc/apt/sources.list\r | |
152 | file is used to locate the desired packages. If a hyphen is appended to\r | |
153 | the package name (with no intervening space), the identified package will\r | |
154 | be removed if it is installed. This latter feature may be used to override\r | |
155 | decisions made by apt-get's conflict resolution system.\r | |
156 | .SS check\r | |
157 | .B check\r | |
158 | is a diagnostic tool; it updates the package cache and checks for broken\r | |
159 | packages.\r | |
160 | .SS clean\r | |
161 | .B clean\r | |
162 | clears out the local repository of retrieved package files. It removes\r | |
163 | everything but the lock file from\r | |
164 | .I /var/cache/apt/archives/\r | |
165 | and\r | |
166 | .IR /var/cache/apt/archives/partial/ .\r | |
167 | When APT is used as a\r | |
168 | .BR dselect (8)\r | |
169 | method,\r | |
170 | .B\r | |
171 | clean\r | |
172 | is run automatically. Those who do not use dselect will likely want to\r | |
173 | run\r | |
174 | .B\r | |
175 | apt-get clean\r | |
176 | from time to time to free up disk space.\r | |
177 | .SH OPTIONS\r | |
178 | .TP\r | |
179 | .IR \-d , " --download-only"\r | |
180 | Download only; package files are only retrieved, not unpacked or installed.\r | |
181 | .TP\r | |
182 | .IR \-f , " --fix-broken"\r | |
183 | Fix; attempt to correct a system with broken dependencies in \r | |
184 | place. This option may be used alone or in conjunction with any of the \r | |
185 | command actions, and is sometimes necessary when running APT for the \r | |
186 | first time; APT itself does not allow broken package dependencies to \r | |
187 | exist on a system. It is possible that a system's dependency structure \r | |
188 | can be so corrupt as to require manual intervention (which usually \r | |
189 | means using dselect or dpkg --remove to eliminate some of the offending \r | |
190 | packages). Use of this option together with -m is discouraged. \r | |
191 | .TP\r | |
192 | .IR \-h , " --help"\r | |
193 | Help; display a helpful usage message and exit.\r | |
194 | .TP\r | |
195 | .IR \-m , " --ignore-missing"\r | |
196 | Ignore missing packages; If packages cannot be retrieved or fail the \r | |
197 | integrity check after retrieval (corrupted package files), hold back \r | |
198 | those 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 | |
202 | Quiet; produces output suitable for logging, omitting progress indicators.\r | |
203 | .TP\r | |
204 | .I \-qq\r | |
205 | Very quiet; no output except for errors.\r | |
206 | .TP\r | |
207 | .IR \-s , " --simulate" , " --just-print" , " --dry-run" , " --recon " , " --no-act"\r | |
208 | No action; perform a simulation of events that would occur but do not\r | |
209 | actually change the system.\r | |
210 | .TP\r | |
211 | .IR \-y , " --yes" , " --assume-yes"\r | |
212 | Automatic yes to prompts; assume "yes" as answer to all prompts and run\r | |
213 | non-interactively.\r | |
214 | .SH FILES\r | |
215 | .TP\r | |
216 | .I /etc/apt/sources.list\r | |
217 | see\r | |
218 | .BR sources.list (5)\r | |
219 | .TP\r | |
220 | .I /var/cache/apt/archives/\r | |
221 | storage area for retrieved package files\r | |
222 | .TP\r | |
223 | .I /var/cache/apt/archives/partial/\r | |
224 | storage area for package files in transit\r | |
225 | .TP\r | |
226 | .I /var/state/apt/lists/\r | |
227 | storage 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 | |
231 | storage 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 | |
239 | apt-get returns zero on normal operation, decimal 100 on error.\r | |
240 | .SH BUGS\r | |
241 | See <http://www.debian.org/Bugs/db/pa/lapt.html>. If you wish to report a\r | |
242 | bug in\r | |
243 | .BR apt-get ,\r | |
244 | please see\r | |
245 | .I /usr/doc/debian/bug-reporting.txt\r | |
246 | or the\r | |
247 | .BR bug (1)\r | |
248 | command.\r | |
249 | .SH AUTHOR\r | |
250 | apt-get was written by the APT team <apt@packages.debian.org>.\r |