HP-UX合并多个depot一次安装

HP-UX、Linux、Tru64 UNIX、NonStop、OpenVMS、Windows Server等,数据中心、虚拟化方案等

版主: xyevolve

版面规则
1. 本版是定位于惠普软件系统及解决方案的技术讨论区。
2. 本版鼓励发帖共同讨论技术问题,不鼓励站内信件私下交流,独知知不如众知知。
3. 本版允许转贴或引用他人的作品,但必须声明原作者信息。
4. 本版禁止发表出售、求购、或其他非技术讨论等帖子。
5. 本版禁止灌水,包括但不限于任何与所讨论主题无关的回复,无意义字符,直接复制其他回复等。
6. 本站附件禁止用于商业目的,请在下载后24小时内删除,本站不对其造成的结果负任何责任。
回复
头像
MUDBOY
创始人
帖子: 3877
注册时间: 2010年 12月 28日 21:17 星期二

HP-UX合并多个depot一次安装

帖子 MUDBOY » 2014年 8月 26日 14:40 星期二

Combine all the separate .depot files into one depot.
To do this, use the swcopy(1M) command.

First, create the directory to store the depot files:

# mkdir /tmp/depot

Now take the .depot files and copy them into the target depot

# for i in *depot
>do
>swcopy -x enforce_dependencies=false -s /tmp/$i \* @ /tmp/depot
>done

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

#swcopy -v -s /tmp/<A>.depot <A> @ /tmp/depot
#swcopy -v -s /tmp/<B>.depot <B> @ /tmp/depot
#swcopy -v -s /tmp/<C>.depot <C> @ /tmp/depot



Verify the contents of the depot

# swlist -d @ /tmp/depot

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

# swinstall -s /tmp/depot

提倡分享之精神, 技术问题请在相关版面直接发帖, 站内短信恕不答复.
I don't answer private messages on topics of public interest, because it defeats the whole purpose of a message board.

回复