With a little side of applesauce...

Tuesday, May 22, 2007

YUM - accessing a locally hosted yum repository

I finally got the yum client working with a locally hosted repository. It appears that yum ignores the baseurl protocol of http:// when it is attempting to find the repomd.xml on a locally hosted repository, returning the following error:

http://localhost/yum/repodata/repomd.xml: [Errno 14] HTTP Error 500: Server Error
Trying other mirror.
Cannot open/read repomd.xml file for repository: myrepo
failure: repodata/repomd.xml from myrepo: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from myrepo: [Errno 256] No more mirrors to try.

If you change the baseurl protocol from http:// to file:// in the /etc/yum.repos.d/localhost.repo file, then the repository will then be available for installation, searching, etc. from the local machine.

This happens with:
yum-2.4.3-3.e14.centos

No comments: