up2date from rawhide

Vanco, Donald VANCOD at PIOS.com
Tue Aug 19 19:18:00 UTC 2003


Thiago Vinhas de Moraes wrote:
> Dude! I´ve been using RH since version 3.0, and I really didn´t know
> noted the -F option of rpm.
> Thanks a lot!
	Then this should make your head explode:

If you do decide NOT to use rsync (and it's ability to control revision) you
want to insure that there's no duplicate RPMs to mess things up.  This works
for me:
(NOTE:  cut-n-paste at your own risk!; pdksh assumed here)

#!/bin/ksh
ls | sed 's/-[0-9]*\..*//g' | sort > /tmp/lsdup.all.$$
ls | sed 's/-[0-9]*\..*//g' | sort | uniq > /tmp/lsdup.uniq.$$
diff -y --suppress-common-lines /tmp/lsdup.all.$$ /tmp/lsdup.uniq.$$ |\
tr -d "[:blank:]\<" | sort | uniq
rm -f /tmp/lsdup.all.$$ /tmp/lsdup.uniq.$$

	...this is from a script from IBM called "lsdup"

..and you might also want to NOT Freshen kernel RPMs - but rather, Install,
verify functional, then Erase old kernels:

so instead of "rpm -Fvh *.rpm" do:
rpm -Fvh $(ls *.rpm | egrep -v '^(kernel-)')

...and them manually do an -ivh on kernels as desired...

You can check on installed kernels with:
rpm -q kernel kernel-smp --queryformat
"%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n"
	...adding kernel-enterprise and/or kernel-bigmem as distro
dictates...

Cheers -
Don





More information about the test mailing list