Multiple Updates

Stephen Boddy stephen.boddy at btinternet.com
Sun Aug 13 11:18:47 PDT 2006


On Sunday 13 August 2006 06:11, Ron Wilson wrote:
> I have several 10.1 boxes to update with Smart. Is it possible to only
> update one and then point the others at the first box and update from it
> across the network?
> If so how would I set it up.

Well I haven't actually done an update from a second machine, but you should 
be able to export the packages folder over nfs. For example, 
in /var/lib/smart I have adjusted packages:

lrwxrwxrwx 1 root root      50 Jul 17 19:20 
packages -> /mnt/store/software/suse/10.1/smart-package-cache/

Then you export /mnt/store/software/suse/10.1/smart-package-cache/ making sure 
not to squash root. Also ensure that all machines using the cache are "smart 
config --set remove-packages=False"

There are better settings security wise, but you might have fun and games 
getting all machines writing and reading all the available packages without 
problems.

Now if one system has already downloaded a file, it should be available to 
all.

You'd proabably want to set up a cron to remove older files after an 
appropriate period. As an example I follow the compiz-quinn cvs builds, and 
I've got 13 rpm's of that package alone in my cache, so you might do:

find /mnt/store/software/suse/10.1/smart-package-cache/ -mtime +14 -delete

giving additional machines two weeks to get updated before packages are 
deleted and need to be re-downloaded.
-- 
Steve Boddy



More information about the Smart mailing list