Monday, April 15, 2013

Configuring YUM Repository on OEL6

To configure the YUM Repository, I mount the OEL Source CD.  Then I Created a file "server.repo" under directory path "/etc/yum.repos.d". Make the following entry into that file.

[server]
name=Oracle Linux
baseurl= "file:///media/OL6.3 i386%20Disc%201%2020120626/Server/"
#gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=0
enabled=1

Note. For space use %20 for http only. You can also copy the entire source CD to some partition location under parent "/" and then use that file path location in baseurl.
For instance if I copied the source packages under "/var/lib/yum" then I used as following.
[server]
name=Oracle Linux
baseurl= "file:///var/lib/yum/Server"
#gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=0
enabled=1
Then do the following steps.
[root@ora yum.repos.d]#mv public-yum-ol6.repo public-yum-ol6.repo.bkp
#yum clean all
#yum update all

Do the following to install the "Kernel-devel" package for instance.
#yum install kernel-devel*

Cheers!!! :)

No comments:

Post a Comment