<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

    主站蜘蛛池模板: 99在线视频免费| a级毛片在线视频免费观看| 日本三级2019在线观看免费| 亚洲级αV无码毛片久久精品| 国产成人精品久久亚洲高清不卡 | 亚洲三级视频在线观看| 91青青青国产在观免费影视| 亚洲国产精品国自产拍AV| 嫩草影院在线播放www免费观看| 亚洲人成网亚洲欧洲无码久久| 国内精品免费久久影院| 亚洲AV无一区二区三区久久| 久久国产乱子伦精品免费一| 亚洲国产成人久久精品动漫| 亚洲一区免费视频| 亚洲精品国产国语| 免费在线观看的黄色网址| 午夜在线免费视频 | 亚洲第一成年人网站| 免费看片在线观看| 亚洲色丰满少妇高潮18p| 亚洲视频在线观看免费| 成人免费在线看片| 人人狠狠综合久久亚洲| 亚洲国产日韩在线观频| 国产真人无码作爱免费视频| 亚洲综合精品香蕉久久网97| 免费看又爽又黄禁片视频1000| 一级a性色生活片久久无少妇一级婬片免费放 | 亚洲色www永久网站| 免费a级毛片大学生免费观看 | fc2成年免费共享视频网站| 久久精品国产亚洲网站| 国产精品成人免费视频网站京东| 免费无码国产在线观国内自拍中文字幕| 久久久久久亚洲精品不卡| 91香焦国产线观看看免费| 美女羞羞视频免费网站| 亚洲AV无码AV男人的天堂| 国产精品嫩草影院免费| 久久精品一本到99热免费|