> -----Original Message----- > From: rpm-list-bounces@xxxxxxxxxx > [mailto:rpm-list-bounces@xxxxxxxxxx]On > Behalf Of Enrique Perez-Terron > Sent: Thursday, June 17, 2004 1:51 PM > To: rpm-list@xxxxxxxxxx > Subject: Improved functionality for kernel rpms? > > > 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? > > What would be the best way of achieving this? > > In what way should kernel rpms be 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? > > The pre-uninstall script perhaps also should create a /etc/init.d/rc* > script that will tell the system administrator that he now can remove > the old rpm with the command rpm -e .... This script would check the > version of the running kernel and only do its things if the new kernel > is running. The telling could be done by mailing root, or by logging a > suitable message with syslog. > > This requires that the pre-uninstall script can obtain the relevant > parameters from the rpm command that runs it. Is this possible? > > What do you think? > > Regards, > Enrique Seems you are trying to code around a lack of common sense. People will only do -Uvh until it bites them, then never again... It sucks, but sometimes the School of Hard Knocks is the best way to get a lasting education. -- Thomas Cameron, RHCE, CNE, MCSE, MCT Assistant Vice President Linux Design and Engineering Bank of America (972) 997-9641 The opinions expressed in this message are mine alone and do not necessarily reflect the opinions of my employer, Bank of America. _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list