From Fedora Project Wiki

Revision as of 20:28, 30 July 2010 by Mmcgrath (talk | contribs)

Fedora People Repos

Users looking to create a repo at should follow the directions below. These repos should only be used for packages that are intended for end-user non-transient use. For example:

  • Bring a major release version to an older Fedora release
  • Testing out new software before putting it in rawhide
  • Alternate packages already available (different compile options for example)

Things it should _not_ be used for include:

Create repo

Create Repo Layout

Log in to and run:

$ new_repo

And follow the directions.

Local Repo

You must create all repodata locally on your workstation, not on If you compiled via koji --scratch builds, download those builds and follow the example below (nagios, nagios-debuginfo and nagios-devel had already been downloaded to ~/)

$ mkdir /tmp/myrepo
$ cd /tmp/myrepo
$ mkdir i386 x86_64 SRPMS
$ cp ~/nagios*3.1.2-2.fc12.i386.rpm ./i386
$ cp ~/nagios*3.1.2-2.fc12.x86_64.rpm ./x86_64
$ cp ~/nagios-3.1.2-2.fc12.src.rpm ./SRPMS
$ for dir in *; do cd $dir; createrepo ./; cd ..; done

You now have 3 local yum repos in your i386, x86_64 and SRPMS directory

It is recommended to use a dist tag when creating rpms to avoid confusion

Upload Repos

Note: to complete this step you need the REPO_PATH from the "Create Repo Layout" above.

$ rsync -avz *$REPO_PATH

Accessing new repo

Your new repo should now be listed at:

A cron job will be run regularly to add it to the list of known repos at:

Delete repo

To delete a path, just use REPO_PATH from above and remove it:

rm -rf /srv/repo/mmcgrath/nagios