Erwin de Beus wrote:
rpm has an update mode (in newer versions it's called freshen). When used it will only update the package if it's already installed and the installed version is older than the update. I use the following to update my SuSE 7.0 machines:
#!/bin/bash echo rebuild rpm database .... # I hate broken rpm databases ... rpm --rebuilddb echo "Now updating your system" find . -name "*.i386.rpm" -exec rpm -v -h --freshen {} \; SuSEconfig
This is run from the directory where the rpm's are located. This directory can contain subdirectories with rpm's.
Oh yes, you're absolutely right; this is exactly what I need! And it's even in the manual page (RTFM: Read The Fine Manual), how could I have missed it: Maintaining installed packages: rpm [--install] [installoptions] [package_file]+ rpm [--freshen|-F] [installoptions] [package_file]+ rpm [--uninstall|-e] [uninstalloptions] [package]+ rpm [--verify|-V] [verifyoptions] [package]+ Thanks a lot! Paul.