- Build yourRPMpackages. Refer to “MaximumRPM”. Assume you put yourRPMpackages in /path/to/RPMS/i386/*.rpm
- Create a yum repository.
- cd /path/to/RPMS/..
- createrepoRPMS
- (Now there should be a /path/to/RPMS/repodata directory.)
- Publish your repository. I wanna publish it via Apache, so I do following:
- ln -s /path/to/RPMS /var/www/RPMS
- (Browse http://localhost/RPMS, there should be “repodata” and “i386”directories.)
- Enable your repository in client machine. Edit/etc/yum.conffile as following:
[main]cachedir=/var/cache/yumdebuglevel=2logfile=/var/log/yum.log[my-repository]name = My Repositorybaseurl=http://localhost/RPMSgpgcheck=0
Here we go! Invoke “yum list” and you should able to see allRPMpackages you built.
