Re: A Problem with Red Hat's yum-rhn-plugin and a local repo mirror

James Antill <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Dan White <[email protected]> writes:

> Red Hat Bugzilla ~ Bug 746053: yum-rhn-plugin busted: Repository rhel-x86_64-server-5 is listed more than once in the configuration
>
> Red Hat Enterprise 5.7 x86_64 kernel 2.6.18-274.3.1.el5
>
> yum-rhn-plugin.noarch-0.5.4-22.el5_7.2
>
> Running a cobbler-built local repository mirror for cobbler/PXE/Kickstarting
> systems.  There are third party repos and a custom repo of locally required
> packages.
>
> After an update that changed me from yum-rhn-plugin-0.5.4-22.el5 to
> yum-rhn-plugin-0.5.4-22.el5_7.2, I started getting failure on any yum command
> with the message "Repository rhel-x86_64-server-5 is listed more than once in
> the configuration".
>
> I found the following workarounds: 
>
> * disable yum-rhn-plugin by using "--disableplugin=rhnplugin" on the command
> line
>
> * downgrade to yum-rhn-plugin-0.5.4-22.el5 (yum-rhn-plugin-0.5.4-22.el5_7.1 has
> the same issue) and put "exclude=yum-rhn-plugin" in /etc/yum.conf
>
> It looks like an old bug crawled back into yum-rhn-plugin
> Ref: <https://access.redhat.com/kb/docs/DOC-15495>

 So ... this it the yum users list, not the developer list. And the
yum developers are far from experts on yum-rhn-plugin. So you might
get more ideas/help if you talk to the RHN developers.
 However I do know that recent versions of the RHN plugin would cache
the list of channels the system was subscribed to ... so that might be
the problem.

> --------------
>
> Second question: Is there a way to do the equivalent of a yum-versionlock at the repository ?

 I'm not sure what you mean ... if you mean apply versionlock
semantics (basically version specific excludes) to just a single
repo. ... then there's no user way to do that atm. ... but the APIs
would allow it.

-- 
James Antill -- [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.