使用yum进行安装/删除/升级的rpm scriptlet订购 [英] rpm scriptlet ordering for install/remove/upgrade using yum

查看:118
本文介绍了使用yum进行安装/删除/升级的rpm scriptlet订购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理rpm脚本中的一个错误,该错误可能源自在安装/删除/升级软件包期间执行我们的脚本的顺序.我们在Redhat Enterprise上使用yum.

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 yum on Redhat Enterprise.

显然,我首先需要对rpm脚本的顺序有一个很好的了解-而且有趣的是,我在任何地方都没有找到关于此的很好的总结.

Obviously I first need a good understanding of the order of the rpm scriptlets - and interestingly enough I have not found a good summary of this anywhere.

根据我的收集,这是升级:

  • %pretrans的新软件包
  • 新软件包prein
  • %pre
  • 软件包安装
  • 新软件包postin
  • %post
  • %preun旧软件包
  • 删除旧包
  • %postun旧包
  • %posttrans新软件包
  • %pretrans of new package
  • %pre of new package prein
  • package install
  • %post of new package postin
  • %preun of old package
  • removal of old package
  • %postun of old package
  • %posttrans of new package

但是,它没有列出用于安装以前不在系统上的新程序包(即不是升级程序)和删除的脚本程序包的脚本顺序吗? 从上面的顺序中,我可以猜测这些顺序的外观,但是我也想对此有所了解...

However it doesn't list the scriptlet orderings for installing a new package not previously on the system (i.e. not an upgrade) and for removing one? From the above ordering I am able to guess how these orderings might look, but I'd like to get some educated opinion on this as well...

推荐答案

首次安装单个软件包的软件包订单:

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

  • %pretrans的新软件包
  • %pre的新软件包
  • 软件包安装
  • %post的新软件包
  • %posttrans新软件包
  • %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旧软件包
  • 删除旧包
  • %postun旧包
  • %preun of old package
  • removal of old package
  • %postun of old package

这篇关于使用yum进行安装/删除/升级的rpm scriptlet订购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆