<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

    主站蜘蛛池模板: 亚洲国产成人久久精品软件| 亚洲av乱码一区二区三区香蕉| 爱爱帝国亚洲一区二区三区| 午夜网站免费版在线观看| 亚洲AV色吊丝无码| 一区二区无码免费视频网站| 亚洲一区二区三区高清不卡| 无码一区二区三区免费视频 | 特级毛片在线大全免费播放| 国产乱子影视频上线免费观看| 精品一区二区三区无码免费直播 | 免费看大黄高清网站视频在线| 亚洲日韩亚洲另类激情文学| 国产精品另类激情久久久免费| 边摸边吃奶边做爽免费视频99 | 精品亚洲麻豆1区2区3区| 国产a视频精品免费观看| 亚洲18在线天美| 日本免费一区尤物| jzzjzz免费观看大片免费| 国产亚洲人成网站在线观看不卡| A级毛片高清免费视频在线播放| 亚洲精品视频观看| 国产真实伦在线视频免费观看| 在线播放国产不卡免费视频| 亚洲动漫精品无码av天堂| 免费国产作爱视频网站| 国产成人综合亚洲绿色| 亚洲女同成av人片在线观看| 2020久久精品国产免费| 三级片免费观看久久| 亚洲永久永久永久永久永久精品| 思思re热免费精品视频66| 色www免费视频| 亚洲人成在线播放网站岛国| 午夜精品在线免费观看| a级毛片免费观看在线| 亚洲一区精彩视频| 亚洲午夜久久久久妓女影院| av大片在线无码免费| 亚洲精品黄色视频在线观看免费资源|