LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-20-2005, 06:34 AM   #1
klnasveschuk
Member
 
Registered: Jun 2003
Location: Plymouth, Massachusetts
Distribution: CentOS, Slackware, Redhat, Ubuntu
Posts: 52

Rep: Reputation: 15
Setting up YUM to update from local mirror


Hello,
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
 
Old 04-20-2005, 09:40 AM   #2
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

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

http://www.phoronix.com/vr.php?view=2335
 
Old 04-20-2005, 11:19 PM   #3
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
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:

rsync ftp.somewhere.edu::

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.
 
Old 04-21-2005, 07:11 AM   #4
klnasveschuk
Member
 
Registered: Jun 2003
Location: Plymouth, Massachusetts
Distribution: CentOS, Slackware, Redhat, Ubuntu
Posts: 52

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-02-2010 11:42 PM
Local mirror for Clamav razametal Linux - Software 1 02-03-2005 08:22 AM
Tutorial: Adding Mirror Entries for YUM and FC2 bgavin Linux - Newbie 1 10-26-2004 08:50 AM
Fast Yum Mirror Settings For Yum ( RH9 ) fortezza Red Hat 1 06-11-2004 04:24 PM
Creating Local Update Mirror wyohman Mandriva 9 12-28-2003 08:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration