| 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 | \fBlogfile\fR
|
|---|
| 66 | Full directory and file name for where yum should write its log file.
|
|---|
| 67 |
|
|---|
| 68 | .IP
|
|---|
| 69 | \fBgpgcheck\fR
|
|---|
| 70 | Either `1' or `0'. This tells yum whether or not it should perform a GPG
|
|---|
| 71 | signature check on packages. When this is set in the [main] section it sets the
|
|---|
| 72 | default for all repositories. This option also determines whether or not an
|
|---|
| 73 | install of a package from a local RPM file will be GPG signature checked. The
|
|---|
| 74 | default is `0'.
|
|---|
| 75 |
|
|---|
| 76 | .IP
|
|---|
| 77 | \fBrepo_gpgcheck\fR
|
|---|
| 78 | Either `1' or `0'. This tells yum whether or not it should perform a GPG
|
|---|
| 79 | signature check on the repodata. When this is set in the [main] section it sets the
|
|---|
| 80 | default for all repositories. The default is `0'.
|
|---|
| 81 |
|
|---|
| 82 | .IP
|
|---|
| 83 | \fBskip_broken\fR
|
|---|
| 84 | Either `1' or `0'. Resolve depsolve problems by removing packages that
|
|---|
| 85 | are causing problems from the transaction.
|
|---|
| 86 |
|
|---|
| 87 | .IP
|
|---|
| 88 | \fBassumeyes\fR
|
|---|
| 89 | Either `1' or `0'. Determines whether or not yum prompts for confirmation of
|
|---|
| 90 | critical actions. Default is `0' (do prompt).
|
|---|
| 91 | .br
|
|---|
| 92 | Command-line option: \fB\-y\fP
|
|---|
| 93 |
|
|---|
| 94 | .IP
|
|---|
| 95 | \fBalwaysprompt\fR
|
|---|
| 96 | Either `1' or `0'. Without this option, yum will not prompt for confirmation
|
|---|
| 97 | when the list of packages to be installed exactly matches those given on the
|
|---|
| 98 | command line. Unless \fBassumeyes\fR is enabled, it will still prompt for
|
|---|
| 99 | package removal, or when additional packages need to be installed to fulfill
|
|---|
| 100 | dependencies. Default is `1'.
|
|---|
| 101 | .br
|
|---|
| 102 |
|
|---|
| 103 | .IP
|
|---|
| 104 | \fBtolerant\fR
|
|---|
| 105 | Either `1' or `0'. If enabled, then yum will be tolerant of errors on the
|
|---|
| 106 | command line with regard to packages. For example: if you request to install
|
|---|
| 107 | foo, bar and baz and baz is installed; yum won't error out complaining that baz
|
|---|
| 108 | is already installed. Default to `0' (not tolerant).
|
|---|
| 109 | .br
|
|---|
| 110 | Command-line option: \fB\-t\fP
|
|---|
| 111 |
|
|---|
| 112 | .IP
|
|---|
| 113 | \fBexclude\fR
|
|---|
| 114 | List of packages to exclude from updates or installs. This should be a space
|
|---|
| 115 | separated list.
|
|---|
| 116 | Shell globs using wildcards (eg. * and ?) are allowed.
|
|---|
| 117 |
|
|---|
| 118 | .IP
|
|---|
| 119 | \fBexactarch\fR
|
|---|
| 120 | Either `1' or `0'. Set to `1' to make yum update only update the architectures
|
|---|
| 121 | of packages that you have installed. ie: with this enabled yum will not install
|
|---|
| 122 | an i686 package to update an i386 package. Default is `1'.
|
|---|
| 123 |
|
|---|
| 124 | .IP
|
|---|
| 125 | \fBinstallonlypkgs \fR
|
|---|
| 126 | List of packages that should only ever be installed, never updated. Kernels
|
|---|
| 127 | in particular fall into this category. Defaults to kernel, kernel-smp,
|
|---|
| 128 | kernel-bigmem, kernel-enterprise, kernel-debug, kernel-unsupported.
|
|---|
| 129 |
|
|---|
| 130 | .IP
|
|---|
| 131 | \fBinstallonly_limit \fR
|
|---|
| 132 | Number of packages listed in installonlypkgs to keep installed at the same
|
|---|
| 133 | time. Setting to 0 disables this feature. Default is '0'. Note that this
|
|---|
| 134 | functionality used to be in the "installonlyn" plugin, where this option was
|
|---|
| 135 | altered via. tokeep.
|
|---|
| 136 | Note that as of version 3.2.24, yum will now look in the yumdb for a installonly
|
|---|
| 137 | attribute on installed packages. If that attribute is "keep", then they will
|
|---|
| 138 | never be removed.
|
|---|
| 139 |
|
|---|
| 140 | .IP
|
|---|
| 141 | \fBkernelpkgnames \fR
|
|---|
| 142 | List of package names that are kernels. This is really only here for the
|
|---|
| 143 | updating of kernel packages and should be removed out in the yum 2.1 series.
|
|---|
| 144 |
|
|---|
| 145 | .IP
|
|---|
| 146 | \fBshowdupesfromrepos\fR
|
|---|
| 147 | Either `0' or `1'. Set to `1' if you wish to show any duplicate packages from
|
|---|
| 148 | any repository, from package listings like the info or list commands. Set
|
|---|
| 149 | to `0' if you want only to see the newest packages from any repository.
|
|---|
| 150 | Default is `0'.
|
|---|
| 151 |
|
|---|
| 152 | .IP
|
|---|
| 153 | \fBobsoletes \fR
|
|---|
| 154 | This option only has affect during an \fBupdate\fR. It enables yum's
|
|---|
| 155 | obsoletes processing logic. Useful when doing distribution level upgrades. See
|
|---|
| 156 | also the yum \fBupgrade\fR command documentation for more details (yum(8)).
|
|---|
| 157 | Default is `true'.
|
|---|
| 158 | .br
|
|---|
| 159 | Command-line option: \fB\-\-obsoletes\fP
|
|---|
| 160 |
|
|---|
| 161 | .IP
|
|---|
| 162 | \fBoverwrite_groups \fR
|
|---|
| 163 | Either `0' or `1'. Used to determine yum's behaviour if two or more
|
|---|
| 164 | repositories offer the package groups with the same name. If
|
|---|
| 165 | \fBoverwrite_groups\fR is `1' then the group packages of the last matching
|
|---|
| 166 | repository will be used. If \fBoverwrite_groups\fR is `0' then the groups
|
|---|
| 167 | from all matching repositories will be merged together as one large group.
|
|---|
| 168 |
|
|---|
| 169 | .IP
|
|---|
| 170 | \fBenable_group_conditionals\fR
|
|---|
| 171 | Either `0' or `1'. Determines whether yum will allow the use of conditionals
|
|---|
| 172 | packages. Default is `1' (package conditionals are allowed).
|
|---|
| 173 |
|
|---|
| 174 | .IP
|
|---|
| 175 | \fBgroup_package_types\fR
|
|---|
| 176 | List of the following: optional, default, mandatory. Tells yum which type
|
|---|
| 177 | of packages in groups will be installed when 'groupinstall' is called.
|
|---|
| 178 | Default is: default, mandatory
|
|---|
| 179 |
|
|---|
| 180 | .IP
|
|---|
| 181 | \fBinstallroot \fR
|
|---|
| 182 | Specifies an alternative installroot, relative to which all packages will be
|
|---|
| 183 | installed.
|
|---|
| 184 | .br
|
|---|
| 185 | Command-line option: \fB\-\-installroot\fP
|
|---|
| 186 |
|
|---|
| 187 | .IP
|
|---|
| 188 | \fBdistroverpkg\fR
|
|---|
| 189 | The package used by yum to determine the "version" of the distribution. This
|
|---|
| 190 | can be any installed package. Default is `redhat-release'. You can see what
|
|---|
| 191 | provides this manually by using: "yum whatprovides redhat-release".
|
|---|
| 192 |
|
|---|
| 193 | .IP
|
|---|
| 194 | \fBdiskspacecheck\fR
|
|---|
| 195 | Either `0' or `1'. Set this to `0' to disable the checking for sufficient
|
|---|
| 196 | diskspace before a RPM transaction is run. Default is `1' (perform the check).
|
|---|
| 197 |
|
|---|
| 198 | .IP
|
|---|
| 199 | \fBtsflags\fR
|
|---|
| 200 | Comma or space separated list of transaction flags to pass to the rpm
|
|---|
| 201 | transaction set. These include 'noscripts', 'notriggers', 'nodocs', 'test', and 'repackage'.
|
|---|
| 202 | You can set all/any of them. However, if you don't know what these do in the
|
|---|
| 203 | context of an rpm transaction set you're best leaving it alone. Default is
|
|---|
| 204 | an empty list.
|
|---|
| 205 |
|
|---|
| 206 | .IP
|
|---|
| 207 | \fBrecent\fR
|
|---|
| 208 | Number of days back to look for `recent' packages added to a repository.
|
|---|
| 209 | Used by the \fBlist recent\fR command. Default is `7'.
|
|---|
| 210 |
|
|---|
| 211 | .IP
|
|---|
| 212 | \fBretries\fR
|
|---|
| 213 | Set the number of times any attempt to retrieve a file should retry before
|
|---|
| 214 | returning an error. Setting this to `0' makes yum try forever. Default is `10'.
|
|---|
| 215 |
|
|---|
| 216 | .IP
|
|---|
| 217 | \fBkeepalive \fR
|
|---|
| 218 | Either `0' or `1'. Set whether HTTP keepalive should be used for HTTP/1.1
|
|---|
| 219 | servers that support it. This can improve transfer speeds by using one
|
|---|
| 220 | connection when downloading multiple files from a repository. Default is `1'.
|
|---|
| 221 |
|
|---|
| 222 | .IP
|
|---|
| 223 | \fBtimeout \fR
|
|---|
| 224 | Number of seconds to wait for a connection before timing out. Defaults to
|
|---|
| 225 | 30 seconds. This may be too short of a time for extremely overloaded
|
|---|
| 226 | sites.
|
|---|
| 227 |
|
|---|
| 228 | .IP
|
|---|
| 229 | \fBhttp_caching\fR
|
|---|
| 230 | Determines how upstream HTTP caches are instructed to handle any HTTP downloads
|
|---|
| 231 | that Yum does. This option can take the following values:
|
|---|
| 232 |
|
|---|
| 233 | `all' means that all HTTP downloads should be cached.
|
|---|
| 234 |
|
|---|
| 235 | `packages' means that only RPM package downloads should be cached (but not
|
|---|
| 236 | repository metadata downloads).
|
|---|
| 237 |
|
|---|
| 238 | `none' means that no HTTP downloads should be cached.
|
|---|
| 239 |
|
|---|
| 240 | The default is `all'. This is recommended unless you are experiencing caching
|
|---|
| 241 | related issues. Try to at least use `packages' to minimize load on repository
|
|---|
| 242 | servers.
|
|---|
| 243 |
|
|---|
| 244 | .IP
|
|---|
| 245 | \fBthrottle \fR
|
|---|
| 246 | Enable bandwidth throttling for downloads. This option can be expressed as a
|
|---|
| 247 | absolute data rate in bytes/sec. An SI prefix (k, M or G) may be appended to the
|
|---|
| 248 | bandwidth value (eg. `5.5k' is 5.5 kilobytes/sec, `2M' is 2 Megabytes/sec).
|
|---|
| 249 |
|
|---|
| 250 | Alternatively, this option can specify the percentage of total bandwidth to use
|
|---|
| 251 | (eg. `60%'). In this case the \fBbandwidth\fR option should be used to specify
|
|---|
| 252 | the maximum available bandwidth.
|
|---|
| 253 |
|
|---|
| 254 | Set to `0' to disable bandwidth throttling. This is the default.
|
|---|
| 255 |
|
|---|
| 256 | .IP
|
|---|
| 257 | \fBbandwidth \fR
|
|---|
| 258 | Use to specify the maximum available network bandwidth in bytes/second. Used
|
|---|
| 259 | with the \fBthrottle\fR option (above). If \fBthrottle\fR is a percentage and
|
|---|
| 260 | \fBbandwidth\fR is `0' then bandwidth throttling will be disabled. If
|
|---|
| 261 | \fBthrottle\fR is expressed as a data rate (bytes/sec) then this option is
|
|---|
| 262 | ignored. Default is `0' (no bandwidth throttling).
|
|---|
| 263 |
|
|---|
| 264 | .IP
|
|---|
| 265 | \fBsslcacert \fR
|
|---|
| 266 | Path to the directory containing the databases of the certificate authorities
|
|---|
| 267 | yum should use to verify SSL certificates. Defaults to none - uses system
|
|---|
| 268 | default
|
|---|
| 269 |
|
|---|
| 270 | .IP
|
|---|
| 271 | \fBsslverify \fR
|
|---|
| 272 | Boolean - should yum verify SSL certificates/hosts at all. Defaults to True
|
|---|
| 273 |
|
|---|
| 274 | .IP
|
|---|
| 275 | \fBsslclientcert \fR
|
|---|
| 276 | Path to the SSL client certificate yum should use to connect to repos/remote sites
|
|---|
| 277 | Defaults to none.
|
|---|
| 278 |
|
|---|
| 279 | .IP
|
|---|
| 280 | \fBsslclientkey \fR
|
|---|
| 281 | Path to the SSL client key yum should use to connect to repos/remote sites
|
|---|
| 282 | Defaults to none.
|
|---|
| 283 |
|
|---|
| 284 | .IP
|
|---|
| 285 | \fBhistory_record \fR
|
|---|
| 286 | Boolean - should yum record history entries for transactions. This takes some
|
|---|
| 287 | disk space, and some extra time in the transactions. But it allows how to know a
|
|---|
| 288 | lot of information about what has happened before, and display it to the user
|
|---|
| 289 | with the history info/list/summary commands. yum also provides the
|
|---|
| 290 | history undo/redo commands. Defaults to True.
|
|---|
| 291 |
|
|---|
| 292 | .IP
|
|---|
| 293 | \fBhistory_record_packages \fR
|
|---|
| 294 | This is a list of package names that should be recorded as having helped the
|
|---|
| 295 | transaction. yum plugins have an API to add themselves to this, so it should not
|
|---|
| 296 | normally be necessary to add packages here. Not that this is also used for the
|
|---|
| 297 | packages to look for in \-\-version. Defaults to rpm, yum, yum-metadata-parser.
|
|---|
| 298 |
|
|---|
| 299 | .IP
|
|---|
| 300 | \fBcommands\fR
|
|---|
| 301 | List of functional commands to run if no functional commands are specified
|
|---|
| 302 | on the command line (eg. "update foo bar baz quux"). None of the short options
|
|---|
| 303 | (eg. \-y, \-e, \-d) are accepted for this option.
|
|---|
| 304 |
|
|---|
| 305 | .IP
|
|---|
| 306 | \fBsyslog_ident \fR
|
|---|
| 307 | XXX not implemented yet
|
|---|
| 308 |
|
|---|
| 309 | .IP
|
|---|
| 310 | \fBsyslog_facility \fR
|
|---|
| 311 | XXX not implemented yet
|
|---|
| 312 |
|
|---|
| 313 | .IP
|
|---|
| 314 | \fBproxy \fR
|
|---|
| 315 | URL to the proxy server that yum should use.
|
|---|
| 316 |
|
|---|
| 317 | .IP
|
|---|
| 318 | \fBproxy_username \fR
|
|---|
| 319 | username to use for proxy
|
|---|
| 320 |
|
|---|
| 321 | .IP
|
|---|
| 322 | \fBproxy_password \fR
|
|---|
| 323 | password for this proxy
|
|---|
| 324 |
|
|---|
| 325 | .IP
|
|---|
| 326 | \fBplugins \fR
|
|---|
| 327 | Either `0' or `1'. Global switch to enable or disable yum plugins. Default is
|
|---|
| 328 | `0' (plugins disabled). See the \fBPLUGINS\fR section of the \fByum(8)\fR man
|
|---|
| 329 | for more information on installing yum plugins.
|
|---|
| 330 |
|
|---|
| 331 | .IP
|
|---|
| 332 | \fBpluginpath \fR
|
|---|
| 333 | A list of directories where yum should look for plugin modules. Default is
|
|---|
| 334 | `/usr/share/yum-plugins' and `/usr/lib/yum-plugins'.
|
|---|
| 335 |
|
|---|
| 336 | .IP
|
|---|
| 337 | \fBpluginconfpath \fR
|
|---|
| 338 | A list of directories where yum should look for plugin configuration files.
|
|---|
| 339 | Default is `/etc/yum/pluginconf.d'.
|
|---|
| 340 |
|
|---|
| 341 | .IP
|
|---|
| 342 | \fBmetadata_expire \fR
|
|---|
| 343 | Time (in seconds) after which the metadata will expire. So that if the
|
|---|
| 344 | current metadata downloaded is less than this many seconds old then yum will
|
|---|
| 345 | not update the metadata against the repository. If you find that
|
|---|
| 346 | yum is not downloading information on updates as often as you would like
|
|---|
| 347 | lower the value of this option. You can also change from the default of using
|
|---|
| 348 | seconds to using days, hours or minutes by appending a d, h or m respectively.
|
|---|
| 349 | The default is 1.5 hours, to compliment yum-updatesd running once an hour.
|
|---|
| 350 | It's also possible to use the word "never", meaning that the metadata will
|
|---|
| 351 | never expire. Note that when using a metalink file the metalink must always
|
|---|
| 352 | be newer than the metadata for the repository, due to the validation, so this
|
|---|
| 353 | timeout also applies to the metalink file.
|
|---|
| 354 |
|
|---|
| 355 | .IP
|
|---|
| 356 | \fBmirrorlist_expire \fR
|
|---|
| 357 | Time (in seconds) after which the mirrorlist locally cached will expire.
|
|---|
| 358 | If the current mirrorlist is less than this many seconds old then yum
|
|---|
| 359 | will not download another copy of the mirrorlist, it has the same extra format
|
|---|
| 360 | as metadata_expire.
|
|---|
| 361 | If you find that yum is not downloading the mirrorlists as
|
|---|
| 362 | often as you would like lower the value of this option.
|
|---|
| 363 |
|
|---|
| 364 | .IP
|
|---|
| 365 | \fBmdpolicy \fR
|
|---|
| 366 | You can select from different metadata download policies depending on how much
|
|---|
| 367 | data you want to download with the main repository metadata index. The
|
|---|
| 368 | advantages of downloading more metadata with the index is that you can't get
|
|---|
| 369 | into situations where you need to use that metadata later and the versions
|
|---|
| 370 | available aren't compatible (or the user lacks privileges) and that if the
|
|---|
| 371 | metadata is corrupt in any way yum will revert to the previous metadata.
|
|---|
| 372 |
|
|---|
| 373 | `instant' - Just download the new metadata index, this is roughly what yum
|
|---|
| 374 | always did, however it now does some checking on the index and reverts if
|
|---|
| 375 | it classifies it as bad.
|
|---|
| 376 |
|
|---|
| 377 | `group:primary' - Download the primary metadata with the index. This contains
|
|---|
| 378 | most of the package information and so is almost always required anyway. This
|
|---|
| 379 | is the default.
|
|---|
| 380 |
|
|---|
| 381 | `group:small' - With the primary also download the updateinfo metadata, this is
|
|---|
| 382 | required for yum-security operations and it also used in the graphical clients.
|
|---|
| 383 | This file also tends to be significantly smaller than most others.
|
|---|
| 384 |
|
|---|
| 385 | `group:main' - With the primary and updateinfo download the filelists metadata
|
|---|
| 386 | and the group metadata. The filelists data is required for operations like
|
|---|
| 387 | "yum install /bin/bash", and also some dependency resolutions require it. The
|
|---|
| 388 | group data is used in some graphical clients and for group operations like
|
|---|
| 389 | "yum grouplist Base".
|
|---|
| 390 |
|
|---|
| 391 | `group:all' - Download all metadata listed in the index, currently the only one
|
|---|
| 392 | not listed above is the other metadata, which contains the changelog information
|
|---|
| 393 | which is used by yum-changelog. This is what "yum makecache" uses.
|
|---|
| 394 |
|
|---|
| 395 | .IP
|
|---|
| 396 | \fBmultilib_policy \fR
|
|---|
| 397 | Can be set to 'all' or 'best'. All means install all possible arches for any package you
|
|---|
| 398 | want to install. Therefore yum install foo will install foo.i386 and foo.x86_64 on x86_64,
|
|---|
| 399 | if it is available. Best means install the best arch for this platform, only.
|
|---|
| 400 |
|
|---|
| 401 | .IP
|
|---|
| 402 | \fBbugtracker_url \fR
|
|---|
| 403 | URL where bugs should be filed for yum. Configurable for local versions or distro-specific
|
|---|
| 404 | bugtrackers.
|
|---|
| 405 |
|
|---|
| 406 | .IP
|
|---|
| 407 | \fBcolor \fR
|
|---|
| 408 | Display colorized output automatically, depending on the output terminal,
|
|---|
| 409 | always (using ANSI codes) or never.
|
|---|
| 410 | Command-line option: \fB\-\-color\fP
|
|---|
| 411 |
|
|---|
| 412 | .IP
|
|---|
| 413 | \fBcolor_list_installed_older \fR
|
|---|
| 414 | The colorization/highlighting for packages in list/info installed which are
|
|---|
| 415 | older than the latest available package with the same name and arch.
|
|---|
| 416 | Default is `bold'.
|
|---|
| 417 | Possible values are a comma separated list containing: bold, blink, dim,
|
|---|
| 418 | reverse, underline, fg:black, fg:red, fg:green, fg:yellow, fg:blue, fg:magenta,
|
|---|
| 419 | fg:cyan, fg:white, bg:black, bg:red, bg:green, bg:yellow, bg:blue, bg:magenta,
|
|---|
| 420 | bg:cyan, bg:white.
|
|---|
| 421 |
|
|---|
| 422 | .IP
|
|---|
| 423 | \fBcolor_list_installed_newer \fR
|
|---|
| 424 | The colorization/highlighting for packages in list/info installed which are
|
|---|
| 425 | newer than the latest available package with the same name and arch.
|
|---|
| 426 | Default is `bold,yellow'.
|
|---|
| 427 | See color_list_installed_older for possible values.
|
|---|
| 428 |
|
|---|
| 429 | .IP
|
|---|
| 430 | \fBcolor_list_installed_reinstall \fR
|
|---|
| 431 | The colorization/highlighting for packages in list/info installed which is
|
|---|
| 432 | the same version as the latest available package with the same name and arch.
|
|---|
| 433 | Default is `normal'.
|
|---|
| 434 | See color_list_installed_older for possible values.
|
|---|
| 435 |
|
|---|
| 436 | .IP
|
|---|
| 437 | \fBcolor_list_installed_extra \fR
|
|---|
| 438 | The colorization/highlighting for packages in list/info installed which has
|
|---|
| 439 | no available package with the same name and arch.
|
|---|
| 440 | Default is `bold,red'.
|
|---|
| 441 | See color_list_installed_older for possible values.
|
|---|
| 442 |
|
|---|
| 443 | .IP
|
|---|
| 444 | \fBcolor_list_available_upgrade \fR
|
|---|
| 445 | The colorization/highlighting for packages in list/info available which is
|
|---|
| 446 | an upgrade for the latest installed package with the same name and arch.
|
|---|
| 447 | Default is `bold,blue'.
|
|---|
| 448 | See color_list_installed_older for possible values.
|
|---|
| 449 |
|
|---|
| 450 | .IP
|
|---|
| 451 | \fBcolor_list_available_downgrade \fR
|
|---|
| 452 | The colorization/highlighting for packages in list/info available which is
|
|---|
| 453 | a downgrade for the latest installed package with the same name and arch.
|
|---|
| 454 | Default is `dim,cyan'.
|
|---|
| 455 | See color_list_installed_older for possible values.
|
|---|
| 456 |
|
|---|
| 457 | .IP
|
|---|
| 458 | \fBcolor_list_available_install \fR
|
|---|
| 459 | The colorization/highlighting for packages in list/info available which has
|
|---|
| 460 | no installed package with the same name and arch.
|
|---|
| 461 | Default is `normal'.
|
|---|
| 462 | See color_list_installed_older for possible values.
|
|---|
| 463 |
|
|---|
| 464 | .IP
|
|---|
| 465 | \fBcolor_list_available_reinstall \fR
|
|---|
| 466 | The colorization/highlighting for packages in list/info available which is
|
|---|
| 467 | the same version as the installed package with the same name and arch.
|
|---|
| 468 | Default is `bold,underline,green.
|
|---|
| 469 | See color_list_installed_older for possible values.
|
|---|
| 470 |
|
|---|
| 471 | .IP
|
|---|
| 472 | \fBcolor_search_match \fR
|
|---|
| 473 | The colorization/highlighting for text matches in search.
|
|---|
| 474 | Default is `bold'.
|
|---|
| 475 | See color_list_installed_older for possible values.
|
|---|
| 476 |
|
|---|
| 477 | .IP
|
|---|
| 478 | \fBcolor_update_installed \fR
|
|---|
| 479 | The colorization/highlighting for packages in the "updates list" which are
|
|---|
| 480 | installed. The updates list is what is printed when you run "yum update",
|
|---|
| 481 | "yum list updates", "yum list obsoletes" and "yum check-update".
|
|---|
| 482 | Default is `normal'.
|
|---|
| 483 | See color_list_installed_older for possible values.
|
|---|
| 484 |
|
|---|
| 485 | .IP
|
|---|
| 486 | \fBcolor_update_local \fR
|
|---|
| 487 | The colorization/highlighting for packages in the "updates list" which are
|
|---|
| 488 | already downloaded. The updates list is what is printed when you run
|
|---|
| 489 | "yum update", "yum list updates", "yum list obsoletes" and "yum check-update".
|
|---|
| 490 | Default is `bold'.
|
|---|
| 491 | See color_list_installed_older for possible values.
|
|---|
| 492 |
|
|---|
| 493 | .IP
|
|---|
| 494 | \fBcolor_update_remote \fR
|
|---|
| 495 | The colorization/highlighting for packages in the "updates list" which need to
|
|---|
| 496 | be downloaded. The updates list is what is printed when you run "yum update",
|
|---|
| 497 | "yum list updates", "yum list obsoletes" and "yum check-update".
|
|---|
| 498 | Default is `normal'.
|
|---|
| 499 | See color_list_installed_older for possible values.
|
|---|
| 500 |
|
|---|
| 501 | .SH "[repository] OPTIONS"
|
|---|
| 502 | .LP
|
|---|
| 503 | The repository section(s) take the following form:
|
|---|
| 504 | .IP
|
|---|
| 505 | \fBExample\fP:
|
|---|
| 506 | [repositoryid]
|
|---|
| 507 | .br
|
|---|
| 508 | name=Some name for this repository
|
|---|
| 509 | .br
|
|---|
| 510 | baseurl=url://path/to/repository/
|
|---|
| 511 | .br
|
|---|
| 512 |
|
|---|
| 513 | .IP
|
|---|
| 514 | \fBrepositoryid\fR
|
|---|
| 515 | Must be a unique name for each repository, one word.
|
|---|
| 516 |
|
|---|
| 517 | .IP
|
|---|
| 518 | \fBname\fR
|
|---|
| 519 | A human readable string describing the repository.
|
|---|
| 520 |
|
|---|
| 521 | .IP
|
|---|
| 522 | \fBbaseurl\fR
|
|---|
| 523 | Must be a URL to the directory where the yum repository's `repodata' directory
|
|---|
| 524 | lives. Can be an http://, ftp:// or file:// URL. You can specify multiple URLs
|
|---|
| 525 | in one baseurl statement. The best way to do this is like this:
|
|---|
| 526 | .br
|
|---|
| 527 | [repositoryid]
|
|---|
| 528 | .br
|
|---|
| 529 | name=Some name for this repository
|
|---|
| 530 | .br
|
|---|
| 531 | baseurl=url://server1/path/to/repository/
|
|---|
| 532 | .br
|
|---|
| 533 | url://server2/path/to/repository/
|
|---|
| 534 | .br
|
|---|
| 535 | url://server3/path/to/repository/
|
|---|
| 536 | .br
|
|---|
| 537 |
|
|---|
| 538 | If you list more than one baseurl= statement in a repository you will find
|
|---|
| 539 | yum will ignore the earlier ones and probably act bizarrely. Don't do this,
|
|---|
| 540 | you've been warned.
|
|---|
| 541 |
|
|---|
| 542 | You can use HTTP basic auth by prepending "user:password@" to the server
|
|---|
| 543 | name in the baseurl line. For example: "baseurl=http://user:passwd@example.com/".
|
|---|
| 544 |
|
|---|
| 545 | .IP
|
|---|
| 546 | \fBmetalink\fR
|
|---|
| 547 | Specifies a URL to a metalink file for the repomd.xml, a list of mirrors for
|
|---|
| 548 | the entire repository are generated by converting the mirrors for the
|
|---|
| 549 | repomd.xml file to a baseurl. The metalink file also contains the latest
|
|---|
| 550 | timestamp from the data in the repomd.xml, the length of the repomd.xml and
|
|---|
| 551 | checksum data. This data is checked against any downloaded repomd.xml file
|
|---|
| 552 | and all of the information from the metalink file must match. This can be used
|
|---|
| 553 | instead of or with the \fBbaseurl\fR option. Substitution variables, described
|
|---|
| 554 | below, can be used with this option. This option disables the mirrorlist option.
|
|---|
| 555 | As a special hack is the mirrorlist URL contains the word "metalink" then the
|
|---|
| 556 | value of mirrorlist is copied to metalink (if metalink is not set).
|
|---|
| 557 |
|
|---|
| 558 | .IP
|
|---|
| 559 | \fBmirrorlist\fR
|
|---|
| 560 | Specifies a URL to a file containing a list of baseurls. This can be used
|
|---|
| 561 | instead of or with the \fBbaseurl\fR option. Substitution variables, described
|
|---|
| 562 | below, can be used with this option.
|
|---|
| 563 | As a special hack is the mirrorlist URL contains the word "metalink" then the
|
|---|
| 564 | value of mirrorlist is copied to metalink (if metalink is not set).
|
|---|
| 565 |
|
|---|
| 566 |
|
|---|
| 567 | .IP
|
|---|
| 568 | \fBenabled\fR
|
|---|
| 569 | Either `1' or `0'. This tells yum whether or not use this repository.
|
|---|
| 570 |
|
|---|
| 571 | .IP
|
|---|
| 572 | \fBgpgcheck\fR
|
|---|
| 573 | Either `1' or `0'. This tells yum whether or not it should perform a GPG
|
|---|
| 574 | signature check on the packages gotten from this repository.
|
|---|
| 575 |
|
|---|
| 576 | .IP
|
|---|
| 577 | \fBrepo_gpgcheck\fR
|
|---|
| 578 | Either `1' or `0'. This tells yum whether or not it should perform a GPG
|
|---|
| 579 | signature check on the repodata from this repository.
|
|---|
| 580 |
|
|---|
| 581 | .IP
|
|---|
| 582 | \fBgpgkey\fR
|
|---|
| 583 | A URL pointing to the ASCII-armored GPG key file for the repository. This
|
|---|
| 584 | option is used if yum needs a public key to verify a package and the required
|
|---|
| 585 | key hasn't been imported into the RPM database. If this option is set, yum will
|
|---|
| 586 | automatically import the key from the specified URL. You will be prompted before
|
|---|
| 587 | the key is installed unless the \fBassumeyes\fR option is set.
|
|---|
| 588 |
|
|---|
| 589 | Multiple URLs may be specified here in the same manner as the \fBbaseurl\fR
|
|---|
| 590 | option (above). If a GPG key is required to install a package from a
|
|---|
| 591 | repository, all keys specified for that repository will be installed.
|
|---|
| 592 |
|
|---|
| 593 | .IP
|
|---|
| 594 | \fBexclude\fR
|
|---|
| 595 | Same as the [main] \fBexclude\fR option but only for this repository.
|
|---|
| 596 | Substitution variables, described below, are honored here.
|
|---|
| 597 |
|
|---|
| 598 | .IP
|
|---|
| 599 | \fBincludepkgs\fR
|
|---|
| 600 | Inverse of exclude. This is a list of packages you want to use from a
|
|---|
| 601 | repository. If this option lists only one package then that is all yum will
|
|---|
| 602 | ever see from the repository. Defaults to an empty list. Substitution
|
|---|
| 603 | variables, described below, are honored here.
|
|---|
| 604 |
|
|---|
| 605 | .IP
|
|---|
| 606 | \fBenablegroups\fR
|
|---|
| 607 | Either `0' or `1'. Determines whether yum will allow the use of package groups
|
|---|
| 608 | for this repository. Default is `1' (package groups are allowed).
|
|---|
| 609 |
|
|---|
| 610 | .IP
|
|---|
| 611 | \fBfailovermethod\fR
|
|---|
| 612 | Either `roundrobin' or `priority'.
|
|---|
| 613 |
|
|---|
| 614 | `roundrobin' randomly selects a URL out of
|
|---|
| 615 | the list of URLs to start with and proceeds through each of them as it
|
|---|
| 616 | encounters a failure contacting the host.
|
|---|
| 617 |
|
|---|
| 618 | `priority' starts from the first baseurl listed and reads through them
|
|---|
| 619 | sequentially.
|
|---|
| 620 |
|
|---|
| 621 | \fBfailovermethod\fR defaults to `roundrobin' if not specified.
|
|---|
| 622 |
|
|---|
| 623 | .IP
|
|---|
| 624 | \fBkeepalive\fR
|
|---|
| 625 | Either `1' or `0'. This tells yum whether or not HTTP/1.1 keepalive should be
|
|---|
| 626 | used with this repository. See the global option in the [main] section above
|
|---|
| 627 | for more information.
|
|---|
| 628 |
|
|---|
| 629 | .IP
|
|---|
| 630 | \fBtimeout\fR
|
|---|
| 631 | Overrides the \fBtimeout\fR option from the [main] section for this repository.
|
|---|
| 632 |
|
|---|
| 633 | .IP
|
|---|
| 634 | \fBhttp_caching\fR
|
|---|
| 635 | Overrides the \fBhttp_caching\fR option from the [main] section for this repository.
|
|---|
| 636 |
|
|---|
| 637 | .IP
|
|---|
| 638 | \fBretries\fR
|
|---|
| 639 | Overrides the \fBretries\fR option from the [main] section for this repository.
|
|---|
| 640 |
|
|---|
| 641 | .IP
|
|---|
| 642 | \fBthrottle\fR
|
|---|
| 643 | Overrides the \fBthrottle\fR option from the [main] section for this
|
|---|
| 644 | repository.
|
|---|
| 645 |
|
|---|
| 646 | .IP
|
|---|
| 647 | \fBbandwidth\fR
|
|---|
| 648 | Overrides the \fBbandwidth\fR option from the [main] section for this
|
|---|
| 649 | repository.
|
|---|
| 650 |
|
|---|
| 651 |
|
|---|
| 652 | .IP
|
|---|
| 653 | \fBsslcacert \fR
|
|---|
| 654 | Overrides the \fBsslcacert\fR option from the [main] section for this
|
|---|
| 655 | repository.
|
|---|
| 656 |
|
|---|
| 657 | .IP
|
|---|
| 658 | \fBsslverify \fR
|
|---|
| 659 | Overrides the \fBsslverify\fR option from the [main] section for this
|
|---|
| 660 | repository.
|
|---|
| 661 |
|
|---|
| 662 | .IP
|
|---|
| 663 | \fBsslclientcert \fR
|
|---|
| 664 | Overrides the \fBsslclientcert\fR option from the [main] section for this
|
|---|
| 665 | repository.
|
|---|
| 666 |
|
|---|
| 667 | .IP
|
|---|
| 668 | \fBsslclientkey \fR
|
|---|
| 669 | Overrides the \fBsslclientkey\fR option from the [main] section for this
|
|---|
| 670 | repository.
|
|---|
| 671 |
|
|---|
| 672 |
|
|---|
| 673 | .IP
|
|---|
| 674 | \fBmetadata_expire \fR
|
|---|
| 675 | Overrides the \fBmetadata_expire\fR option from the [main] section for this
|
|---|
| 676 | repository.
|
|---|
| 677 |
|
|---|
| 678 | .IP
|
|---|
| 679 | \fBmirrorlist_expire \fR
|
|---|
| 680 | Overrides the \fBmirrorlist_expire\fR option from the [main] section for this
|
|---|
| 681 | repository.
|
|---|
| 682 |
|
|---|
| 683 | .IP
|
|---|
| 684 | \fBproxy \fR
|
|---|
| 685 | URL to the proxy server for this repository. Set to '_none_' to disable the
|
|---|
| 686 | global proxy setting for this repository. If this is unset it
|
|---|
| 687 | inherits it from the global setting
|
|---|
| 688 |
|
|---|
| 689 | .IP
|
|---|
| 690 | \fBproxy_username \fR
|
|---|
| 691 | username to use for proxy.
|
|---|
| 692 | If this is unset it inherits it from the global setting
|
|---|
| 693 |
|
|---|
| 694 | .IP
|
|---|
| 695 | \fBproxy_password \fR
|
|---|
| 696 | password for this proxy.
|
|---|
| 697 | If this is unset it inherits it from the global setting
|
|---|
| 698 |
|
|---|
| 699 | .IP
|
|---|
| 700 | \fBcost \fR
|
|---|
| 701 | relative cost of accessing this repository. Useful for weighing one repo's packages
|
|---|
| 702 | as greater/less than any other. defaults to 1000
|
|---|
| 703 |
|
|---|
| 704 | .IP
|
|---|
| 705 | \fBskip_if_unavailable \fR
|
|---|
| 706 | If set to True yum will continue running if this repository cannot be
|
|---|
| 707 | contacted for any reason. This should be set carefully as all repos are consulted
|
|---|
| 708 | for any given command. Defaults to False.
|
|---|
| 709 | .IP
|
|---|
| 710 |
|
|---|
| 711 | .SH "URL INCLUDE SYNTAX"
|
|---|
| 712 | .LP
|
|---|
| 713 | The inclusion of external configuration files is supported for /etc/yum/yum.conf
|
|---|
| 714 | and the .repo files in the /etc/yum/repos.d directory. To include a URL, use a
|
|---|
| 715 | line of the following format:
|
|---|
| 716 |
|
|---|
| 717 | include=url://to/some/location
|
|---|
| 718 |
|
|---|
| 719 | The configuration file will be inserted at the position of the "include=" line.
|
|---|
| 720 | Included files may contain further include lines. Yum will abort with an error
|
|---|
| 721 | if an inclusion loop is detected.
|
|---|
| 722 |
|
|---|
| 723 | .SH "VARIABLES"
|
|---|
| 724 | .LP
|
|---|
| 725 | There are a number of variables you can use to ease maintenance of yum's
|
|---|
| 726 | configuration files. They are available in the values of several options
|
|---|
| 727 | including \fBname\fR, \fBbaseurl\fR and \fBcommands\fB.
|
|---|
| 728 | .LP
|
|---|
| 729 |
|
|---|
| 730 | .IP
|
|---|
| 731 | \fB$releasever\fR
|
|---|
| 732 | This will be replaced with the value of the version of the package listed
|
|---|
| 733 | in \fBdistroverpkg\fR. This defaults to the version of `redhat-release'
|
|---|
| 734 | package.
|
|---|
| 735 |
|
|---|
| 736 | .IP
|
|---|
| 737 | \fB$arch\fR
|
|---|
| 738 | This will be replaced with your architecture as listed by os.uname()[4] in
|
|---|
| 739 | Python.
|
|---|
| 740 |
|
|---|
| 741 | .IP
|
|---|
| 742 | \fB$basearch\fR
|
|---|
| 743 | This will be replaced with your base architecture in yum. For example, if
|
|---|
| 744 | your $arch is i686 your $basearch will be i386.
|
|---|
| 745 |
|
|---|
| 746 | .IP
|
|---|
| 747 | \fB$uuid\fR
|
|---|
| 748 | This will be replaced with a unique but persistent uuid for this machine.
|
|---|
| 749 | The value that is first generated will be stored in /var/lib/yum/uuid and
|
|---|
| 750 | reused until this file is deleted.
|
|---|
| 751 |
|
|---|
| 752 | .IP
|
|---|
| 753 | \fB$YUM0-$YUM9\fR
|
|---|
| 754 | These will be replaced with the value of the shell environment variable of
|
|---|
| 755 | the same name. If the shell environment variable does not exist then the
|
|---|
| 756 | configuration file variable will not be replaced.
|
|---|
| 757 |
|
|---|
| 758 |
|
|---|
| 759 | .SH "FILES"
|
|---|
| 760 | .nf
|
|---|
| 761 | /etc/yum/yum.conf
|
|---|
| 762 | /etc/yum/repos.d/
|
|---|
| 763 | /etc/yum/pluginconf.d/
|
|---|
| 764 |
|
|---|
| 765 | .SH "SEE ALSO"
|
|---|
| 766 | .LP
|
|---|
| 767 | yum(8)
|
|---|
| 768 |
|
|---|