[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RPM upgrade script
Eliyahu Skoczylas <eliyahu@photonet.com> wrote:
|---------- 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
Just to show how trivial this is for a Debian system - you just go to
"dselect", select "update", "install" (and "remove" if some package
becomes obsolete). And "quit".
--Amos
--Amos Shapira | "Of course Australia was marked for
133 Shlomo Ben-Yosef st. | glory, for its people had been chosen
Jerusalem 93 805 | by the finest judges in England."
ISRAEL amos@gezernet.co.il | -- Anonymous