OK here is the full version of how to do yum.
create a directory on a server and modify your http.conf so that that directory can be seen over
http://servernametheres loads of docs how to do this its no different from setting up a web site.
next populate that directory with your rpm's
make a directory under that , called repodata.
in that directory create a file, repomd.xml
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo">
<data type="other">
<location href="repodata/other.xml.gz"/>
<checksum type="sha">574e88345953953aa9adee5cf1f900a96c8771d6</checksum>
<timestamp>1359980070</timestamp>
<open-checksum type="sha">e992013e780d5d99dc583b1c002e82a92937b459</open-checksum>
</data>
<data type="filelists">
<location href="repodata/filelists.xml.gz"/>
<checksum type="sha">ced9c3d6794af46dfe1ec159e44e4556279adf56</checksum>
<timestamp>1359980070</timestamp>
<open-checksum type="sha">a310ca4256b68856c43dc62cebadf505b468d510</open-checksum>
</data>
<data type="primary">
<location href="repodata/primary.xml.gz"/>
<checksum type="sha">1de19528ed8ef04c344cd54cf60f00ab6d38ac66</checksum>
<timestamp>1359980070</timestamp>
<open-checksum type="sha">183430b299d5e7d83f5076731d5c7998fcd369e4</open-checksum>
</data>
<data type="group">
<location href="repodata/repomd.xml"/>
<checksum type="sha">f7c91aa8fccfaf8959e470cec00e8773ad2a1346</checksum>
<timestamp>1359980022</timestamp>
</data>
</repomd>
now in the directory containing your rpm's
createrepo -g repodata/repomd.xml `pwd`
you should get something like this
- Code: Select all
[host@mydoman.com]# createrepo -g repodata/repomd.xml `pwd`
1/1 - xdg-utils-1.0.2-2.el5.rf.noarch.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Now on the client system, ie the system you want to use yum on
create a file in /etc/yum.repos.d/
call it what you want it does not matter. but must end in .repo
so myrepo.repo would be a good one.
the file needs to have a heading, name, enabled, and url
- Code: Select all
[base]
name = Base Distribution
enabled = 1
baseurl = http://myyumserver.domain.net/repos/myrepo
I think ive covered everything there, anyone let me know if that dont work and ill amend it.
regards peter