[ How to ] Use CentOS repos in RHEL-5 Server

1. Remove "yum-rhn-plugin" package from RHEL, this is used to check
the activation in RHEL.

# rpm -e yum-rhn-plugin

2. Remove the "redhat-release" related packages, this is used to check
the repositories compatibility. usually we can't remove these packages
because they are used by other packages of the system for proper
fuctioning. so we'll use the "--nodeps" parameter to forcely remove
them from the system.
# rpm -e redhat-release-notes-5Server redhat-release-5Server --nodeps

3. Download & install the "centos-release" relates packages, to fill
in the gap that we made by removing the "redhat-release" related
packages.

i386 (32 bit)
http://mirror.centos.org/centos-5/5/os/i386/CentOS/centos-release-5-3.el5.centos.1.i386.rpm
http://mirror.centos.org/centos-5/5/os/i386/CentOS/centos-release-notes-5.3-3.i386.rpm

4. To automatically inform about the updates in GUI, Do the following.

# vi /etc/yum/yum-updatesd.conf

In the file, type as follows under the section "# how to send notifications"

dbus_listener = yes

5. To change the OS name in the CLI login, Do the following.

# nano /etc/issue

Since we have installed the "centos-release" relates packages, the OS
name will come as "CentOS release 5 (Final)", so delete it and type

Red Hat Enterprise Linux Server release 5 (Tikanga)

Or any name you like.

6. Now your system is ready.

7 noy start your internet
open terminal type #yum updates

i have copyed the above steps from a a forums those worked with me i think this will also help novinces to get ypdates for RHEL-5

Credits : Pushkar

2 comments:

  1. Thanks icewalker, this worked like a charm!

    ReplyDelete
  2. Awesome. This page should be referenced when people search for problems with the error message:

    "There was an error communicating with RHN.
    RHN support will be disabled.

    Error Message:
    Service not enabled for system profile:
    Error Class Code: 31
    Error Class Info:
    This system does not have a valid entitlement for Red Hat Network.
    Please visit https://rhn.redhat.com/rhn/systems/SystemEntitlements.do
    or login at https://rhn.redhat.com, and from the "Your RHN" tab,
    select "Subscription Management" to enable RHN service for this system.
    Explanation:
    Your organization does not have enough Management entitlements to register this
    system to Red Hat Network. Please notify your organization administrator of this error.
    You should be able to register this system after your organization frees existing
    or purchases additional entitlements. Additional entitlements may be purchased by your
    organization administrator by logging into Red Hat Network and visiting
    the 'Subscription Management' page in the 'Your RHN' section of RHN.

    A common cause of this error code is due to having mistakenly setup an
    Activation Key which is set as the universal default. If an activation key is set
    on the account as a universal default, you can disable this key and retry to avoid
    requiring a Management entitlement.
    "

    ReplyDelete