Creating a Local Fedora 12 Yum Repository

yumfedora Fedora 12 has just been released so it’s time to add it to our arsenal of local yum repositories. We all know the importance of creating a local YUM repository on your LAN. Not only do you decrease the time it takes to download and install updates, you also decrease bandwidth usage.

This How To will show you a simple yet effective way of setting up your local Fedora 12 YUM repository and client.

TIP: Distribute your Fedora YUM configuration via your Puppet Master

Preliminary Note:

I am using two Fedora 12 installations in this tutorial with configured with Apache httpd

* (IP Fedora 12 YUM Repository and httpd server
* (IP Fedora 12 YUM client

Configure Fedora YUM repo and httpd server as follows:

Create the following Directories:

Create a bash script that will rsync your local YUM Repository server with your local YUM mirror (Make sure the mirror supports rsync).

Fedora Mirror list –

Add the bash script to your crontab to update your local repository every night (01H00 in this case)

Configure Fedora YUM client servers as follows:

Rename all existing yum repositories from *.repo to *.old

Test your setup by running a yum update on your client machine.