分页: 1 / 1

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

发表于 : 2014年 8月 26日 14:40 星期二
MUDBOY
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