Create your local Repo
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.
Trackback URL for this post:
http://www.go2linux.org/trackback/1
If you like this article, subscribe to our full rss
Please post your question in our forum and use comments only to leave your comments about the article, thanks.













I have gone through the
I have gone through the above article but i was not able to understand.Can i have some more information on this it would be helpful for me.
Synjones
Auto Auctions
Sure, can you tell me what
Sure, can you tell me what part you do not understand?
Guillermo Garron
I too think the article
I too think the article above is a bit sketchy on details. I see it provides commands for something repo-related, creating one..... but what IS a repo? Why would I want to do this? What benefits are achieved? What distributions of Linux is this applicable to? What lessons learned has the original author gone through---and to please include them here as well. Basically provide answers to the general standard questions of what, why, how, when and where. Adding 10 or more paragraphs of meaty details is what would make this an invaluable asset, instead of simply a quickly-clicked-through page. Thanks.
Post new comment