source: yum/trunk/docs/yum.8@ 516

Last change on this file since 516 was 516, checked in by Yuri Dario, 11 years ago

yum: update trunk to 3.4.3.

  • Property svn:eol-style set to native
File size: 27.4 KB
Line 
1.\" yum - Yellowdog Updater Modified
2.TH "yum" "8" "" "Seth Vidal" ""
3.SH "NAME"
4yum \- Yellowdog Updater Modified
5.SH "SYNOPSIS"
6\fByum\fP [options] [command] [package ...]
7.SH "DESCRIPTION"
8.PP
9\fByum\fP is an interactive, rpm based, package manager. It can automatically
10perform system updates, including dependency analysis and obsolete processing
11based on "repository" metadata. It can also perform installation of new
12packages, removal of old packages and perform queries on the installed and/or
13available packages among many other commands/services (see below)\&. \fByum\fP
14is similar to other high level package managers like apt\-get and smart\&.
15.PP
16While there are some graphical interfaces directly to the \fByum\fP code, more
17recent graphical interface development is happening with PackageKit and the
18gnome\-packagekit application\&.
19.PP
20\fIcommand\fP is one of:
21.br
22.I \fR * install package1 [package2] [\&.\&.\&.]
23.br
24.I \fR * update [package1] [package2] [\&.\&.\&.]
25.br
26.I \fR * update-to [package1] [package2] [\&.\&.\&.]
27.br
28.I \fR * check\-update
29.br
30.I \fR * upgrade [package1] [package2] [\&.\&.\&.]
31.br
32.I \fR * upgrade-to [package1] [package2] [\&.\&.\&.]
33.br
34.I \fR * distribution-synchronization [package1] [package2] [\&.\&.\&.]
35.br
36.I \fR * remove | erase package1 [package2] [\&.\&.\&.]
37.br
38.I \fR * list [\&.\&.\&.]
39.br
40.I \fR * info [\&.\&.\&.]
41.br
42.I \fR * provides | whatprovides feature1 [feature2] [\&.\&.\&.]
43.br
44.I \fR * clean [ packages | metadata | expire-cache | rpmdb | plugins | all ]
45.br
46.I \fR * makecache
47.br
48.I \fR * groups [\&.\&.\&.]
49.br
50.I \fR * search string1 [string2] [\&.\&.\&.]
51.br
52.I \fR * shell [filename]
53.br
54.I \fR * resolvedep dep1 [dep2] [\&.\&.\&.]
55.br
56.I \fR * localinstall rpmfile1 [rpmfile2] [\&.\&.\&.]
57 (maintained for legacy reasons only - use install)
58.br
59.I \fR * localupdate rpmfile1 [rpmfile2] [\&.\&.\&.]
60 (maintained for legacy reasons only - use update)
61.br
62.I \fR * reinstall package1 [package2] [\&.\&.\&.]
63.br
64.I \fR * downgrade package1 [package2] [\&.\&.\&.]
65.br
66.I \fR * deplist package1 [package2] [\&.\&.\&.]
67.br
68.I \fR * repolist [all|enabled|disabled]
69.br
70.I \fR * version [ all | installed | available | group-* | nogroups* | grouplist | groupinfo ]
71.br
72.I \fR * history [info|list|packages-list|summary|addon-info|redo|undo|rollback|new]
73.br
74.I \fR * check
75.br
76.I \fR * help [command]
77.br
78.PP
79Unless the \-\-help or \-h option is given, one of the above commands
80must be present\&.
81.PP
82Repository configuration is honored in all operations.
83.PP
84.IP "\fBinstall\fP"
85Is used to install the latest version of a package or
86group of packages while ensuring that all dependencies are
87satisfied\&. (See \fBSpecifying package names\fP for more information)
88If no package matches the given package name(s), they are assumed to be a shell
89glob and any matches are then installed\&. If the name starts with an
90@ character the rest of the name is used as though passed to the groupinstall
91command\&. If the name starts with a - character, then a search is done within
92the transaction and any matches are removed. If the name is a file, then install works
93like localinstall\&. If the name doesn't match a package, then package
94"provides" are searched (Eg. "_sqlitecache.so()(64bit)") as are
95filelists (Eg. "/usr/bin/yum"). Also note that for filelists, wildcards will
96match multiple packages\&.
97.IP
98.IP "\fBupdate\fP"
99If run without any packages, update will update every currently
100installed package. If one or more packages or package globs are specified, Yum will
101only update the listed packages\&. While updating packages, \fByum\fP
102will ensure that all dependencies are satisfied\&. (See \fBSpecifying package names\fP for more information)
103If the packages or globs specified match to packages which are not currently installed then update will
104not install them\&. update operates on groups, files, provides and filelists
105just like the "install" command\&.
106
107If the main obsoletes configure option is true (default) or the \-\-obsoletes
108flag is present \fByum\fP will include package
109obsoletes in its calculations - this makes it better for distro\-version
110changes, for example: upgrading from somelinux 8.0 to somelinux 9.
111
112Note that "\fBupdate\fP" works on installed packages first, and only if there
113are no matches does it look for available packages. The difference is most
114noticable when you do "\fBupdate\fP foo-1-2" which will act exactly as
115"\fBupdate\fP foo" if foo-1-2 is installed. You can use the "\fBupdate-to\fP"
116if you'd prefer that nothing happen in the above case.
117.IP
118.IP "\fBupdate-to\fP"
119This command works like "\fBupdate\fP" but always specifies the version of the
120package we want to update to.
121.IP
122.IP "\fBcheck\-update\fP"
123Implemented so you could know if your machine had any updates that needed to
124be applied without running it interactively. Returns exit value of 100 if
125there are packages available for an update. Also returns a list of the packages
126to be updated in list format. Returns 0 if no packages are available for
127update. Returns 1 if an error occurred.
128Running in verbose mode also shows obsoletes.
129.IP
130.IP "\fBupgrade\fP"
131Is the same as the update command with the \-\-obsoletes flag set. See update
132for more details.
133.IP
134.IP "\fBupgrade-to\fP"
135This command works like "\fBupgrade\fP" but always specifies the version of the
136package we want to update to.
137.IP
138.IP "\fBdistribution\-synchronization\fP or \fBdistro\-sync\fP"
139Synchronizes the installed package set with the latest packages available, this
140is done by either obsoleting, upgrading or downgrading as appropriate. This will
141"normally" do the same thing as the upgrade command however if you have the
142package FOO installed at version 4, and the latest available is only
143version 3, then this command will \fBdowngrade\fP FOO to version 3.
144
145If you give the optional argument "full", then the command will also reinstall
146packages where the install checksum and the available checksum do not match. And
147remove old packages (can be used to sync. rpmdb versions). The optional argument
148"different" can be used to specify the default operation.
149
150This command does not perform operations on groups, local packages or negative
151selections.
152.IP
153.IP "\fBremove\fP or \fBerase\fP"
154Are used to remove the specified packages from the system
155as well as removing any packages which depend on the package being
156removed\&. remove operates on groups, files, provides and filelists just like
157the "install" command\&.(See \fBSpecifying package names\fP for more information)
158
159Note that "yum" is included in the protected_packages configuration, by default.
160So you can't accidentally remove yum itself.
161.IP
162.IP "\fBlist\fP"
163Is used to list various information about available
164packages; more complete details are available in the \fIList Options\fP
165section below\&.
166.IP
167.IP "\fBprovides\fP or \fBwhatprovides\fP"
168Is used to find out which package provides some feature
169or file. Just use a specific name or a file-glob-syntax wildcards to list
170the packages available or installed that provide that feature or file\&.
171.IP
172.IP "\fBsearch\fP"
173This is used to find packages when you know something about the package but
174aren't sure of it's name. By default search will try searching just package
175names and summaries, but if that "fails" it will then try descriptions and url.
176
177Yum search orders the results so that those packages matching more terms will
178appear first.
179
180You can force searching everything by specifying "all" as the first argument.
181.IP
182.IP "\fBinfo\fP"
183Is used to list a description and summary information about available
184packages; takes the same arguments as in the \fIList Options\fP
185section below\&.
186.IP
187.IP "\fBclean\fP"
188Is used to clean up various things which accumulate in the
189\fByum\fP cache directory over time. More complete details can be found in
190the \fIClean Options\fP section below\&.
191.IP
192.IP "\fBmakecache\fP"
193Is used to download and make usable all the metadata for the currently enabled
194\fByum\fP repos.
195.IP
196.IP "\fBgroups\fP"
197A command, new in 3.4.2, that collects all the subcommands that act on groups together.
198
199"\fBgroup install\fP" is used to install all of the individual packages in a group, of the specified
200types (this works as if you'd taken each of those package names and put them on
201the command line for a "yum install" command).
202 The group_package_types configuration option specifies which types will
203be installed.
204
205"\fBgroup update\fP" is just an alias for groupinstall, which will do the right thing because
206"yum install X" and "yum update X" do the same thing, when X is already
207installed.
208
209"\fBgroup list\fP" is used to list the available groups from all \fByum\fP repos. Groups are marked
210as "installed" if all mandatory packages are installed, or if a group doesn't
211have any mandatory packages then it is installed if any of the optional or
212default package are installed.
213The optional "hidden" argument will also list groups marked as not being
214"user visible". If you pass the \-v option, to enable verbose mode, then the
215groupids are displayed.
216
217"\fBgroup remove\fP" is used to remove all of the packages in a group, unlike "groupinstall" this
218will remove everything regardless of group_package_types. It is worth pointing
219out that packages can be in more than one group, so "group install X Y" followed
220by "group remove Y" does not do give you the same result as "group install X".
221
222The groupremove_leaf_only configuration changes the behaviour of this command
223to only remove packages which aren't required by something else.
224
225"\fBgroup info\fP" is used to give the description and package list of a group (and which type
226those packages are marked as). Note that you can use the yum-filter-data and
227yum-list-data plugins to get/use the data the other way around (Ie. what
228groups own packages need updating). If you pass the \-v option, to enable verbose
229mode, then the package names are matched against installed/available packages
230similar to the list command.
231.IP
232.IP "\fBshell\fP"
233Is used to enter the 'yum shell', when a filename is specified the contents of
234that file is executed in yum shell mode. See \fIyum-shell(8)\fP for more info
235.IP
236.IP "\fBresolvedep\fP"
237Is used to list packages providing the specified dependencies, at most one
238package is listed per dependency.
239.IP
240.IP "\fBlocalinstall\fP"
241Is used to install a set of local rpm files. If required the enabled
242repositories will be used to resolve dependencies. Note that the install command
243will do a local install, if given a filename. This option is maintained for legacy
244reasons only.
245.IP
246.IP "\fBlocalupdate\fP"
247Is used to update the system by specifying local rpm files. Only the specified
248rpm files of which an older version is already installed will be installed,
249the remaining specified packages will be ignored.
250If required the enabled repositories will be used to resolve dependencies. Note
251that the update command will do a local update, if given a filename. This option is maintained for
252legacy reasons only.
253.IP
254.IP "\fBreinstall\fP"
255Will reinstall the identically versioned package as is currently installed.
256This does not work for "installonly" packages, like Kernels. reinstall operates
257on groups, files, provides and filelists just like the "install" command\&.
258.IP
259.IP "\fBdowngrade\fP"
260Will try and downgrade a package from the version currently installed to the
261previously highest version (or the specified version).
262The depsolver will not necessarily work, but if you specify all the packages it
263should work (and thus. all the simple cases will work). Also this does not
264work for "installonly" packages, like Kernels. downgrade operates
265on groups, files, provides, filelists and rpm files just like the "install" command\&.
266.IP
267.IP "\fBdeplist\fP"
268Produces a list of all dependencies and what packages provide those
269dependencies for the given packages. As of 3.2.30 it now just shows the latest
270version of each package that matches (this can be changed by
271using --showduplicates) and it only shows the newest providers (which can be
272changed by using --verbose).
273.IP
274.IP "\fBrepolist\fP"
275Produces a list of configured repositories. The default is to list all
276enabled repositories. If you pass \-v, for verbose mode, more information is
277listed. If the first argument is 'enabled', 'disabled' or 'all' then the command
278will list those types of repos.
279
280You can pass repo id or name arguments, or wildcards which to match against
281both of those. However if the id or name matches exactly then the repo will
282be listed even if you are listing enabled repos. and it is disabled.
283
284In non-verbose mode the first column will start with a '*' if the repo. has
285metalink data and the latest metadata is not local. For non-verbose mode the
286last column will also display the number of packages in the repo. and (if there
287are any user specified excludes) the number of packages excluded.
288
289One last special feature of repolist, is that if you are in non-verbose mode
290then yum will ignore any repo errors and output the information it can get
291(Eg. "yum clean all; yum -C repolist" will output something, although the
292package counts/etc. will be zeroed out).
293.IP
294.IP "\fBversion\fP"
295Produces a "version" of the rpmdb, and of the enabled repositories if "all" is
296given as the first argument. You can also specify version groups in the
297version-groups config. file. If you pass \-v, for verbose mode, more
298information is listed. The version is calculated by taking a sha1 hash of the
299packages (in sorted order), and the checksum_type/checksum_data entries from
300the yumdb. Note that this rpmdb version is now also used significantly within
301yum (esp. in yum history).
302
303The version command will now show "groups" of packages as a separate version,
304and so takes sub-commands:
305
306"version grouplist" - List the defined version groups.
307
308"version groupinfo" - Get the complete list of packages within one or more version groups.
309
310"version installed" - This is the default, only show the version information for installed packages.
311
312"version available" - Only show the version information for available packages.
313
314"version all" - Show the version information for installed and available packages.
315
316"version nogroups | nogroups-*" - Just show the main version information.
317
318"version group-*" - Just show the grouped version information, if more arguments are given then only show the data for those groups.
319
320.IP
321.IP "\fBhistory\fP"
322The history command allows the user to view what has happened in past
323transactions (assuming the history_record config. option is set). You can use
324info/list/packages-list/summary to view what happened, undo/redo/rollback to act
325on that information and new to start a new history file.
326
327The info/list/summary commands take either a transaction id or a package (with
328wildcards, as in \fBSpecifying package names\fP), all three can also be passed
329no arguments. list can be passed the keyword "all" to list all the transactions.
330
331The packages-list command takes a package (with wildcards, as in
332\fBSpecifying package names\fP).
333
334The undo/redo/rollback commands take either a single transaction id or the
335keyword last and an offset from the last transaction (Eg. if you've done 250
336transactions, "last" refers to transaction 250, and "last-4" refers to
337transaction 246).
338
339The undo/redo commands act on the specified transaction, undo'ing or repeating
340the work of that transaction. While the rollback command will undo all
341transactions upto the point of the specified transaction. For example, if you
342have 3 transactions, where package A; B and C where installed respectively.
343Then "undo 1" will try to remove pacakge A, "redo 1" will try to install package
344A (if it is not still installed), and "rollback 1" will try to remove packages
345B and C. Note that after a "rollback 1" you will have a fourth transaction,
346although the ending rpmdb version (see: yum version) should be the same in
347transactions 1 and 4.
348
349The addon-info command takes a transaction ID, and the packages-list command
350takes a package (with wildcards).
351
352In "history list" you can change the behaviour of the 2nd column via. the
353configuration option history_list_view.
354
355In "history list" output the Altered column also gives some extra information
356if there was something not good with the transaction (this is also shown at the
357end of the package column in the packages-list command).
358
359.I \fB>\fR - The rpmdb was changed, outside yum, after the transaction.
360.br
361.I \fB<\fR - The rpmdb was changed, outside yum, before the transaction.
362.br
363.I \fB*\fR - The transaction aborted before completion.
364.br
365.I \fB#\fR - The transaction completed, but with a non-zero status.
366.br
367.I \fBE\fR - The transaction completed fine, but had warning/error output during the transaction.
368.br
369.I \fBP\fR - The transaction completed fine, but problems already existed in the rpmdb.
370.br
371.I \fBs\fR - The transaction completed fine, but --skip-broken was enabled and had to skip some packages.
372.br
373
374.IP
375.IP "\fBcheck\fP"
376Checks the local rpmdb and produces information on any problems it finds. You
377can pass the check command the arguments "dependencies" or "duplicates", to
378limit the checking that is performed (the default is "all" which does both).
379
380The info command can also take ranges of transaction ids, of the form
381start..end, which will then display a merged history as if all the
382transactions in the range had happened at once\&.
383.br
384Eg. "history info 1..4" will merge the first four transactions and display them
385as a single transaction.
386.IP
387.IP "\fBhelp\fP"
388Produces help, either for all commands or if given a command name then the help
389for that particular command\&.
390.IP
391.PP
392.SH "GENERAL OPTIONS"
393Most command line options can be set using the configuration file as
394well and the descriptions indicate the necessary configuration option
395to set\&.
396.PP
397.IP "\fB\-h, \-\-help\fP"
398Help; display a help message and then quit\&.
399.IP "\fB\-y, \-\-assumeyes\fP"
400Assume yes; assume that the answer to any question which would be asked
401is yes\&.
402.br
403Configuration Option: \fBassumeyes\fP
404.IP "\fB\-c, \-\-config=[config file]\fP"
405Specifies the config file location - can take HTTP and FTP URLs and local file
406paths\&.
407.br
408.IP "\fB\-q, \-\-quiet\fP"
409Run without output. Note that you likely also want to use \-y\&.
410.br
411.IP "\fB\-v, \-\-verbose\fP"
412Run with a lot of debugging output\&.
413.br
414.IP "\fB\-d, \-\-debuglevel=[number]\fP"
415Sets the debugging level to [number] \- turns up or down the amount of things that are printed\&. Practical range: 0 - 10
416.br
417Configuration Option: \fBdebuglevel\fP
418.IP "\fB\-e, \-\-errorlevel=[number]\fP"
419Sets the error level to [number] Practical range 0 \- 10. 0 means print only critical errors about which you must be told. 1 means print all errors, even ones that are not overly important. 1+ means print more errors (if any) \-e 0 is good for cron jobs.
420.br
421Configuration Option: \fBerrorlevel\fP
422.IP "\fB\-\-rpmverbosity=[name]\fP"
423Sets the debug level to [name] for rpm scriplets. 'info' is the default, other
424options are: 'critical', 'emergency', 'error', 'warn' and 'debug'.
425.br
426Configuration Option: \fBrpmverbosity\fP
427.IP "\fB\-R, \-\-randomwait=[time in minutes]\fP"
428Sets the maximum amount of time yum will wait before performing a command \- it randomizes over the time.
429.IP "\fB\-C, \-\-cacheonly\fP"
430Tells yum to run entirely from system cache - does not download or
431update any headers unless it has to to perform the requested action. If you're
432using this as a user yum will not use the tempcache for the user but will only
433use the system cache in the system cachedir.
434.IP "\fB\-\-version\fP"
435Reports the \fByum\fP version number and installed package versions for
436everything in history_record_packages (can be added to by plugins).
437.IP "\fB\-\-showduplicates\fP"
438Doesn't limit packages to their latest versions in the info, list and search
439commands (will also affect plugins which use the doPackageLists() API).
440.IP "\fB\-\-installroot=root\fP"
441Specifies an alternative installroot, relative to which all packages will be
442installed. Think of this like doing "chroot <root> yum" except using
443\-\-installroot allows yum to work before the chroot is created.
444Note: You may also want to use the option \-\-releasever=/ when creating the
445installroot as otherwise the $releasever value is taken from the rpmdb within
446the installroot (and thus. will be empty, before creation).
447.br
448Configuration Option: \fBinstallroot\fP
449.IP "\fB\-\-enablerepo=repoidglob\fP"
450Enables specific repositories by id or glob that have been disabled in the
451configuration file using the enabled=0 option.
452.br
453Configuration Option: \fBenabled\fP
454.IP "\fB\-\-disablerepo=repoidglob\fP"
455Disables specific repositories by id or glob.
456.br
457Configuration Option: \fBenabled\fP
458.IP "\fB\-\-obsoletes\fP"
459This option only has affect for an update, it enables \fByum\fP\'s obsoletes
460processing logic. For more information see the \fBupdate\fP command above.
461.br
462Configuration Option: \fBobsoletes\fP
463.IP "\fB\-x, \-\-exclude=package\fP"
464Exclude a specific package by name or glob from updates on all repositories.
465Configuration Option: \fBexclude\fP
466.br
467.IP "\fB\-\-color=[always|auto|never]\fP"
468Display colorized output automatically, depending on the output terminal,
469always (using ANSI codes) or never. Note that some commands (Eg. list and info)
470will do a little extra work when color is enabled.
471Configuration Option: \fBcolor\fP
472.br
473.IP "\fB\-\-disableexcludes=[all|main|repoid]\fP"
474Disable the excludes defined in your config files. Takes one of three options:
475.br
476all == disable all excludes
477.br
478main == disable excludes defined in [main] in yum.conf
479.br
480repoid == disable excludes defined for that repo
481.br
482.IP "\fB\-\-disableplugin=plugin\fP"
483Run with one or more plugins disabled, the argument is a comma separated list
484of wildcards to match against plugin names.
485.br
486.IP "\fB\-\-noplugins\fP"
487Run with all plugins disabled.
488.br
489Configuration Option: \fBplugins\fP
490.IP "\fB\-\-nogpgcheck\fP"
491Run with GPG signature checking disabled.
492.br
493Configuration Option: \fBgpgcheck\fP
494.IP "\fB\-\-skip\-broken\fP"
495Resolve depsolve problems by removing packages that are causing problems
496from the transaction.
497.br
498Configuration Option: \fBskip_broken\fP
499.br
500.IP "\fB\-\-releasever=version\fP"
501Pretend the current release version is the given string. This is very useful
502when combined with \-\-installroot. You can also use \-\-releasever=/ to take
503the releasever information from outside the installroot.
504Note that with the default upstream cachedir, of /var/cache/yum, using this
505option will corrupt your cache (and you can use $releasever in your cachedir
506configuration to stop this).
507.PP
508.IP "\fB\-t, \-\-tolerant\fP"
509This option currently does nothing.
510.br
511.IP "\fB\-\-setopt=option=value\fP"
512Set any config option in yum config or repo files. For options in the global
513config just use: \-\-setopt=option=value for repo options use: \-\-setopt=repoid.option=value
514.PP
515
516.SH "LIST OPTIONS"
517The following are the ways which you can invoke \fByum\fP in list
518mode\&. Note that all \fBlist\fP commands include information on the
519version of the package\&.
520.IP
521.IP "\fBOUTPUT\fP"
522
523
524The format of the output of yum list is:
525
526name.arch [epoch:]version-release repo or \@installed-from-repo
527
528.IP "\fByum list [all | glob_exp1] [glob_exp2] [\&.\&.\&.]\fP"
529List all available and installed packages\&.
530.IP "\fByum list available [glob_exp1] [\&.\&.\&.]\fP"
531List all packages in the yum repositories available to be installed\&.
532.IP
533.IP "\fByum list updates [glob_exp1] [\&.\&.\&.]\fP"
534List all packages with updates available in the yum repositories\&.
535.IP
536.IP "\fByum list installed [glob_exp1] [\&.\&.\&.]\fP"
537List the packages specified by \fIargs\fP\&. If an argument does not
538match the name of an available package, it is assumed to be a
539shell\-style glob and any matches are printed\&.
540.IP
541.IP "\fByum list extras [glob_exp1] [\&.\&.\&.]\fP"
542List the packages installed on the system that are not available in any yum
543repository listed in the config file.
544.IP
545.IP "\fByum list obsoletes [glob_exp1] [\&.\&.\&.]\fP"
546List the packages installed on the system that are obsoleted by packages
547in any yum repository listed in the config file.
548.IP
549.IP "\fByum list recent\fP"
550List packages recently added into the repositories. This is often not helpful,
551but what you may really want to use is "yum list-updateinfo new" from the
552security yum plugin.
553.IP
554
555.PP
556.SH "SPECIFYING PACKAGE NAMES"
557A package can be referred to for install, update, remove, list, info etc
558with any of the following as well as globs of any of the following:
559.IP
560.br
561\fBname\fP
562.br
563\fBname.arch\fP
564.br
565\fBname-ver\fP
566.br
567\fBname-ver-rel\fP
568.br
569\fBname-ver-rel.arch\fP
570.br
571\fBname-epoch:ver-rel.arch\fP
572.br
573\fBepoch:name-ver-rel.arch\fP
574.IP
575For example: \fByum remove kernel-2.4.1-10.i686\fP
576 this will remove this specific kernel-ver-rel.arch.
577.IP
578Or: \fByum list available 'foo*'\fP
579 will list all available packages that match 'foo*'. (The single quotes will keep your shell from expanding the globs.)
580.IP
581.PP
582.SH "CLEAN OPTIONS"
583The following are the ways which you can invoke \fByum\fP in clean
584mode. Note that "all files" in the commands below means
585"all files in currently enabled repositories".
586If you want to also clean any (temporarily) disabled repositories you need to
587use \fB\-\-enablerepo='*'\fP option.
588
589.IP "\fByum clean expire-cache\fP"
590Eliminate the local data saying when the metadata and mirrorlists were downloaded for each repo. This means yum will revalidate the cache for each repo. next time it is used. However if the cache is still valid, nothing significant was deleted.
591
592.IP "\fByum clean packages\fP"
593Eliminate any cached packages from the system. Note that packages are not automatically deleted after they are downloaded.
594
595.IP "\fByum clean headers\fP"
596Eliminate all of the header files, which old versions of yum used for
597dependency resolution.
598
599.IP "\fByum clean metadata\fP"
600Eliminate all of the files which yum uses to determine the remote
601availability of packages. Using this option will force yum to download all the
602metadata the next time it is run.
603
604.IP "\fByum clean dbcache\fP"
605Eliminate the sqlite cache used for faster access to metadata.
606Using this option will force yum to download the sqlite metadata the next time
607it is run, or recreate the sqlite metadata if using an older repo.
608
609.IP "\fByum clean rpmdb\fP"
610Eliminate any cached data from the local rpmdb.
611
612.IP "\fByum clean plugins\fP"
613Tell any enabled plugins to eliminate their cached data.
614
615.IP "\fByum clean all\fP"
616Does all of the above.
617
618.PP
619.SH "PLUGINS"
620Yum can be extended through the use of plugins. A plugin is a Python ".py" file
621which is installed in one of the directories specified by the \fBpluginpath\fP
622option in yum.conf. For a plugin to work, the following conditions must be met:
623.LP
6241. The plugin module file must be installed in the plugin path as just
625described.
626.LP
6272. The global \fBplugins\fP option in /etc/yum/yum.conf must be set to `1'.
628.LP
6293. A configuration file for the plugin must exist in
630/etc/yum/pluginconf.d/<plugin_name>.conf and the \fBenabled\fR setting in this
631file must set to `1'. The minimal content for such a configuration file is:
632.IP
633[main]
634.br
635enabled = 1
636.LP
637See the \fByum.conf(5)\fR man page for more information on plugin related
638configuration options.
639
640.PP
641.SH "FILES"
642.nf
643/etc/yum/yum.conf
644/etc/yum/version-groups.conf
645/etc/yum/repos.d/
646/etc/yum/pluginconf.d/
647/var/cache/yum/
648.fi
649
650.PP
651.SH "SEE ALSO"
652.nf
653.I pkcon (1)
654.I yum.conf (5)
655.I yum-updatesd (8)
656.I package-cleanup (1)
657.I repoquery (1)
658.I yum-complete-transaction (1)
659.I yumdownloader (1)
660.I yum-utils (1)
661.I yum-security (8)
662http://yum.baseurl.org/
663http://yum.baseurl.org/wiki/Faq
664yum search yum
665.fi
666
667.PP
668.SH "AUTHORS"
669.nf
670See the Authors file included with this program.
671.fi
672
673.PP
674.SH "BUGS"
675There of course aren't any bugs, but if you find any, you should first
676consult the FAQ mentioned above and then email the mailing list:
677yum@lists.baseurl.org or filed in bugzilla.
678.fi
Note: See TracBrowser for help on using the repository browser.