<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 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

    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

    主站蜘蛛池模板: 亚洲av区一区二区三| 久久精品无码一区二区三区免费 | 日本视频免费高清一本18| 久久久久亚洲精品日久生情| 一级毛片正片免费视频手机看| 日本一道高清不卡免费| 亚洲国产区男人本色| 日韩精品无码免费专区午夜不卡| 婷婷综合缴情亚洲狠狠尤物| 亚洲AV无码一区二区三区性色| 日本免费高清视频| 久热综合在线亚洲精品| 免费女人高潮流视频在线观看 | 在线免费观看亚洲| 日韩免费电影网站| 久久亚洲精品人成综合网| 免费无码VA一区二区三区| 久久精品九九亚洲精品| 国产日本一线在线观看免费| 国产亚洲人成无码网在线观看| 亚洲AV无码一区二区大桥未久| 国产色爽女小说免费看| 亚洲免费视频观看| 久久av免费天堂小草播放| 永久免费bbbbbb视频| 国产天堂亚洲国产碰碰| 在线免费中文字幕| 在线观看免费毛片| 午夜毛片不卡高清免费| 扒开双腿猛进入爽爽免费视频| 亚洲av成人无码网站…| 亚洲高清在线视频| 亚洲日韩中文字幕| 国产精品va无码免费麻豆| 69视频免费观看l| 伊人免费在线观看| 精品久久亚洲一级α| 国产 亚洲 中文在线 字幕 | 香港一级毛片免费看| 五月婷婷亚洲综合| 99久久免费国产精品热|