Re: order of processing for rpm -Uhv (?)

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew,

I think this may help you:

~   Packaging software with RPM, Part 3
~   Running scripts at install and uninstall
~   http://www-106.ibm.com/developerworks/library/l-rpm3.html

Regards,
jpo

Cress, Andrew R wrote:
| rpm version used: rpm-4.2.1-4.2 (with RH EL3).
|
| I have an rpm package that works fine with rpm -e / rpm -i, but rpm -Uhv
| shows results in the following order, which seems illogical to me.
| %pre    (new ver)
| %post   (new ver)
| %preun  (old ver)
| %postun (old ver)
|
| This obviously causes problems for me because the postun does some
| cleanup of files that the post-install conditionally set up.  Can
| someone help me understand why rpm -Uhv isn't ordered like this:
| %preun  (old ver)
| %postun (old ver)
| %pre    (new ver)
| %post   (new ver)
|
| Maybe there is a later version of rpm that handles this differently, but
| I would like to find a way to handle both rpm -i and rpm -U cleanly with
| rpm-4.2 and later.
|
| Andy

- --
José Pedro Oliveira
Departamento de Informática, Universidade do Minho

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCAkjal0metZG9hRsRAo2sAKDdc1IhICONJG5j3SYTKzX73Jx2sgCg1w9X
o2Bh15LkqycIKEgIupkB+DM=
=8tBe
-----END PGP SIGNATURE-----

_______________________________________________
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