source: yum/trunk/docs/yum.conf.5@ 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: 31.5 KB
Line 
1.TH "yum.conf" "5" "" "Seth Vidal" "yum configuration file"
2.SH "NAME"
3.LP
4\fByum.conf\fR \- Configuration file for \fByum(8)\fR.
5.SH "DESCRIPTION"
6.LP
7Yum uses a configuration file at \fB/etc/yum/yum.conf\fR.
8.LP
9Additional configuration files are also read from the directories set by the
10\fBreposdir\fR option (default is `/etc/yum/repos.d').
11See the \fBreposdir\fR option below for further details.
12
13.SH "PARAMETERS"
14.LP
15There are two types of sections in the yum configuration file(s): main and
16repository. Main defines all global configuration options. There should be only
17one main section. The repository section(s) define the configuration for each
18repository/server. There should be one or more repository sections.
19
20.SH "[main] OPTIONS"
21.LP
22The [main] section must exist for yum to do anything. It consists of the
23following options:
24
25.IP
26\fBcachedir\fR
27Directory where yum should store its cache and db files. The default is
28`/var/cache/yum'.
29
30.IP
31\fBpersistdir\fR
32Directory where yum should store information that should persist over multiple
33runs. The default is `/var/lib/yum'.
34
35.IP
36\fBkeepcache\fR
37Either `1' or `0'. Determines whether or not yum keeps the cache
38of headers and packages after successful installation. Default is '1'
39(keep files)
40.br
41
42.IP
43\fBreposdir\fR
44A list of directories where yum should look for .repo files which define
45repositories to use. Default is `/etc/yum/repos.d'. Each
46file in this directory should contain one or more repository sections as
47documented in \fB[repository] options\fR below. These will be merged with the
48repositories defined in /etc/yum/yum.conf to form the complete set of
49repositories that yum will use.
50
51.IP
52\fBdebuglevel\fR
53Debug message output level. Practical range is 0\-10. Default is `2'.
54
55.IP
56\fBerrorlevel\fR
57Error message output level. Practical range is 0\-10. Default is `2'.
58
59.IP
60\fBrpmverbosity\fR
61Debug scriptlet output level. 'info' is the default, other
62options are: 'critical', 'emergency', 'error', 'warn' and 'debug'.
63
64.IP
65\fBprotected_packages\fR
66This is a list of packages that yum should never completely remove. They are
67protected via. Obsoletes as well as user/plugin removals.
68
69The default is: yum glob:/etc/yum/protected.d/*.conf
70So any packages which should be protected can do so by including a file in
71/etc/yum/protected.d with their package name in it.
72
73Also if this configuration is set to anything, then yum will protect the
74package corresponding to the running version of the kernel.
75
76.IP
77\fBprotected_multilib\fR
78Either `1' or `0'. This tells yum whether or not it should perform a check to
79make sure that multilib packages are the same version. For example, if this
80option is off (rpm behaviour) pkgA-1.x86_64 and pkgA-2.i386 can be installed
81at the same time. However this is very rarely desired.
82Install only packages, like the kernel, are exempt from this check.
83The default is `1'.
84
85.IP
86\fBlogfile\fR
87Full directory and file name for where yum should write its log file.
88
89.IP
90\fBgpgcheck\fR
91Either `1' or `0'. This tells yum whether or not it should perform a GPG
92signature check on packages. When this is set in the [main] section it sets the
93default for all repositories.
94The default is `0'.
95
96\fBlocalpkg_gpgcheck\fR
97Either `1' or `0'. This tells yum whether or not it should perform a GPG
98signature check on local packages (packages in a file, not in a repositoy).
99The default is `0'.
100
101.IP
102\fBrepo_gpgcheck\fR
103Either `1' or `0'. This tells yum whether or not it should perform a GPG
104signature check on the repodata. When this is set in the [main] section it sets the
105default for all repositories. The default is `0'.
106
107.IP
108\fBskip_broken\fR
109Either `1' or `0'. Resolve depsolve problems by removing packages that
110are causing problems from the transaction.
111
112.IP
113\fBassumeyes\fR
114Either `1' or `0'. Determines whether or not yum prompts for confirmation of
115critical actions. Default is `0' (do prompt).
116.br
117Command-line option: \fB\-y\fP
118
119.IP
120\fBalwaysprompt\fR
121Either `1' or `0'. Without this option, yum will not prompt for confirmation
122when the list of packages to be installed exactly matches those given on the
123command line. Unless \fBassumeyes\fR is enabled, it will still prompt for
124package removal, or when additional packages need to be installed to fulfill
125dependencies. Default is `1'.
126.br
127
128.IP
129\fBtolerant\fR
130Either `1' or `0'. If enabled, then yum will be tolerant of errors on the
131command line with regard to packages. For example: if you request to install
132foo, bar and baz and baz is installed; yum won't error out complaining that baz
133is already installed. Default to `0' (not tolerant).
134.br
135Command-line option: \fB\-t\fP
136
137.IP
138\fBexclude\fR
139List of packages to exclude from updates or installs. This should be a space
140separated list.
141Shell globs using wildcards (eg. * and ?) are allowed.
142
143.IP
144\fBexactarch\fR
145Either `1' or `0'. Set to `1' to make yum update only update the architectures
146of packages that you have installed. ie: with this enabled yum will not install
147an i686 package to update an i386 package. Default is `1'.
148
149.IP
150\fBinstallonlypkgs \fR
151List of package provides that should only ever be installed, never updated.
152Kernels in particular fall into this category. Defaults to kernel,
153kernel-bigmem, kernel-enterprise, kernel-smp, kernel-modules, kernel-debug,
154kernel-unsupported, kernel-source, kernel-devel, kernel-PAE, kernel-PAE-debug.
155
156Note that because these are provides, and not just package names, kernel-devel
157will also apply to kernel-debug-devel, etc.
158
159.IP
160\fBinstallonly_limit \fR
161Number of packages listed in installonlypkgs to keep installed at the same
162time. Setting to 0 disables this feature. Default is '0'. Note that this
163functionality used to be in the "installonlyn" plugin, where this option was
164altered via. tokeep.
165Note that as of version 3.2.24, yum will now look in the yumdb for a installonly
166attribute on installed packages. If that attribute is "keep", then they will
167never be removed.
168
169.IP
170\fBkernelpkgnames \fR
171List of package names that are kernels. This is really only here for the
172updating of kernel packages and should be removed out in the yum 2.1 series.
173
174.IP
175\fBshowdupesfromrepos\fR
176Either `0' or `1'. Set to `1' if you wish to show any duplicate packages from
177any repository, from package listings like the info or list commands. Set
178to `0' if you want only to see the newest packages from any repository.
179Default is `0'.
180
181.IP
182\fBobsoletes \fR
183This option only has affect during an \fBupdate\fR. It enables yum's
184obsoletes processing logic. Useful when doing distribution level upgrades. See
185also the yum \fBupgrade\fR command documentation for more details (yum(8)).
186Default is `true'.
187.br
188Command-line option: \fB\-\-obsoletes\fP
189
190.IP
191\fBoverwrite_groups \fR
192Either `0' or `1'. Used to determine yum's behaviour if two or more
193repositories offer the package groups with the same name. If
194\fBoverwrite_groups\fR is `1' then the group packages of the last matching
195repository will be used. If \fBoverwrite_groups\fR is `0' then the groups
196from all matching repositories will be merged together as one large group.
197
198.IP
199\fBgroupremove_leaf_only \fR
200Either `0' or `1'. Used to determine yum's behaviour when the groupremove
201command is run. If \fBgroupremove_leaf_only\fR is `0' (default) then
202all packages in the group will be removed. If \fBgroupremove_leaf_only\fR is
203`1' then only those packages in the group that aren't required by another
204package will be removed.
205
206.IP
207\fBenable_group_conditionals\fR
208Either `0' or `1'. Determines whether yum will allow the use of conditionals
209packages. Default is `1' (package conditionals are allowed).
210
211.IP
212\fBgroup_package_types\fR
213List of the following: optional, default, mandatory. Tells yum which type
214of packages in groups will be installed when 'groupinstall' is called.
215Default is: default, mandatory
216
217.IP
218\fBinstallroot \fR
219Specifies an alternative installroot, relative to which all packages will be
220installed.
221.br
222Command-line option: \fB\-\-installroot\fP
223
224.IP
225\fBdistroverpkg\fR
226The package used by yum to determine the "version" of the distribution. This
227can be any installed package. Default is `redhat-release'. You can see what
228provides this manually by using: "yum whatprovides redhat-release".
229
230.IP
231\fBdiskspacecheck\fR
232Either `0' or `1'. Set this to `0' to disable the checking for sufficient
233diskspace before a RPM transaction is run. Default is `1' (perform the check).
234
235.IP
236\fBtsflags\fR
237Comma or space separated list of transaction flags to pass to the rpm
238transaction set. These include 'noscripts', 'notriggers', 'nodocs', 'test', 'justdb' and 'nocontexts'. 'repackage' is also available but that does nothing
239with newer rpm versions.
240You can set all/any of them. However, if you don't know what these do in the
241context of an rpm transaction set you're best leaving it alone. Default is
242an empty list.
243
244.IP
245\fBrecent\fR
246Number of days back to look for `recent' packages added to a repository.
247Used by the \fBlist recent\fR command. Default is `7'.
248
249.IP
250\fBretries\fR
251Set the number of times any attempt to retrieve a file should retry before
252returning an error. Setting this to `0' makes yum try forever. Default is `10'.
253
254.IP
255\fBkeepalive \fR
256Either `0' or `1'. Set whether HTTP keepalive should be used for HTTP/1.1
257servers that support it. This can improve transfer speeds by using one
258connection when downloading multiple files from a repository. Default is `1'.
259
260.IP
261\fBtimeout \fR
262Number of seconds to wait for a connection before timing out. Defaults to
26330 seconds. This may be too short of a time for extremely overloaded
264sites.
265
266.IP
267\fBhttp_caching\fR
268Determines how upstream HTTP caches are instructed to handle any HTTP downloads
269that Yum does. This option can take the following values:
270
271`all' means that all HTTP downloads should be cached.
272
273`packages' means that only RPM package downloads should be cached (but not
274repository metadata downloads).
275
276`none' means that no HTTP downloads should be cached.
277
278The default is `all'. This is recommended unless you are experiencing caching
279related issues. Try to at least use `packages' to minimize load on repository
280servers.
281
282.IP
283\fBthrottle \fR
284Enable bandwidth throttling for downloads. This option can be expressed as a
285absolute data rate in bytes/sec. An SI prefix (k, M or G) may be appended to the
286bandwidth value (eg. `5.5k' is 5.5 kilobytes/sec, `2M' is 2 Megabytes/sec).
287
288Alternatively, this option can specify the percentage of total bandwidth to use
289(eg. `60%'). In this case the \fBbandwidth\fR option should be used to specify
290the maximum available bandwidth.
291
292Set to `0' to disable bandwidth throttling. This is the default.
293
294.IP
295\fBbandwidth \fR
296Use to specify the maximum available network bandwidth in bytes/second. Used
297with the \fBthrottle\fR option (above). If \fBthrottle\fR is a percentage and
298\fBbandwidth\fR is `0' then bandwidth throttling will be disabled. If
299\fBthrottle\fR is expressed as a data rate (bytes/sec) then this option is
300ignored. Default is `0' (no bandwidth throttling).
301
302.IP
303\fBsslcacert \fR
304Path to the directory containing the databases of the certificate authorities
305yum should use to verify SSL certificates. Defaults to none - uses system
306default
307
308.IP
309\fBsslverify \fR
310Boolean - should yum verify SSL certificates/hosts at all. Defaults to True.
311
312Note that the plugin yum-rhn-plugin will force this value to true, and may
313alter other ssl settings (like hostname checking), even if it the machine
314is not registered.
315
316.IP
317\fBsslclientcert \fR
318Path to the SSL client certificate yum should use to connect to repos/remote sites
319Defaults to none.
320
321Note that if you are using curl compiled against NSS (default in Fedora/RHEL),
322curl treats sslclientcert values with the same basename as _identical_. This
323version of yum will check that this isn't true and output an error when the
324repositories "foo" and "bar" violate this, like so:
325
326sslclientcert basename shared between foo and bar
327
328.IP
329\fBsslclientkey \fR
330Path to the SSL client key yum should use to connect to repos/remote sites
331Defaults to none.
332
333.IP
334\fBhistory_record \fR
335Boolean - should yum record history entries for transactions. This takes some
336disk space, and some extra time in the transactions. But it allows how to know a
337lot of information about what has happened before, and display it to the user
338with the history info/list/summary commands. yum also provides the
339history undo/redo commands. Defaults to True.
340
341Note that if history is recorded, yum uses that information to see if any
342modifications to the rpmdb have been done outside of yum. These are always bad,
343from yum's point of view, and so yum will issue a warning and automatically
344run some of "yum check" to try and find some of the worst problems altering
345the rpmdb might have caused.
346.IP
347This means that turning this option off will stop yum from being able to
348detect when the rpmdb has changed and thus. it will never warn you or
349automatically run "yum check". The problems will likely still be there, and
350yumdb etc. will still be wrong but yum will not warn you about it.
351
352.IP
353\fBhistory_record_packages \fR
354This is a list of package names that should be recorded as having helped the
355transaction. yum plugins have an API to add themselves to this, so it should not
356normally be necessary to add packages here. Not that this is also used for the
357packages to look for in \-\-version. Defaults to rpm, yum, yum-metadata-parser.
358
359.IP
360\fBhistory_list_view \fR
361Which column of information to display in the "yum history list" command. There
362are currently three options: users, cmds (or commands), auto.
363
364Older versions of yum acted like "users", which always outputs the user who
365initiated the yum transaction. You can now specify "commands" which will instead
366always output the command line of the transaction. You can also specify
367"single-user-commands" which will display the users if there are more than one,
368otherwise it will display the command line.
369
370You can also specify "default" which currently selects "single-user-commands".
371
372.IP
373\fBcommands\fR
374List of functional commands to run if no functional commands are specified
375on the command line (eg. "update foo bar baz quux"). None of the short options
376(eg. \-y, \-e, \-d) are accepted for this option.
377
378.IP
379\fBsyslog_ident \fR
380Identification (program name) for syslog messages.
381
382.IP
383\fBsyslog_facility \fR
384Facility name for syslog messages, see syslog(3). Default is `LOG_USER'.
385
386.IP
387\fBsyslog_device \fR
388Where to log syslog messages. Can be a local device (path) or a host:port
389string to use a remote syslog. If empty or points to a nonexistent device,
390syslog logging is disabled. Default is `/dev/log'.
391
392.IP
393\fBproxy \fR
394URL to the proxy server that yum should use.
395
396.IP
397\fBproxy_username \fR
398username to use for proxy
399
400.IP
401\fBproxy_password \fR
402password for this proxy
403
404.IP
405\fBusername \fR
406username to use for basic authentication to a repo or really any url.
407
408.IP
409\fBpassword \fR
410password to use with the username for basic authentication.
411
412.IP
413\fBplugins \fR
414Either `0' or `1'. Global switch to enable or disable yum plugins. Default is
415`0' (plugins disabled). See the \fBPLUGINS\fR section of the \fByum(8)\fR man
416for more information on installing yum plugins.
417
418.IP
419\fBpluginpath \fR
420A list of directories where yum should look for plugin modules. Default is
421`/usr/share/yum-plugins' and `/usr/lib/yum-plugins'.
422
423.IP
424\fBpluginconfpath \fR
425A list of directories where yum should look for plugin configuration files.
426Default is `/etc/yum/pluginconf.d'.
427
428.IP
429\fBmetadata_expire \fR
430Time (in seconds) after which the metadata will expire. So that if the
431current metadata downloaded is less than this many seconds old then yum will
432not update the metadata against the repository. If you find that
433yum is not downloading information on updates as often as you would like
434lower the value of this option. You can also change from the default of using
435seconds to using days, hours or minutes by appending a d, h or m respectively.
436The default is 6 hours, to compliment yum-updatesd running once an hour.
437It's also possible to use the word "never", meaning that the metadata will
438never expire. Note that when using a metalink file the metalink must always
439be newer than the metadata for the repository, due to the validation, so this
440timeout also applies to the metalink file.
441
442.IP
443\fBmirrorlist_expire \fR
444Time (in seconds) after which the mirrorlist locally cached will expire.
445If the current mirrorlist is less than this many seconds old then yum
446will not download another copy of the mirrorlist, it has the same extra format
447as metadata_expire.
448If you find that yum is not downloading the mirrorlists as
449often as you would like lower the value of this option.
450
451.IP
452\fBmdpolicy \fR
453You can select from different metadata download policies depending on how much
454data you want to download with the main repository metadata index. The
455advantages of downloading more metadata with the index is that you can't get
456into situations where you need to use that metadata later and the versions
457available aren't compatible (or the user lacks privileges) and that if the
458metadata is corrupt in any way yum will revert to the previous metadata.
459
460`instant' - Just download the new metadata index, this is roughly what yum
461always did, however it now does some checking on the index and reverts if
462it classifies it as bad.
463
464`group:primary' - Download the primary metadata with the index. This contains
465most of the package information and so is almost always required anyway. This
466is the default.
467
468`group:small' - With the primary also download the updateinfo metadata, this is
469required for yum-security operations and it also used in the graphical clients.
470This file also tends to be significantly smaller than most others.
471
472`group:main' - With the primary and updateinfo download the filelists metadata
473and the group metadata. The filelists data is required for operations like
474"yum install /bin/bash", and also some dependency resolutions require it. The
475group data is used in some graphical clients and for group operations like
476"yum grouplist Base".
477
478`group:all' - Download all metadata listed in the index, currently the only one
479not listed above is the other metadata, which contains the changelog information
480which is used by yum-changelog. This is what "yum makecache" uses.
481
482.IP
483\fBmultilib_policy \fR
484Can be set to 'all' or 'best'. All means install all possible arches for any package you
485want to install. Therefore yum install foo will install foo.i386 and foo.x86_64 on x86_64,
486if it is available. Best means install the best arch for this platform, only.
487
488.IP
489\fBbugtracker_url \fR
490URL where bugs should be filed for yum. Configurable for local versions or distro-specific
491bugtrackers.
492
493.IP
494\fBcolor \fR
495Whether to display colorized output automatically, depending on the output
496terminal, can be changed to always (using ANSI codes) or never.
497Default is `auto'.
498Possible values are: auto, never, always.
499Command-line option: \fB\-\-color\fP
500
501.IP
502\fBcolor_list_installed_older \fR
503The colorization/highlighting for packages in list/info installed which are
504older than the latest available package with the same name and arch.
505Default is `bold'.
506Possible values are a comma separated list containing: bold, blink, dim,
507reverse, underline, fg:black, fg:red, fg:green, fg:yellow, fg:blue, fg:magenta,
508fg:cyan, fg:white, bg:black, bg:red, bg:green, bg:yellow, bg:blue, bg:magenta,
509bg:cyan, bg:white.
510
511.IP
512\fBcolor_list_installed_newer \fR
513The colorization/highlighting for packages in list/info installed which are
514newer than the latest available package with the same name and arch.
515Default is `bold,yellow'.
516See color_list_installed_older for possible values.
517
518.IP
519\fBcolor_list_installed_reinstall \fR
520The colorization/highlighting for packages in list/info installed which is
521the same version as the latest available package with the same name and arch.
522Default is `normal'.
523See color_list_installed_older for possible values.
524
525.IP
526\fBcolor_list_installed_extra \fR
527The colorization/highlighting for packages in list/info installed which has
528no available package with the same name and arch.
529Default is `bold,red'.
530See color_list_installed_older for possible values.
531
532.IP
533\fBcolor_list_available_upgrade \fR
534The colorization/highlighting for packages in list/info available which is
535an upgrade for the latest installed package with the same name and arch.
536Default is `bold,blue'.
537See color_list_installed_older for possible values.
538
539.IP
540\fBcolor_list_available_downgrade \fR
541The colorization/highlighting for packages in list/info available which is
542a downgrade for the latest installed package with the same name and arch.
543Default is `dim,cyan'.
544See color_list_installed_older for possible values.
545
546.IP
547\fBcolor_list_available_install \fR
548The colorization/highlighting for packages in list/info available which has
549no installed package with the same name and arch.
550Default is `normal'.
551See color_list_installed_older for possible values.
552
553.IP
554\fBcolor_list_available_reinstall \fR
555The colorization/highlighting for packages in list/info available which is
556the same version as the installed package with the same name and arch.
557Default is `bold,underline,green.
558See color_list_installed_older for possible values.
559
560.IP
561\fBcolor_search_match \fR
562The colorization/highlighting for text matches in search.
563Default is `bold'.
564See color_list_installed_older for possible values.
565
566.IP
567\fBcolor_update_installed \fR
568The colorization/highlighting for packages in the "updates list" which are
569installed. The updates list is what is printed when you run "yum update",
570"yum list updates", "yum list obsoletes" and "yum check-update".
571Default is `normal'.
572See color_list_installed_older for possible values.
573
574.IP
575\fBcolor_update_local \fR
576The colorization/highlighting for packages in the "updates list" which are
577already downloaded. The updates list is what is printed when you run
578"yum update", "yum list updates", "yum list obsoletes" and "yum check-update".
579Default is `bold'.
580See color_list_installed_older for possible values.
581
582.IP
583\fBcolor_update_remote \fR
584The colorization/highlighting for packages in the "updates list" which need to
585be downloaded. The updates list is what is printed when you run "yum update",
586"yum list updates", "yum list obsoletes" and "yum check-update".
587Default is `normal'.
588See color_list_installed_older for possible values.
589
590
591.IP
592\fBclean_requirements_on_remove \fR
593When removing packages (by removal, update or obsoletion) go through each
594package's dependencies. If any of them are no longer required by any other
595package then also mark them to be removed.
596Boolean (1, 0, True, False, yes,no) Defaults to False
597
598
599
600.SH "[repository] OPTIONS"
601.LP
602The repository section(s) take the following form:
603.IP
604\fBExample\fP:
605[repositoryid]
606.br
607name=Some name for this repository
608.br
609baseurl=url://path/to/repository/
610.br
611
612.IP
613\fBrepositoryid\fR
614Must be a unique name for each repository, one word.
615
616.IP
617\fBname\fR
618A human readable string describing the repository.
619
620.IP
621\fBbaseurl\fR
622Must be a URL to the directory where the yum repository's `repodata' directory
623lives. Can be an http://, ftp:// or file:// URL. You can specify multiple URLs
624in one baseurl statement. The best way to do this is like this:
625.br
626[repositoryid]
627.br
628name=Some name for this repository
629.br
630baseurl=url://server1/path/to/repository/
631.br
632 url://server2/path/to/repository/
633.br
634 url://server3/path/to/repository/
635.br
636
637If you list more than one baseurl= statement in a repository you will find
638yum will ignore the earlier ones and probably act bizarrely. Don't do this,
639you've been warned.
640
641You can use HTTP basic auth by prepending "user:password@" to the server
642name in the baseurl line. For example: "baseurl=http://user:passwd@example.com/".
643
644.IP
645\fBmetalink\fR
646Specifies a URL to a metalink file for the repomd.xml, a list of mirrors for
647the entire repository are generated by converting the mirrors for the
648repomd.xml file to a baseurl. The metalink file also contains the latest
649timestamp from the data in the repomd.xml, the length of the repomd.xml and
650checksum data. This data is checked against any downloaded repomd.xml file
651and all of the information from the metalink file must match. This can be used
652instead of or with the \fBbaseurl\fR option. Substitution variables, described
653below, can be used with this option. This option disables the mirrorlist option.
654As a special hack is the mirrorlist URL contains the word "metalink" then the
655value of mirrorlist is copied to metalink (if metalink is not set).
656
657.IP
658\fBmirrorlist\fR
659Specifies a URL to a file containing a list of baseurls. This can be used
660instead of or with the \fBbaseurl\fR option. Substitution variables, described
661below, can be used with this option.
662As a special hack is the mirrorlist URL contains the word "metalink" then the
663value of mirrorlist is copied to metalink (if metalink is not set).
664
665
666.IP
667\fBenabled\fR
668Either `1' or `0'. This tells yum whether or not use this repository.
669
670.IP
671\fBgpgcheck\fR
672Either `1' or `0'. This tells yum whether or not it should perform a GPG
673signature check on the packages gotten from this repository.
674
675.IP
676\fBrepo_gpgcheck\fR
677Either `1' or `0'. This tells yum whether or not it should perform a GPG
678signature check on the repodata from this repository.
679
680.IP
681\fBgpgkey\fR
682A URL pointing to the ASCII-armored GPG key file for the repository. This
683option is used if yum needs a public key to verify a package and the required
684key hasn't been imported into the RPM database. If this option is set, yum will
685automatically import the key from the specified URL. You will be prompted before
686the key is installed unless the \fBassumeyes\fR option is set.
687
688Multiple URLs may be specified here in the same manner as the \fBbaseurl\fR
689option (above). If a GPG key is required to install a package from a
690repository, all keys specified for that repository will be installed.
691
692.IP
693\fBgpgcakey\fR
694A URL pointing to the ASCII-armored CA key file for the repository. This is a normal
695gpg public key - but this key will be used to validate detached signatures of all
696other keys. The idea is you are asked to confirm import for this key. After that any other
697gpg key needed for package or repository verification, if it has a detached signature which matches this
698key will be automatically imported without user confirmation.
699
700.IP
701\fBexclude\fR
702Same as the [main] \fBexclude\fR option but only for this repository.
703Substitution variables, described below, are honored here.
704
705.IP
706\fBincludepkgs\fR
707Inverse of exclude. This is a list of packages you want to use from a
708repository. If this option lists only one package then that is all yum will
709ever see from the repository. Defaults to an empty list. Substitution
710variables, described below, are honored here.
711
712.IP
713\fBenablegroups\fR
714Either `0' or `1'. Determines whether yum will allow the use of package groups
715for this repository. Default is `1' (package groups are allowed).
716
717.IP
718\fBfailovermethod\fR
719Either `roundrobin' or `priority'.
720
721`roundrobin' randomly selects a URL out of
722the list of URLs to start with and proceeds through each of them as it
723encounters a failure contacting the host.
724
725`priority' starts from the first baseurl listed and reads through them
726sequentially.
727
728\fBfailovermethod\fR defaults to `roundrobin' if not specified.
729
730.IP
731\fBkeepalive\fR
732Either `1' or `0'. This tells yum whether or not HTTP/1.1 keepalive should be
733used with this repository. See the global option in the [main] section above
734for more information.
735
736.IP
737\fBtimeout\fR
738Overrides the \fBtimeout\fR option from the [main] section for this repository.
739
740.IP
741\fBhttp_caching\fR
742Overrides the \fBhttp_caching\fR option from the [main] section for this repository.
743
744.IP
745\fBretries\fR
746Overrides the \fBretries\fR option from the [main] section for this repository.
747
748.IP
749\fBthrottle\fR
750Overrides the \fBthrottle\fR option from the [main] section for this
751repository.
752
753.IP
754\fBbandwidth\fR
755Overrides the \fBbandwidth\fR option from the [main] section for this
756repository.
757
758
759.IP
760\fBsslcacert \fR
761Overrides the \fBsslcacert\fR option from the [main] section for this
762repository.
763
764.IP
765\fBsslverify \fR
766Overrides the \fBsslverify\fR option from the [main] section for this
767repository.
768
769.IP
770\fBsslclientcert \fR
771Overrides the \fBsslclientcert\fR option from the [main] section for this
772repository.
773
774.IP
775\fBsslclientkey \fR
776Overrides the \fBsslclientkey\fR option from the [main] section for this
777repository.
778
779
780.IP
781\fBmetadata_expire \fR
782Overrides the \fBmetadata_expire\fR option from the [main] section for this
783repository.
784
785.IP
786\fBmirrorlist_expire \fR
787Overrides the \fBmirrorlist_expire\fR option from the [main] section for this
788repository.
789
790.IP
791\fBproxy \fR
792URL to the proxy server for this repository. Set to '_none_' to disable the
793global proxy setting for this repository. If this is unset it
794inherits it from the global setting
795
796.IP
797\fBproxy_username \fR
798username to use for proxy.
799If this is unset it inherits it from the global setting
800
801.IP
802\fBproxy_password \fR
803password for this proxy.
804If this is unset it inherits it from the global setting
805
806
807.IP
808\fBusername \fR
809username to use for basic authentication to a repo or really any url.
810If this is unset it inherits it from the global setting
811
812.IP
813\fBpassword \fR
814password to use with the username for basic authentication.
815If this is unset it inherits it from the global setting
816
817.IP
818\fBcost \fR
819relative cost of accessing this repository. Useful for weighing one repo's packages
820as greater/less than any other. defaults to 1000
821
822.IP
823\fBskip_if_unavailable \fR
824If set to True yum will continue running if this repository cannot be
825contacted for any reason. This should be set carefully as all repos are consulted
826for any given command. Defaults to False.
827.IP
828
829.SH "URL INCLUDE SYNTAX"
830.LP
831The inclusion of external configuration files is supported for /etc/yum/yum.conf
832and the .repo files in the /etc/yum/repos.d directory. To include a URL, use a
833line of the following format:
834
835include=url://to/some/location
836
837The configuration file will be inserted at the position of the "include=" line.
838Included files may contain further include lines. Yum will abort with an error
839if an inclusion loop is detected.
840
841.SH "GLOB: FOR LIST OPTIONS"
842.LP
843Any of the configurations options which are a list of items can be specfied
844using the glob syntax: \fBglob:/etc/path/somewhere.d/*.conf\fR. This
845will read in all files matching that glob and include all lines in each file
846(excluding comments and blank lines) as items in the list.
847.LP
848
849.SH "VARIABLES"
850.LP
851There are a number of variables you can use to ease maintenance of yum's
852configuration files. They are available in the values of several options
853including \fBname\fR, \fBbaseurl\fR and \fBcommands\fB.
854.LP
855
856.IP
857\fB$releasever\fR
858This will be replaced with the value of the version of the package listed
859in \fBdistroverpkg\fR. This defaults to the version of `redhat-release'
860package.
861
862.IP
863\fB$arch\fR
864This will be replaced with your architecture as listed by os.uname()[4] in
865Python.
866
867.IP
868\fB$basearch\fR
869This will be replaced with your base architecture in yum. For example, if
870your $arch is i686 your $basearch will be i386.
871
872.IP
873\fB$uuid\fR
874This will be replaced with a unique but persistent uuid for this machine.
875The value that is first generated will be stored in /var/lib/yum/uuid and
876reused until this file is deleted.
877
878.IP
879\fB$YUM0-$YUM9\fR
880These will be replaced with the value of the shell environment variable of
881the same name. If the shell environment variable does not exist then the
882configuration file variable will not be replaced.
883
884.LP
885As of 3.2.28, any file in /etc/yum/vars is turned into a variable named after
886the filename (or overrides any of the above variables).
887
888Note that no warnings/errors are given if the files are unreadable, so creating
889files that only root can read may be confusing for users.
890
891Also note that only the first line will be read and all new line
892characters are removed, as a convenience. However, no other checking is
893performed on the data. This means it is possible to have bad character
894data in any value.
895
896.SH "FILES"
897.nf
898/etc/yum/yum.conf
899/etc/yum/repos.d/
900/etc/yum/pluginconf.d/
901/etc/yum/protected.d
902/etc/yum/vars
903
904.SH "SEE ALSO"
905.LP
906yum(8)
907
Note: See TracBrowser for help on using the repository browser.