Online Update, automatic mirroring of relevant packages

Hi List, since YaST online update feature has been discusse recently, I thought this could be of interest. Because of an unstable modem dialup at home I once wrote a dirty hack to check which packages I would need and download them first. Couple of weeks ago Peter Nixon asked the list about howto build a lookup table of installed packages for a whole network using snmpwalk, which inspired me. So here is amorsu, automatic mirroring of relevant suse updates. It uses ssh with dedicated user 'rpmqa', key authorization and forced command (cat /etc/SuSE-release && rpm -qa) on all the machines to build a plain text db on the mirroring machine. This is reorganized package wise, so now I have a lookup table for each package, which version is on which host in my network. If the respective file does not exist, none of my hosts has the package. Then it mirrors for each of the identified architectures/releases only the patches (ok, patches.cont) dirs. These description files are parsed in a very simple manner, so far it works (-- keep the structure, SuSE!). For each available update package mentioned in the descriptions, lookup the package: do I have it installed somewhere? outdated version? yes? ok, mirror that package, too. And --checksig, of course. Generates a report of which packages have been donwloaded and which hosts have to be updated for which packages. for these hosts now I can point either rpm or yast2 online_update to the local mirror. has to be tested by someone else but me to verify that it actually works... any volunteers? I'd like to send the perl script and some setup instructions in private mail, 'tis ~450 lines. Thanks lars

On Sunday 03 February 2002 12:53, l.g.e@web.de wrote:
since YaST online update feature has been discusse recently, I thought this could be of interest.
Because of an unstable modem dialup at home I once wrote a dirty hack to
has to be tested by someone else but me to verify that it actually works... any volunteers?
I'd like to send the perl script and some setup instructions in private mail, 'tis ~450 lines.
Count me in! I have modem dialup, and a second machine with pristine 7.3 on it, YOU never been run, so it should be a good test. You'll have to give me some time to read through your code though, if it's too unreadable or unclear to me, I wouldn't be running it. Been thinking about YOU and wondering why it's patch download is so slow, it ran so much faster when I mirrored the whole updates directory locally. Rob

On Sun, Feb 03, 2002 at 02:34:19PM +0000, Robert Davies wrote:
On Sunday 03 February 2002 12:53, l.g.e@web.de wrote:
since YaST online update feature has been discusse recently, I thought this could be of interest.
Because of an unstable modem dialup at home I once wrote a dirty hack to
has to be tested by someone else but me to verify that it actually works... any volunteers?
I'd like to send the perl script and some setup instructions in private mail, 'tis ~450 lines.
Count me in! I have modem dialup, and a second machine with pristine 7.3 on it, YOU never been run, so it should be a good test.
You'll have to give me some time to read through your code though, if it's too unreadable or unclear to me, I wouldn't be running it.
Been thinking about YOU and wondering why it's patch download is so slow, it ran so much faster when I mirrored the whole updates directory locally.
Rob
I'd like to give it whirl as well. I've got 3 boxes with 7.1 on them. They are now quite independent configuration/package wise. I use one box as my internet gateway. Connection is 56K dial-up. I've been using wget to mirror some of the 7.1 update directories, and then have my own script which I run on each box that looks through the mirrored stuff for updates that pertain to that box and emails me the list. It uses filenames on the rpm files, and the 'rpm -q -i <package>' output to determine if the mirror is a new release or new version. This generally works for me. I started this a few months back. However, it took me a good full weekend online to get good mirror base to work from. Brian ..
participants (3)
-
Brian L. Shaver
-
l.g.e@web.de
-
Robert Davies