<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 88, comments - 3, trackbacks - 0, articles - 0
      BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

    scriptlets of RPM

    Posted on 2012-07-06 13:41 Milo的海域 閱讀(412) 評論(0)  編輯  收藏 所屬分類: Linux
    The scriptlets also take an argument, passed into them by the controlling rpmbuild process. This argument, accessed via $1 is the number of packages of this name which will be left on the system when the action completes, except for %pretrans and %posttrans which are always run with $1 as 0 (%pretrans and %posttrans are available in rpm 4.4 and later). So for the common case of install, upgrade, and uninstall we have:


    install upgrade uninstall
     %pretrans $1 == 0 $1 == 0 (N/A)
     %pre $1 == 1 $1 == 2 (N/A)
     %post $1 == 1 $1 == 2 (N/A)
     %preun (N/A) $1 == 1 $1 == 0
     %postun (N/A) $1 == 1 $1 == 0
     %posttrans $1 == 0 $1 == 0 (N/A)

    Scriptlets ordering

    The scriptlets in %pre and %post are respectively run before and after a package is installed.
    The scriptlets %preun and %postun are run before and after a package is uninstalled. The
    scriptlets %pretrans and %posttrans are run at start and end of a transaction.

    On upgrade
    , the scripts are run in the following order:

         %pretrans of new package
         %pre of new package
        (package install)
         %post of new package
         %triggerin of other packages (set off by installing new package)
         %triggerin of new package (if any are true)
         %triggerun of old package (if it's set off by uninstalling the old package)
         %triggerun of other packages (set off by uninstalling old package)
         %preun of old package
        (removal of old package)
         %postun of old package
         %triggerpostun of old package (if it's set off by uninstalling the old package)
         %triggerpostun of other packages (if they're setu off by uninstalling the old package)
         %posttrans of new package

    For detail, will ref:
    http://fedoraproject.org/wiki/Packaging:ScriptletSnippets

    主站蜘蛛池模板: 国产人成亚洲第一网站在线播放| 97视频免费观看2区| 亚洲成A人片在线观看无码3D| 久久久久久亚洲av无码蜜芽| 成年女人免费碰碰视频| 国产成人精品日本亚洲直接| 两性刺激生活片免费视频| 精品亚洲成A人无码成A在线观看 | 亚洲免费一区二区| 色婷婷综合缴情综免费观看| 亚洲成av人片一区二区三区| 午夜不卡AV免费| 国产亚洲大尺度无码无码专线 | 亚洲乱亚洲乱妇24p| 午夜毛片不卡高清免费| 亚洲女子高潮不断爆白浆| 国产又黄又爽又猛的免费视频播放 | 国精产品一区一区三区免费视频| 亚洲中文字幕无码久久2017| 中文日本免费高清| 亚洲AV日韩精品久久久久久久| 99精品视频在线视频免费观看| 91亚洲国产在人线播放午夜| 国产精品色拉拉免费看| 中文日韩亚洲欧美制服| 国产精品久免费的黄网站| 四虎精品成人免费视频| 亚洲色自偷自拍另类小说| 国产精品免费观看调教网| 亚洲欧洲日产国码二区首页| 免费无码肉片在线观看| 亚洲av日韩av永久无码电影| 亚洲AV蜜桃永久无码精品| 久久高潮一级毛片免费| 亚洲A∨无码一区二区三区| 四虎在线成人免费网站| 亚洲人成欧美中文字幕| gogo全球高清大胆亚洲| 久久毛片免费看一区二区三区| 亚洲精品在线观看视频| 亚洲人成电影网站免费|