Using CentOS yum repo with OEL and RHEL

You can use the CentOS yum repo with Oracle Enterprise Linux OEL and Red Hat Enterprise Linux RHEL if you want access to additional or more up to date packages such as PHP 5.2.9

Add CentOS repos to yum.repos.d dir
ie
[base]
name=CentOS-$releasever - Base
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
gpgcheck=1
priority=11

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

[c5-testing]
name=CentOS-5 Testing 
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=testing
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
gpgcheck=1
enabled=1
priority=1
includepkgs=http*,mod*,php*


Edit yum.conf
To prevent getting the error
Missing Dependency: /etc/enterprise-release is needed by package initscripts-8.45.30-2.0.1.el5.i386 (installed)

you may need to edit yum.conf and add
exclude=kernel* up2date* initscripts* centos-release*


Run yum
You can then run yum on your OEL or RHEL system
# yum clean all
# yum install yum-priorities
# yum install pidgin


and you should see rpms being installed from both your suppliers repos
Dependencies Resolved

Package                   Arch            Version                   Repository              Size

Installing:
 pidgin                    i386            2.6.3-2.el5               updates                1.4 M
Installing for dependencies:
 cyrus-sasl-md5            i386            2.1.22-5.el5              el5_u4_base             46 k
 gtkspell                  i386            2.0.11-2.1                el5_u3_base             29 k
 libpurple                 i386            2.6.3-2.el5               updates                7.6 M
 libsilc                   i386            1.0.2-2.fc6               base                   412 k
 meanwhile                 i386            1.0.2-5.el5               base                   108 k

Transaction Summary

Install      6 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 9.7 M




REFERRERS
Yum

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki