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

Detecting install/upgrade in %preun and %postun



Platform: Intel PIII, RedHat 7.2, rpm-4.0.3-1.03

Is it possible to detect whether a package is being upgraded or
installed inside of the %preun or %postun script(lets)?

I'm doing "chkconfig --add" in %post, and would like the RPM to clean
up its symlinks by doing "chkconfig --del" in %preun when the package
is removed with "rpm -e", but not when a package is upgraded with "rpm
-U".

Thanx!


- Steinar






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