[Spacewalk-list] Excluding Packages in a Channel?
r.rigby at leeds.ac.uk
r.rigby at leeds.ac.uk
Tue Feb 15 15:20:50 UTC 2011
On Tue, 15 Feb 2011, Wojtak, Greg wrote:
> Is there a way to exclude certain packages in a channel from being installed/updated unless overridden?
>
> For example, I built a php-5.3.5 set of packages and I pushed them into a custom channel. All of my systems are currently subscribed to this channel, but there are couple systems where it would be undesirable to update to php 5.3.5.
>
> Is there an equivalent way to exclude packages by default within a channel (similar to adding the excludepackages line to a repository config file with yum)? I'd hate to have to create separate channels with two or three packages in them each.
>
> Thanks in advance!
>
> Greg
>
hi greg,
as i understand it, the file you need to look at (on the clients) is:
/etc/yum/pluginconf.d/rhnplugin.conf
in here, you can put your per channel customisations, for that client,
in the same way as you would for a yum repository, e.g.:
#--
[main]
enabled = 1
gpgcheck = 1
# You can specify options per channel, e.g.:
#
#[rhel-i386-server-5]
#enabled = 1
#
#[some-unsigned-custom-channel]
#gpgcheck = 0
[custom_channel]
exclude=php*
#--
i don't know of a way to do this through the web interface or api.
hope that is of some use.
thanks,
richard
More information about the Spacewalk-list
mailing list