免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4441 | 回复: 13
打印 上一主题 下一主题

如何bundle多个depot文件,创建成一个depot文件。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-02-25 14:22 |只看该作者 |倒序浏览
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 "*"

论坛徽章:
0
2 [报告]
发表于 2004-02-25 15:29 |只看该作者

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

大家光看不顶啊。

论坛徽章:
0
3 [报告]
发表于 2004-02-25 15:53 |只看该作者

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

我顶,好帖子就要用力顶,是美女也要顶~~~

论坛徽章:
0
4 [报告]
发表于 2004-02-25 17:19 |只看该作者

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

正是我上面问的,谢谢了

论坛徽章:
0
5 [报告]
发表于 2004-02-26 11:33 |只看该作者

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

好贴

论坛徽章:
0
6 [报告]
发表于 2004-02-26 12:35 |只看该作者

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

支持原创~~

论坛徽章:
0
7 [报告]
发表于 2004-02-26 13:33 |只看该作者

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

以前偶在用多个depot包合作一个包的时候走了很多弯路,呵呵,要是早一点看到你的帖子就好了,呵呵~
顶上去,建议加精~~~~

论坛徽章:
0
8 [报告]
发表于 2004-02-26 23:49 |只看该作者

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

这两天浪费了不少的时间,把磁带插进去,取出来;取出来,插进去

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

你真是好人!

论坛徽章:
0
9 [报告]
发表于 2004-02-27 15:13 |只看该作者

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

再顶!

论坛徽章:
0
10 [报告]
发表于 2004-02-28 20:35 |只看该作者

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

好贴!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP