Step 1 :
Copy all the rmps from the RHEL 5 DVD to a folder "/rpms/Server"
Step 2:
Edit the file '/etc/yum.repos.d/rhel-debuginfo.repo' , Like following way :[root@lpt Server]# cat /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]name=Red Hat Enterprise Linux $releasever - $basearch - Debugbaseurl=file:///rpms/Serverenabled=1gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@lpt Server]#
Step 3:
Download createrepo package from "http://dag.wieers.com/rpm/packages/createrepo/" siteand install it .
[root@lpt test]# rpm -ivh createrepo-0.4.8-1.el5.rf.noarch.rpm warning: createrepo-0.4.8-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6Preparing... ########################################### [100%] 1:createrepo ########################################### [100%]
Step 4:
Run the 'createrepo' command :
[root@lpt test]# cd /rpms/Server/
[root@lpt Server]# createrepo /rpms/Server
2113/2113 - pango-devel-1.14.9-3.el5.i386.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
[root@lpt Server]#
Finally , Enjoy yum from your RHEL 5 Linux environment .
No comments:
Post a Comment