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