Hello!
I need to download updates and install it on several servers. I don't want to mirror all packages just because traffic is expensive here. We use apt-cacher as specialized proxy for our ubuntu desktops, so we download packages only once. Is there similar tool for yum?
Dmitry Melekhov ha scritto:
Hello!
I need to download updates and install it on several servers. I don't want to mirror all packages just because traffic is expensive here. We use apt-cacher as specialized proxy for our ubuntu desktops, so we download packages only once. Is there similar tool for yum?
Hi, I was looking for the same thing with no luck last week... I'm not a programmer, but I believe that apt-cacher is written in perl, and I guess that someone with programming skills could adapt the program to work with yum...
Also I tried with squid, but as expected, all the mirror's play make it useless.
Bye
Lorenzo
You can download all the files in one server that then use .rpms with something like:
http://wiki.linux.duke.edu/YumFaq#Q11
or
http://dag.wieers.com/rpm/packages/createrepo/
HTH Oliver
Oliver Schulze L. ha scritto:
You can download all the files in one server that then use .rpms with something like:
http://wiki.linux.duke.edu/YumFaq#Q11
or
http://dag.wieers.com/rpm/packages/createrepo/
HTH Oliver
Sure, but yu'll end downloading a lot of unneeded rpms.. (for example foreign languages, PAE kernel, kernel-devel and so on...) which may be worse than downloading the same rpm 3 or 4 times!
Regards
Lorenzo
Lorenzo spake the following on 5/21/2007 10:03 AM:
Oliver Schulze L. ha scritto:
You can download all the files in one server that then use .rpms with something like:
http://wiki.linux.duke.edu/YumFaq#Q11
or
http://dag.wieers.com/rpm/packages/createrepo/
HTH Oliver
Sure, but yu'll end downloading a lot of unneeded rpms.. (for example foreign languages, PAE kernel, kernel-devel and so on...) which may be worse than downloading the same rpm 3 or 4 times!
Regards
Lorenzo
I have never tried it, but maybe you could rsync the yum cache from one machine to another.
Scott Silva ha scritto:
Lorenzo spake the following on 5/21/2007 10:03 AM:
Oliver Schulze L. ha scritto:
You can download all the files in one server that then use .rpms with something like:
http://wiki.linux.duke.edu/YumFaq#Q11
or
http://dag.wieers.com/rpm/packages/createrepo/
HTH Oliver
Sure, but yu'll end downloading a lot of unneeded rpms.. (for example foreign languages, PAE kernel, kernel-devel and so on...) which may be worse than downloading the same rpm 3 or 4 times!
Regards
Lorenzo
I have never tried it, but maybe you could rsync the yum cache from one machine to another.
Yes, I usually only copy the rpms so there are no problems with caches and so on... but it's... ugly? :)
Lorenzo пишет:
I have never tried it, but maybe you could rsync the yum cache from one machine to another.
Yes, I usually only copy the rpms so there are no problems with caches and so on... but it's... ugly? :)
This is too hard- if you have more that 2-3 machines :-( apt-cacher works very good for our ubuntu desktops, so why there is no something like this for yum?
Dmitry Melekhov ha scritto:
Lorenzo пишет:
I have never tried it, but maybe you could rsync the yum cache from one machine to another.
Yes, I usually only copy the rpms so there are no problems with caches and so on... but it's... ugly? :)
This is too hard- if you have more that 2-3 machines :-( apt-cacher works very good for our ubuntu desktops, so why there is no something like this for yum?
I don't have programming skills, but I can do a lot of testing (I have 4 real servers running CentOS 5 and a few virtual installation); I will be happy to help on such project :)
Scott Silva wrote:
Lorenzo spake the following on 5/21/2007 10:03 AM:
Oliver Schulze L. ha scritto:
You can download all the files in one server that then use .rpms with something like:
http://wiki.linux.duke.edu/YumFaq#Q11
or
http://dag.wieers.com/rpm/packages/createrepo/
HTH Oliver
Sure, but yu'll end downloading a lot of unneeded rpms.. (for example foreign languages, PAE kernel, kernel-devel and so on...) which may be worse than downloading the same rpm 3 or 4 times!
Regards
Lorenzo
I have never tried it, but maybe you could rsync the yum cache from one machine to another.
* Set up an mrepo server, with only a local repository. * Use yum to update one machine. * Copy the packages from this machine to the desired local repository, * Regenerate yum repo data with merepo and configure all computers' yum to use the mrepo repository. * I'm sure that yum can do download only and then with a perl or bash script you can have the mrepo local repository synced.
Jean
Oliver Schulze L. пишет:
You can download all the files in one server that then use .rpms with something like:
I don't want (need) download all files. btw, traffic cost is too high here :-(
Do something like the following... I know it's crude, but...
If you're only looking to get updates to installed packages, share some ssh keys, run this on your boxes, nab the duplicates then download the files from somewhere.
for file in $(rpm -qa --queryformat="%{NAME}\n" | sort); do echo "rsync -avg rsync://server.com/os/arch/rpms/${file}* /opt/mrepo-data/centos4-i386/dag/"; done
I would then have mrepo setup to serve up these packages ( not to download it's own ) to provide easy access to them... I kind of do the same thing for DAG's repo and a XEN repo...
J.J.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Dmitry Melekhov Sent: Tuesday, May 22, 2007 3:11 AM To: CentOS mailing list Subject: Re: [CentOS] something like apt-cacher for yum
Oliver Schulze L. пишет:
You can download all the files in one server that then use
.rpms with
something like:
I don't want (need) download all files. btw, traffic cost is too high here :-(
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
!DSPAM:500,4652e16948311804284693!
No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.6/814 - Release Date: 5/21/2007 2:01 PM
No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.6/814 - Release Date: 5/21/2007 2:01 PM