Anyway, for today I discovered a new option for yum repository configuration files.
includepkgs This is a list of packages you want to use from a repository. If this option lists only one package then that is all yum will ever see from the repository.
This is useful if you want to add external repository because of only one package.
exclude
excludes packages listed.
e.g. exclude=eclipse* kernel
This option is useful if you have a conflict among different packages in your repositories.
Note that if you have multiple exclude configuration lines, only the last one will be valid.
Same is true for any other configuration lines in yum.conf.
This is a limitation of yum, though not a huge one. Postfix, nagios can have multiple lines and they are all valid. Say, in nagios you can have as many configuration directories as you want. And all are valid:
cfg_dir=/etc/nagios/cfgs
cfg_dir=/usr/local/nagios/etc-common

Keine Kommentare:
Kommentar veröffentlichen