Re: Improved functionality for kernel rpms?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2004-06-18 at 11:00, Peter Astrand wrote:
> > 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

What is $1, er, how is it instantiated?

>     echo You should always keep at least two kernels installed!
>     echo Aborting uninstall of package %{name}-%{version}-%{release}
>     echo
>     exit 64
> fi

Regards,
Enrique


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux