Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

Create your local Repo

Date: 2007-01-29 00:00:00 -0400

If you have a network of Linux Fedora, maybe you want to save bandwidth by creating your own repo on your local network. Here is how.

Look for your favorite Fedora mirror.

In this case i will use. http://mirror.linux.duke.edu/pub/fedora/linux/core/updates/6/i386/

Now, you have chosen your favorite download site, go to your local server and create a directory where to store the .rpm

Now use the rsync program

rsync rsync://mirror.linux.duke.edu/pub/fedora/linux/core/updates/6/i386/*.rpm /home/repo/rpms

This may take a while, so grab your cup of coffe.

You can now create your repo with this command

createrepo /home/repo/rpms

Your repo is created, you only need now to create your local.repo file and put it in /etc/yum.repo.d

[local]
name=Fedora $releasever - $basearch - Updates
baseurl=http://your.server.ip/repo
enable=1
gpgcheck=0

Your are done.

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.