Creating a YUM repo

From Pabut
Jump to: navigation, search

Creating a repo

  1. install the create repo package
  2. run createrepo
    1. createrepo -o some-dir /path/to/rpms
  3. move repodata to /path/to/rpms/repodata
  4. 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