1753548 Members
5667 Online
108795 Solutions
New Discussion юеВ

swpackage condensed

 
Ralph Grothe
Honored Contributor

swpackage condensed

Hello again,

although I know that there exists excellent documentation (e.g. SD Admin Guide, Manpages etc.) on this topic I sort of need a quick start as I cannot spare the time for perusal right now.
The task is pretty easy.
I've just compiled and built Perl 5.8.6 from the source tarball in a staging directory.
Instead of copying the install tree later between hosts using common fileutils (which works very well for any Perl build),
this time I would like to pack the bulk in a depot to e.g. swcopy it to /var/spool/sw of a distribution host, and finally swinstall remotely from other hosts that need a Perl upgrade.
I know I should refer to "man swcopy" to get started.
But since all the sw* commands have such a bewildering array of options and parameters
(left alone the preparation of check, pre, mid and post install scripts etc.),
I thought it would be quicker to ask you the experts for a kickstart.

Regards
Ralph
Madness, thy name is system administration
4 REPLIES 4
Jannik
Honored Contributor

Re: swpackage condensed

this is what you are looking for:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=531789

have a look at:
Geoff Wild reply.

Best Regards!
jaton
Sanjay_6
Honored Contributor

Re: swpackage condensed

Hi Ralph,

Maybe this link would help,

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066944963

The itrc doc id is KBRC00007312.

Hope this helps.

regds
Ralph Grothe
Honored Contributor

Re: swpackage condensed

O, I see I made a typing mistake.
I didn't mean the manpage of swcopy, but of course swpackage that seems most relevant to my task.
Madness, thy name is system administration
G. Vrijhoeven
Honored Contributor

Re: swpackage condensed

Hi Ralph,

1. Create a psf file
2. Create a tar of the perl software
3. Create a configure script that extracts the tar to a location you prefere
4. swpackage -s @/depotname
5. swreg the depot

go to other servers and do an swinstall selecting as source the server you did the swpackage on.

Regards,

Gideon

product
tag
title "title description"
revision
category OS
architecture S800_HPUX_10/11
description "title description "

machine_type 9000/8*
os_name HP-UX
os_release ?.??.*
os_version ?

directory /tmp
is_locatable false

configure
fileset
tag name
title "name"
revision 1
description "description"


file_permissions -o root -g sys
directory files = /tmp
file *


end # fileset dummy

end # product