Operating System - HP-UX
1847384 Members
3226 Online
110264 Solutions
New Discussion

Creating S/W Depot of a product

 
Amit Dixit_2
Regular Advisor

Creating S/W Depot of a product

Hi,
I am having infromix tar file, Can I prepare
Depot file from this so that when ever I need
to install it on my server I just run the
swinstall command and it will also get added
into the S/W Management so when I want to
uninstall I can do that.

The depot file should do all the task
i.e creating user for informix setting ENV
for user and root etc.

Thanks,
Amit
8 REPLIES 8
Manish Srivastava
Trusted Contributor

Re: Creating S/W Depot of a product

Hi Amit,

I think you can do it by swpackage. Just check the manpage of swpackage.

manish
Jeroen Peereboom
Honored Contributor

Re: Creating S/W Depot of a product

Amit,

you'll have to create a product specification file, describing the product and version and all its pre/post install/remove actions. A pre-install might be checking for disk space (for unpacking the tar file) and checking the absence / existence of an informix account. A post install action might be extracting the tar file and creating some users and environment variables. If you unpack the tar file first in some subdirectory, you can also specify files and file permissions. I would say: keep it simple as you have no control over the informix tar file in the next release.

JP.
Muthukumar_5
Honored Contributor

Re: Creating S/W Depot of a product

Hai,

We have to create PSF ( product specification file) and make the package with swpackage command.

Use the check/pre/post/*remove scripts to check the memory,make the environment for the users and tar file.

While setting environment with scripts,we can not use env variables. We have to export the variables and it's information. By default SD commands took sd environment setup informations.

After creating package,(sw)install it.The check the swjobs log to analyse the installation.

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
Amit Dixit_2
Regular Advisor

Re: Creating S/W Depot of a product

Hi,
Does anyone have the document to create
Package using swpackage, man pages are not
enough for me.

Apart from that do I have to write a script
for checking disk space, creating user and
pre/post installation configuration.

Thanks,
AMit
Muthukumar_5
Honored Contributor

Re: Creating S/W Depot of a product

hai,

To create the PSF file,swpackage.4 and sd.(1m,4,5) man pages are good and enough.

man pages contains all informations and the flow to create it.

There is no vendor and category informations are needed if you are doing for your own usage. Product / bundle and filesets are enough do it. Use the required fields of the bundle or fileset on PSF

Test the scripts on shell without using the sd commands in begin. Key thing is we can not use the env variables here. Export every variable.

Create the normal scripts to create user and disk usage check. Use the name as preinstall or postinstall,place where it has to be executed.

Regards,
Muthukumar.

Easy to suggest when don't know about the problem!
Bharat Katkar
Honored Contributor

Re: Creating S/W Depot of a product

Hi amit,
Following muthu..
This is how we use swpackage command in our script.

/usr/sbin/swpackage -vv -s ./$PKG.psf -x write_remote_files=true -x run_as_superuser=false -x create_target_acls=false -d $DEPOT_DIR

Hope this helps.
Regards,

You need to know a lot to actually know how little you know
Geoff Wild
Honored Contributor

Re: Creating S/W Depot of a product

Here you go:

http://www.hpworks.org.uk/newsletter/articles/depots/

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
R. Sri Ram Kishore_1
Respected Contributor

Re: Creating S/W Depot of a product

Hi Amit,

Here are the links to the docs:
For 11i:
http://www.docs.hp.com/hpux/onlinedocs/B2355-90754/B2355-90754.html

For 11i v2:
http://www.docs.hp.com/hpux/onlinedocs/B2355-90789/B2355-90789.html

HTH.

Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."