rpm scriptlet ordering for install/remove/upgrade using yum

前端 未结 3 2145
鱼传尺愫
鱼传尺愫 2021-02-09 06:32

I\'m working on a bug in our rpm scriptlets which is probably originating from order in which our scriptlets are executed during package install/removal/upgrade. We are using yu

相关标签:
3条回答
  • 2021-02-09 06:42

    If you are installing two different packages at once (e.g. primary, secondary ), where one depends on the other (secondary requires primary), the order is:

    • %pretrans of primary
    • %pretrans of secondary
    • %pre of primary
    • installation of primary
    • %post of primary
    • %pre of secondary
    • installation of secondary
    • %post of secondary
    • %posttrans of primary
    • %posttrans of secondary

    When removing these packages at once, the order is:

    • %preun of secondary
    • removal of secondary
    • %postun of secondary
    • %preun of primary
    • removal of primary
    • $postun of primary
    0 讨论(0)
  • 2021-02-09 07:00

    Package order for installing a single package for the first time:

    • %pretrans of new package
    • %pre of new package
    • package install
    • %post of new package
    • %posttrans of new package

    Package order for removing a single package:

    • %preun of old package
    • removal of old package
    • %postun of old package
    0 讨论(0)
  • 2021-02-09 07:02

    Your educated guess is correct - only the steps that are relevant.

    0 讨论(0)
提交回复
热议问题