I have created a yum repo on my home machine using a tutorial I found on howtoforge.com
http://www.howtoforge.com/setting-up...sitory-fedora8
This article talks about fedora 8 however I changed it just enough to be fedora 12.
The commands that I adapted for this release are these:
Code:
mkdir -p /var/www/html/yum/base/12/i386
mkdir -p /var/www/html/yum/updates/12/i386
Code:
createrepo /var/www/html/yum/base/12/i386
I then verified that the repo had been created
Code:
[root@lcent5-1 base]# ls -l /var/www/html/yum/base/12/i386/repodata/
total 16
-rw-r--r-- 1 root root 181 Apr 2 11:21 filelists.xml.gz
-rw-r--r-- 1 root root 176 Apr 2 11:21 other.xml.gz
-rw-r--r-- 1 root root 188 Apr 2 11:21 primary.xml.gz
-rw-r--r-- 1 root root 951 Apr 2 11:21 repomd.xml
I then went to my local fedora box and added the yum repo I created:
Code:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
installonly_limit=2
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
[base-local]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=http://lcent5-1.ath.cx/yum/base/$releasever/$basearch
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=0
[updates-local]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
baseurl=http://lcent5-1.ath.cx/yum/updates/$releasever/$basearch/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
gpgcheck=1
gpgkey=http://mirror.yellowfiber.net/fedora/releases/12/Fedora/i386/os/RPM-GPG-KEY-fedora-12-primary
However, when I try to run yum, this is the message I get...
Code:
[root@harmony yum.repos.d]# yum search httpd
Loaded plugins: presto, refresh-packagekit
http://lcent5-1.ath.cx/yum/updates/12/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 : http://lcent5-1.ath.cx/yum/updates/12/i386/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates-local. Please verify its path and try again
Yum still works, obviously. But I would like to actually use this yum server if I can figure out how to do this...
Apache is running.. and I can access a website here:
My Yum Server
I would suspect that this file is the missing link here:
Code:
-rw-r--r-- 1 root root 951 Apr 2 11:21 repomd.xml
The above file can be found here...
Code:
/var/www/html/yum/base/12/i386/repodata/
Any thoughts on this would be appreciated...