• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

如何bundle多个depot文件,创建成一个depot文件。

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 23次 | 进入软件测试论坛讨论

领测软件测试网
In order to install multiple patches in one go, you will need to create a patches depot as follows :

1. Obtain the set of patches you want to install in your depot.

每个patch都可以从itrc.hp.com上下载。需要注册,不过是免费的。每个patch都有note说明他的fix,和属性。

2. Unshar the patches:

             # for i in PH*
             do
                sh $i
             done

   NOTE:  If you want to unshar one patch without using this script, you can
      use the sh(1) command to do so:

             sh PHxx_A
             sh PHxx_B
             sh PHxx_C


3. Combine all the separate .depot files into one depot.  To do this, use the
   swcopy(1M) command.  First, create the directory to store the patches:

             # mkdir /tmp/patch_depot

4. Now take the patch .depot files and copy them into the target depot:

      # for i in PH*depot
        do
          swcopy -x enforce_dependencies=false -s ${PWD}/$i \*
          @ /tmp/patch_depot
        done

   NOTE:  To copy patches individually, use the following syntax:

        swcopy -v -s /tmp/patches/PHxx_A.depot PHxx_A @ /tmp/patch_depot
        swcopy -v -s /tmp/patches/PHxx_B.depot PHxx_B @ /tmp/patch_depot
        swcopy -v -s /tmp/patches/PHxx_C.depot PHxx_C @ /tmp/patch_depot


5. Verify the contents of the depot:

             # swlist  -d  @ /tmp/patch_depot

Assuming the above example list of patches, you would see the following:

# Initializing...  # Contacting target "interop1"...  # # Target:
  interop1:/var/opt/ignite/Patches #

        #
        # No Bundle(s) on interop1:/var/opt/ignite/Patches
        # Product(s):
        #
          。。。。。。。。。
       。。。。。。。
       会列出你bundle进去的patch列表。

     In the above output, swlist(1M) states that the depot has "No Bundles".
     HP-UX Patches are SD "products".

6. You can now use swinstall(1M) to install these patches in one hit.
   Run interactively, and select the patches you want.

      # swinstall -s /tmp/patch_depot

NOTE:  If you need to copy the depot to a tape use the following command:

       swpackage -s /tmp/patch_depot -x target_type=tape -d /dev/rmt/0m "*"

 :em02:

 Janson-Chen 回复于:2004-02-25 15:29:47
大家光看不顶啊。

 hpux 回复于:2004-02-25 15:53:45
我顶,好帖子就要用力顶,是美女也要顶~~~

 woodpan 回复于:2004-02-25 17:19:15
正是我上面问的,谢谢了

 dainh 回复于:2004-02-26 11:33:13
好贴

 rat326 回复于:2004-02-26 12:35:38
支持原创~~

 tc 回复于:2004-02-26 13:33:18
以前偶在用多个depot包合作一个包的时候走了很多弯路,呵呵,要是早一点看到你的帖子就好了,呵呵~
顶上去,建议加精~~~~

 流云飞雨 回复于:2004-02-26 23:49:13
这两天浪费了不少的时间,把磁带插进去,取出来;取出来,插进去

累晕我了,这个方法太好了,我还是第一次见到,别人一直问我怎么弄,但是我一直还不知道呢。

你真是好人!

 david5337 回复于:2004-02-27 15:13:29
再顶!

 yuangod 回复于:2004-02-28 20:35:29
好贴!!!

 xinfang 回复于:2004-06-08 11:04:28
通过swinstall选择不是一样吗?

 blueguy 回复于:2004-06-19 23:52:39
直接在itrc.hp.com上下载的时候可以选择达成一个包的,在rar或tar包里有一个脚本,执行一下就OK了。
另外,有一个脚本,一般叫patchpkg,可以把多个patch打包成一个depot

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网