Configure RHEL5 to use CentOS Repos

| 0 Comments | 0 TrackBacks

If you installed RHEL5 and you no longer have a subscription for Red Hat Support. You can use the CentOS repos to keep your software up to date. To make a long story shorter here, CentOS removes any Red Hat branding and artwork. For more information about CentOS, visit http://www.centos.org

Now, let's get your box setup to use the CentOS repos.


First things first, import the key.



rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
yum list
Now create a file called /etc/yum.repos.d/CentOS.repo. Include the following in the CentOS.repo file.

[base]
name=CentOS-5 - Base
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


#released updates
[updates]
name=CentOS-5 - Updates
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


#additional packages that may be useful
[extras] name=CentOS-5 - Extras
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


#additional packages that extend functionality of existing packages
[centosplus] name=CentOS-5 - Plus
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=plus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Now, you can run `yum update` to update the rpms on your RHEL5 box using the CentOS repos.

No TrackBacks

TrackBack URL: http://baldwinsung.com/cgi-bin/mt-tb.cgi/86

Leave a comment

Recent Entries

Minimal Post Configuration for CentOS
service yum-updatesd stop chkconfig yum-updatesd off service avahi-daemon stop chkconfig avahi-daemon off service bluetooth stop chkconfig bluetooth off service…
15 Central Park West
The Real Deal details the buyers of the wonderful apartments at 15 CPW. http://therealdeal.com/newyork/articles/a-unit-by-unit-look-at-15-cpw http://s3.amazonaws.com/trd_three/images/17726/CPWBinder.pdf…
AJAX Toolkits
Prototype http://prototypejs.org Scriptaculous http://script.aculo.us Dojo http://dojotoolkit.org YUI http://developer.yahoo.com Ext http://extjs.com Sarissa http://sarissa.sf.net Mochikit http://mochikit.com jQuery http://jquery.com MooTools http://mootools.net GWT…