Re: Yum cache for a cluster of clients
Going a bit off the deep end, here's another suggestion: There are other software update managers besides yum in the world, and at this point I want to talk about URPMI - the Mandrive update manager. URPMI can be installed on other operating systems then Mandrive and I've had success using it on CentOS 4 and some Fedora Core (can't remember). URPMI had a few interesting features that do not exist (or are hard to duplicate) in the competitors, one which is relevant to this discussion is the remote update capability: With URPMI installed on all the target machines, you need to only configure installation sources on one machine and push updates remotely from this machine to all the others. One way that I've used it is to have a local machine in the office that is easy to access and has the correct repositories configured, and whenever you need to push updates (lets say - with a cron job) you use it to sync the other machines. If you ever want to change your software repositories configuration - you only change it in one location. The main downside for this is that you can only use repositories that support the URPMI metadata format. It is easy to set up a repository that supports both YUM and URPMI, but in Tom's case if he's going to set up a local CentOS repository then that is going to be a solution of its own without the URPMI setup. On Tue, 2008-01-29 at 08:26 +0200, Lior Okman wrote: My suggestion is to install a caching http proxy (e.g. squid) somewhere on your network, and make yum go through it. As long as you all of your CentOS hosts use the same mirror (and not a different mirror each time), the caching http proxy will return files from its cache. IIRC, you need to change the yum.conf file to include the proxy configuration option, and modify the repositories definition (in /etc/yum.repos.d/) so that the repositories use the baseurl setting, instead of the mirrorlist setting. Lior Tom Rosenfeld wrote: Hi Guys, I assume there is a simple answer to this. How do I get all of my linux workstation (all running the same version of CentOS 4) to use the same yum cache? Thanks, -tom 054-244-8025 = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Oded = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Yum cache for a cluster of clients
Hi Guys, I assume there is a simple answer to this. How do I get all of my linux workstation (all running the same version of CentOS 4) to use the same yum cache? Thanks, -tom 054-244-8025
Re: Yum cache for a cluster of clients
Hi Tom, My suggestion would be something like this: 1. On one of your machines, set-up a YUM server with all the packages. See here how to do this: http://sial.org/howto/yum/ 2. Point your workstations (instructions on the same page URL) to that server 3. Make sure that server download the packages either via cron or other methods. Good luck, Hetz On Mon, Jan 28, 2008 at 1:00 PM, Tom Rosenfeld [EMAIL PROTECTED] wrote: Hi Guys, I assume there is a simple answer to this. How do I get all of my linux workstation (all running the same version of CentOS 4) to use the same yum cache? Thanks, -tom 054-244-8025 -- Skepticism is the lazy person's default position. my blog (hebrew): http://benhamo.org = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Yum cache for a cluster of clients
Hi Ehud, This sounds great and simple! Can I use this to combine the existing cache from several machines, or will it only work if I do it from scratch? Thanks, -tom On Jan 28, 2008 5:43 PM, Ehud Karni [EMAIL PROTECTED] wrote: On Mon, 28 Jan 2008 13:00:06 Tom Rosenfeld wrote: Hi Guys, I assume there is a simple answer to this. How do I get all of my linux workstation (all running the same version of CentOS 4) to use the same yum cache? Hetz gave you the better, school solution. I have a simpler solution that does not require you to build a yum server. What I do: 1. In /etc/yum.conf change the keepcache option to: keepcache=1 2. Make the cache common to all machine (on an NFS disk) You can do it by changing the cachedir line in /etc/yum.conf to point to the NFS directory, or you can symlink /var/cache/yum to the NFS directory (I prefer this way, as this is the standard place for the cached files). Now, you can run the update on each machine whenever it is convenient the headers and RPMs will be loaded only once. One drawback (?) is the filling of the cache with old packages, You'll have to clear it yourself. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry -- -tom 054-244-8025
Re: Yum cache for a cluster of clients
I am using Centos 4 and keepcache does not seem to exist yet. It looks like it always keeps the cache. On Jan 28, 2008 7:36 PM, Ehud Karni [EMAIL PROTECTED] wrote: On Mon, 28 Jan 2008 19:12:34 Tom Rosenfeld wrote: Hi Ehud, This sounds great and simple! Can I use this to combine the existing cache from several machines, or will it only work if I do it from scratch? Yes, you can. Just copy all the sub directories from /var/cache/yum to a common directory (this will merge all your kept headers and RPMs). After that symlink this directory to /var/cache/yum on each computer. I doubt that you have much headers and RPMs saved (unless you changed your keepcache to 1 long ago). Ehud -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry -- -tom 054-244-8025
Re: Yum cache for a cluster of clients
On Mon, 28 Jan 2008 13:00:06 Tom Rosenfeld wrote: Hi Guys, I assume there is a simple answer to this. How do I get all of my linux workstation (all running the same version of CentOS 4) to use the same yum cache? Hetz gave you the better, school solution. I have a simpler solution that does not require you to build a yum server. What I do: 1. In /etc/yum.conf change the keepcache option to: keepcache=1 2. Make the cache common to all machine (on an NFS disk) You can do it by changing the cachedir line in /etc/yum.conf to point to the NFS directory, or you can symlink /var/cache/yum to the NFS directory (I prefer this way, as this is the standard place for the cached files). Now, you can run the update on each machine whenever it is convenient the headers and RPMs will be loaded only once. One drawback (?) is the filling of the cache with old packages, You'll have to clear it yourself. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Yum cache for a cluster of clients
On Mon, 28 Jan 2008 19:12:34 Tom Rosenfeld wrote: Hi Ehud, This sounds great and simple! Can I use this to combine the existing cache from several machines, or will it only work if I do it from scratch? Yes, you can. Just copy all the sub directories from /var/cache/yum to a common directory (this will merge all your kept headers and RPMs). After that symlink this directory to /var/cache/yum on each computer. I doubt that you have much headers and RPMs saved (unless you changed your keepcache to 1 long ago). Ehud -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Yum cache for a cluster of clients
My suggestion is to install a caching http proxy (e.g. squid) somewhere on your network, and make yum go through it. As long as you all of your CentOS hosts use the same mirror (and not a different mirror each time), the caching http proxy will return files from its cache. IIRC, you need to change the yum.conf file to include the proxy configuration option, and modify the repositories definition (in /etc/yum.repos.d/) so that the repositories use the baseurl setting, instead of the mirrorlist setting. Lior Tom Rosenfeld wrote: Hi Guys, I assume there is a simple answer to this. How do I get all of my linux workstation (all running the same version of CentOS 4) to use the same yum cache? Thanks, -tom 054-244-8025 = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]