> Would it be possible to extend rpm with an option to be used in kernel > rpms, so that when people (mistakenly) run "rpm -Uvh kernel-2.6...", > the old kernel rpm is not uninstalled? > I am thinking about a pre-uninstall script that checks how rpm has been > invoked, and if it is by -U, it somehow cancels the uninstall. Is this > possible today without first extending rpm? It seems like this is not possible. Perhaps this solution will do instead: %preun if [ $1 -lt 2 ]; then echo You should always keep at least two kernels installed! echo Aborting uninstall of package %{name}-%{version}-%{release} echo exit 64 fi -- Peter Åstrand Chief Developer Cendio www.thinlinc.com Teknikringen 3 www.cendio.se 583 30 Linköping Phone: +46-13-21 46 00 _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list