up2date -i nagios-plugins-*; or, how to exclude a package from just one particular repository in up2date?
With yum on e.g. CentOS 5, I can put custom exclude= lines in to a specific repository configuration, which still allows yum to get those packages from other repositories.
On my RHEL4 ES system using up2date, however, it seems that the /etc/sysconfig/rhn/sources file only allows excluding packages entirely (from all repositories); and it seems to not care about what I put in the repository configuration files in /etc/yum.repos.d/
Here's my specific problem: I inherited this system from a previous sysadmin, and as I found it, the up2date sources configuration file includes the dag apt repository (yum dag http://apt.sw.be/redhat/el4/en/$ARCH/dag), and the epel repository(yum EPEL http://download.fedoraproject.org/pub/epel/4/$ARCH).
Here's what happens when I try to install nagios-plugins, etc using up2date:
# up2date -i nagios-plugins{,-disk,-mysql,-load,-dns}Fetching Obsoletes list for channel: rhel-i386-es-4...Fetching Obsoletes list for channel: dag...Fetching Obsoletes list for channel: EPEL...Fetching rpm headers...########################################Name Version Rel Arch----------------------------------------------------------------------------------------nagios-plugins 1.4.15 2.el4.rf i386nagios-plugins-disk 1.4.15 2.el4 i386nagios-plugins-dns 1.4.15 2.el4 i386nagios-plugins-load 1.4.15 2.el4 i386nagios-plugins-mysql 1.4.15 2.el4 i386Testing package set / solving RPM inter-dependencies...Downloading headers to solve dependencies...#######################################Downloading headers to solve dependencies...#######################################Downloading headers to solve dependencies...There was a package dependency problem. The message was:Unresolvable chain of dependencies:nagios-plugins-disk-1.4.15-2.el4 requires nagios-plugins = 1.4.15-2.el4nagios-plugins-dns-1.4.15-2.el4 requires nagios-plugins = 1.4.15-2.el4nagios-plugins-load-1.4.15-2.el4 requires nagios-plugins = 1.4.15-2.el4nagios-plugins-mysql-1.4.15-2.el4 requires nagios-plugins = 1.4.15-2.el4The following packages were added to your selection to satisfy dependencies:Package Required by----------------------------------------------------------------------------