Quote:
Originally Posted by yasasvi srikanth
I have saved all the pakages present on the Server folder of RHEL5-DVD on "/repo". And I have Edited the yum configuration file and given the "base url as:///repo" and "enabled = 0".
|
Unless you missed some information on what you've exactly done, this is not the correct way to create a local repository. First you have to create the metadata for your local repository using the command createrepo (maybe you have to previously install it):
then you have to add a custom repository file in /etc/yum.repos.d/. For example name it RHEL-Local.repo and put something like:
Code:
[localrepo]
name=RHEL-$releasever - Local Repository
baseurl=file:///repo/
enabled=1
gpgcheck=0
Hope this helps!