Creating a YUM repo

From Pabut
Revision as of 11:44, 14 January 2015 by Pabut (talk | contribs) (Created page with "== 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-re...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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