]> git.saurik.com Git - apt.git/blame - doc/apt-get.8.yo
Two little bug fixes
[apt.git] / doc / apt-get.8.yo
CommitLineData
de50f048
AL
1mailto(apt@packages.debian.org)
2manpage(apt-get)(8)(4 Dec 1998)(apt)()
3manpagename(apt-get)(APT package handling utility -- command-line interface)
4
5manpagesynopsis()
6 apt-get [options] [command] [package ...]
7
8manpagedescription()
9
10apt-get is the command-line tool for handling packages, and may be considered
11the user's "back-end" to apt(8).
12
13em(command) is one of:
14itemize(
15 it() update
16 it() upgrade
17 it() dselect-upgrade
18 it() dist-upgrade
09f2e026
AL
19 it() install package1 [package2] [...]
20 it() remove package1 [package2] [...]
de50f048
AL
21 it() check
22 it() clean
23)
24
25Unless the -h, or --help option is given one of the above commands
09f2e026 26must be present.
de50f048
AL
27
28startdit()
29dit(bf(update))
30bf(update) is used to resynchronize the package overview files from their
31sources. The overviews of available packages are fetched from the
32location(s) specified in bf(/etc/apt/sources.list).
33For example, when using a Debian archive, this command retrieves and
34scans the bf(Packages.gz) files, so that information about new and updated
35packages is available. An bf(update) should always be performed before an
36bf(upgrade) bf(dist-upgrade).
37
38dit(bf(upgrade))
39bf(upgrade) is used to install the newest versions of all packages currently
40installed on the system from the sources enumerated in
41bf(/etc/apt/sources.list). Packages currently installed with new versions
42available are retrieved and upgraded; under no circumstances are currently
43installed packages removed, or packages not already installed retrieved and
44installed. New versions of currently installed packages that cannot be
45upgraded without changing the install status of another package will be left
46at their current version. An bf(update) must be performed first so that
47bf(apt-get) knows that new versions of packages are available.
48
49dit(bf(dselect-upgrade))
50bf(dselect-upgrade)
51is used in conjunction with the traditional Debian GNU/Linux packaging
52front-end, bf(dselect (8)). bf(dselect-upgrade)
53follows the changes made by bf(dselect) to the em(Status)
54field of available packages, and performs the actions necessary to realize
55that state (for instance, the removal of old and the installation of new
56
57dit(bf(dist-upgrade))
58bf(dist-upgrade),in addition to performing the function of bf(upgrade),
59also intelligently handles changing dependencies with new versions of
60packages; bf(apt-get) has a "smart" conflict resolution system, and it will
61attempt to upgrade the most important packages at the expense of less
62important ones if necessary. The bf(/etc/apt/sources.list) file contains a
63list of locations from which to retrieve desired package files.
64
65dit(bf(install))
66bf(install) is followed by one or more em(packages) desired for installation.
67Each em(package) is a package name, not a fully qualified filename
68(for instance, in a Debian GNU/Linux system, em(lsdo) would be the argument
69provided, not em(ldso_1.9.6-2.deb)). All packages required by the package(s)
70specified for installation will also be retrieved and installed. The
71bf(/etc/apt/sources.list) file is used to locate the desired packages. If a
72hyphen is appended to the package name (with no intervening space), the
73identified package will be removed if it is installed. This latter feature
74may be used to override decisions made by apt-get's conflict resolution system.
75
09f2e026
AL
76dit(bf(remove))
77bf(remove) is identical to bf(install) except that packages are removed
78instead of installed. If a plus sign is appended to the package name (with no
79intervening space), the identified package will be installed.
80
de50f048
AL
81dit(bf(check))
82bf(check) is a diagnostic tool; it updates the package cache and checks for
83brokenpackages.
84
85dit(bf(clean))
86df(clean) clears out the local repository of retrieved package files. It
87removes everything but the lock file from bf(/var/cache/apt/archives/)
88and bf(/var/cache/apt/archives/partial/).
89When APT is used as a bf(dselect(8)) method, bf(clean) is run automatically.
90Those who do not use dselect will likely want to run code(apt-get clean)
91from time to time to free up disk space.
92enddit()
93
94manpageoptions()
95
96startdit()
97dit(bf(-d, --download-only))
98Download only; package files are only retrieved, not unpacked or installed.
99
100dit(bf(-f, --fix-broken))
101Fix; attempt to correct a system with broken dependencies in
102place. This option may be used alone or in conjunction with any of the
103command actions, and is sometimes necessary when running APT for the
104first time; APT itself does not allow broken package dependencies to
105exist on a system. It is possible that a system's dependency structure
106can be so corrupt as to require manual intervention (which usually
107means using dselect or dpkg --remove to eliminate some of the offending
108packages). Use of this option together with -m may produce an error in
109some situations.
110
111dit(bf(-h, --help))
112Help; display a helpful usage message and exits.
113
114dit(bf(-m, --ignore-missing))
115Ignore missing packages; If packages cannot be retrieved or fail the
116integrity check after retrieval (corrupted package files), hold back
117those packages and handle the result. Use of this option together with
118-f is discouraged.
119
09f2e026 120dit(bf(-q, --quiet))
de50f048
AL
121Quiet; produces output suitable for logging, omitting progress indicators.
122More qs will produce more quite up to a maximum of 2. You can also use
123bf(-q=#) to set the quiet level, overriding the configuration file.
124
125dit(bf(-s, --simulate, --just-print, --dry-run, --recon, --no-act))
126No action; perform a simulation of events that would occur but do not
127actually change the system.
128
129dit(bf(-y, --yes, --assume-yes))
130Automatic yes to prompts; assume "yes" as answer to all prompts and run
131non-interactively. If an undesireable situation, such as changing a held
132package or removing an essential package occures then bf(apt-get) will
133abort.
134
135dit(bf(-u, --show-upgraded))
136Show upgraded packages; Print out a list of all packages that are to be
137upgraded.
138
139dit(bf(--ignore-hold))
140Ignore package Holds; This causes bf(apt-get) to ignore a hold placed on
141a package. This may be usefull in conjunction with bf(dist-upgrade) to
142override a large number of undesired holds.
143
144dit(bf(--no-upgrade))
145Do not upgrade packages; When used in conjunction with bf(install)
146bf(no-upgrade) will prevent packages listed from being upgraded if they
147are already installed.
148
149dit(bf(--force-yes))
150Force yes; This is a dangerous option that will cause apt to continue without
151prompting if it is doing something potentially harmfull. It should not be used
152except in very special situations. Using bf(force-yes) can potentially destroy
153your system!
154
155dit(bf(-c, --config-file))
156Configuration File; Specify a configuration file to use. bf(apt-get) will
157read the default configuration file and then this configuration file. See
158bf(apt.conf(5)) for syntax information.
159
160dit(bf(-o, --option))
161Set a Configuration Option; This will set an arbitary configuration option.
162The syntax is
163verb(-o Foo::Bar=bar)
09f2e026 164enddit()
de50f048
AL
165
166manpagefiles()
167itemize(
168 it() /etc/apt/sources.list
169 locations to fetch packages from
170
171 it() /var/cache/apt/archives/
172 storage area for retrieved package files
173
174 it() /var/cache/apt/archives/partial/
175 storage area for package files in transit
176
177 it() /var/state/apt/lists/
178 storage area for state information for each package resource specified in
179
180 it() /var/state/apt/lists/partial/
181 storage area for state information in transit
182)
183
184manpageseealso()
09f2e026
AL
185apt-cache(8),
186dpkg(8),
187dselect(8),
188sources.list(5),
189The APT Users Guide in /usr/doc/apt/
de50f048
AL
190
191manpagediagnostics()
192apt-get returns zero on normal operation, decimal 100 on error.
193
194manpagebugs()
195See http://www.debian.org/Bugs/db/pa/lapt.html. If you wish to report a
196bug in bf(apt-get), please see bf(/usr/doc/debian/bug-reporting.txt)
197or the bf(bug(1)) command.
198
199manpageauthor()
200apt-get was written by the APT team <apt@packages.debian.org>.