Re: Skip steps in uninstall scripts if just an update

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

 



On Fri, Jun 17, 2011 at 02:15:46PM -0400, Daniel Neuberger wrote:

> Is there any way to tell in your uninstall scripts whether the RPM is
> truly being uninstalled or just updated?

When the RPM is being updated, $1 of the script is 1.
When the RPM is really uninstalled, $1 of the script is 0.

(This is the simplified explanation, when more instances of a package
can be installed, like "kernel", the values are different...)

-- 
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/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