[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RPM upgrade script
I thought that this would be of general interest....
Eliyahu
---------- Forwarded message ----------
Date: 21 Jan 1998 22:08:51 +0100
From: Benny Amorsen <amorsen@sscnet.com>
To: Steffen Grunewald <steffen@gfz-potsdam.de>
Cc: Tom Dyas <tdyas@romulus.rutgers.edu>, hschafer@igc.phys.chem.ethz.ch,
sparclinux@vger.rutgers.edu
Subject: Re: lpr, RedHat 4.2
>>>>> "SG" == Steffen Grunewald <steffen@gfz-potsdam.de> writes:
SG> BTW, long time overdue : a script to upgrade _only already
SG> installed_ packages from a filesystem containing upgrades - which
SG> also analyzes package dependencies and orders the upgrades so all
SG> dependencies are solved in the right manner. I've been looking for
SG> that one for a long time.
If you have the CPU time to spare...: This version is for x86, but
that is not exactly hard to fix:
rpm -q -a | sed 's#-[^-]*-[0-9]*$##' | sort | xargs -i## find . \
-regex './##-[^-]*-[0-9]*.i386.rpm$' -print0 | xargs -0 rpm -v -U
It is not optimized at all. It has a few problems including trying to
upgrade to older packages. But hey, it works for me...
Benny