Create A Yum Repository
April 12th, 2007
- Build your RPM packages. Refer to “Maximum RPM”. Assume you put your RPM packages in /path/to/RPMS/i386/*.rpm
- Create a yum repository.
- cd /path/to/RPMS/..
- createrepo RPMS
- (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.conf file as following:
[main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log [my-repository] name = My Repository baseurl=http://localhost/RPMS gpgcheck=0
Here we go! Invoke “yum list” and you should able to see all RPM packages you built.
blog comments powered by Disqus



