RHEL5.7: yum --disablerepo='*' repolist, not disable all repositories

Solution Verified - Updated -

Issue

  • yum --disablerepo='\*' disables only generic repositories, not translated from the RHN Channels
        # yum --disablerepo='*'  repolist
        Loaded plugins: downloadonly, rhnplugin, security
        repo id                                                     repo name                                                status
        rhel-x86_64-server-5                                        Red Hat Enterprise Linux (v. 5 for 64-                   11,891
        rhel-x86_64-server-productivity-5                           RHEL Optional Productivity Apps (v. 5                    1,678
        rhel-x86_64-server-supplementary-5                          RHEL Supplementary (v. 5 for 64-bit x8                   1,085
        rhel-x86_64-server-vt-5                                     RHEL Virtualization (v. 5 for 64-bit x                   424
        rhn-tools-rhel-x86_64-server-5                              Red Hat Network Tools for RHEL Server                    482
        repolist: 15,560
  • yum --disablerepo option does not work properly.

Environment

  • yum-3.2.22-37.el5
  • yum-rhn-plugin-0.5.4-22.el5
  • Red Hat Enterprise Linux 5.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.