May 22, 2017

Create Fedora 13 local Yum Repository

yumfedora Fedora 13 (Goddard) is out and 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.

Fedora 13 (Goddard) release notes

This How To will show you a simple yet effective way to create your local Fedora 13 YUM repository and client.

TIP: Distribute your Fedora YUM configuration via your Puppet Master

Preliminary Note:

I am using two Fedora 13 installations in this tutorial with server1.example.co.za configured with Apache httpd

* server1.example.co.za (IP 10.0.0.100): Fedora 13 YUM Repository and httpd server
* server2.example.co.za (IP 10.0.0.102): Fedora 13 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 – http://mirrors.fedoraproject.org/publiclist

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.

  • Katyanigam.18

    Loaded plugins: presto, refresh-packagekit
    http://server1.example.co.za/fedora/13/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 – “”
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

    d above error is being shown…!!!

  • Anonymous

    You need to change sever1.example.co.za to a FQDN on your network. Example: yourserver.yournetwork.com or use and IP address instead.