Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-20-2005, 06:34 AM
|
#1
|
Member
Registered: Jun 2003
Location: Plymouth, Massachusetts
Distribution: CentOS, Slackware, Redhat, Ubuntu
Posts: 52
Rep:
|
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
|
|
|
04-20-2005, 09:40 AM
|
#2
|
Member
Registered: Oct 2004
Posts: 304
Rep:
|
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
|
|
|
04-20-2005, 11:19 PM
|
#3
|
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151
Rep:
|
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.
|
|
|
04-21-2005, 07:11 AM
|
#4
|
Member
Registered: Jun 2003
Location: Plymouth, Massachusetts
Distribution: CentOS, Slackware, Redhat, Ubuntu
Posts: 52
Original Poster
Rep:
|
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 03:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|