-   Fedora (
-   -   Setting up YUM to update from local mirror (

klnasveschuk 04-20-2005 06:34 AM

Setting up YUM to update from local mirror
I've had a lot of success using Yum to hit the default sites in yum.conf and update from there. If I have many machines that I want to update I would rather not generate so much traffice over the Internet, I would like to set up a mirror that is on my internal network and use yum to update from that internal server.

First, is this a worth while trying to do and secondly how would I go about doing this? Anyone else doing it this way?

Kent N

TuxFreak 04-20-2005 09:40 AM

There's this guide regarding Up2date, but you should be able to apply the same general setup for yum.

WhatsHisName 04-20-2005 11:19 PM

Downloading update rpms once makes a lot more sense than doing it multiple times.

As for making a local mirror, itís trivial to collect the content by using rsync -a. Just find a fedora mirror source you like and test whether it has a rsync server by using a command something like:


If a rsync server is present at that address (and you may have to guess a few times to get the right address), you will get a listing of the content available. There are also rsync mirrors in the fedora mirror list.

Locally, create a folder structure within /var/ftp/pub to support a local ftp mirror and then schedule nightly cron jobs to check for new content. Like magic, new content just appears locally each morning.

But be careful about what you mirror, because you can wind up with 100GB of content without even trying. Mainly, you should locally mirror the updates and use the original mirror sources for the initial distributions.

But why stop there? Once you have the yum repository content, making a local apt repository is trivial. Just create the appropriate local apt folder structure under /var/ftp/pub and use hard links to create the content without using up a lot of extra disk space. Then just generate the database listings and you are ready to go. As with yum, all of this can be done using cron jobs, so that there is no manual intervention.

klnasveschuk 04-21-2005 07:11 AM

Setting up YUM updates from local mirror
Hey thanks for both posts. I didn't realize that some of the mirror sites supported rsync. I think I can take it from here, I am very familiar with rsync.

Kent N

All times are GMT -5. The time now is 12:18 AM.