一起安装多个depot文件

需要在几台HP-UX服务器上安装多个depot文件(主要是安装ethereal,但它需要别的软件支持,比如zlib、libpcap、 libiconv、openssl等等)。安装每个软件包都得运行一次swinstall,mark,然后install,很麻烦。不想在每台机器上重 复,于是就google有没有一次安装多个depot文件的方法。

需要在几台HP-UX服务器上安装多个depot文件(主要是安装ethereal,但它需要别的软件支持,比如zlib、libpcap、 libiconv、openssl等等)。安装每个软件包都得运行一次swinstall,mark,然后install,很麻烦。不想在每台机器上重复,于是就google有没有一次安装多个depot文件的方法。

找到的方法如下(CU里就有 :)):

建一个临时的depot目录

# mkdir /tmp/ethereal_depot

用swcopy把ethereal需要的软件包都拷贝到这个目录里去

# swcopy -v -s /tmp/zlib-1.2.2-sd-11.11.depot zlib @ /tmp/ethereal_depot
# swcopy -v -s /tmp/openssl-0.9.7e-sd-11.11.depot openssl @ /tmp/ethereal_depot
# swcopy -v -s /tmp/libpcap-0.8.3-sd-11.11.depot libpcap @ /tmp/ethereal_depot
# swcopy -v -s /tmp/libiconv-1.9.2-sd-11.11.depot libiconv @ /tmp/ethereal_depot
……
# swcopy -v -s /tmp/ethereal-0.9.15-sd-11.00.depot ethereal @ /tmp/ethereal_depot

然后,可以用swlist命令验证一下

swlist -d @ /tmp/ethereal_depot

同样,用swinstall命令安装,选中所有的软件包,mark,install …

swinstall -s /tmp/ethereal_depot

# tar cvf ethereal.tar /tmp/ethereal_depot
在别的机器上解开后自己swinstall就行了。

只用了SD-UX的一点皮毛,深入的没空研究了,比如能不能把这个depot目录做成一个文件,直接用swinstall就能安装,不像我这样,还要tar来tar去的。

Leave a Reply

Your email address will not be published. Required fields are marked *

*

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.
For more help see http://daringfireball.net/projects/markdown/syntax

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>