Create Local CentOS 5.1 repo
On Sat, Apr 12, 2008 at 10:36 AM, Joseph L. Casale
> I am trying to create a local base repo from the DVD on a webserver as I am not able to install with the x64 DVD. I have done this before I recall by placing the DVD contents in the root of an empty webserver, but I have many existing repo's on this current server and so I wanted to maintain the existing hierarchy structure.
> I tried using the createrepo command and neither that nor copying the DVD into specified dir is working.
> Anyone know how to do this?
If you have already copied the entire content of the DVD to the web
server, you don't need to run createrepo. First make sure you can
browse the files from your client. Let's say it is
http://your.web.server/somedir/5/x86_64/ and you see the repodata
directory (among other things) there, then edit the [base] section of
CentOS-Base.repo to have:
and comment out the mirrorlist line. Now test to see if yum can access it.
CentOS mailing list