Creating a YUM repo
Jump to navigation
Jump to search
Creating a repo
- install the create repo package
- run createrepo
- createrepo -o some-dir /path/to/rpms
- move repodata to /path/to/rpms/repodata
- on target create my-repo.repo
example:
[208873kss2001]
name=Red Hat Enterprise Linux 5 update 1
baseurl=http://10.18.11.24/rhes50u1/Server/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
run:
yum clean all
To wipe out any lingering cache