1833323 Members
3116 Online
110051 Solutions
New Discussion

Creating depots in HP UX

 
Manish_33
Advisor

Creating depots in HP UX

Hi,
I have a directory "pack_exmp" containing folders bin and source that I wish to create and distribute as a single tar file for installation. I created a psf file for this and made a depot using "swpackage -s /home/pack_exmp.psf @ /home/pack_exmp_depot" and registered it as "swreg -l depot /home/pack_exmp_depot". But this gives me a directory with the above name containing folder "catalog" , swagent.log , INDEX, dfiles etc. Normally available depots are tar files with .sd extn and I could install them. But when I tar my directory using "tar" I cannot install from that tar ball. Gives me I/O error. Please help me out...where am I making a mistake?

Thanks in advance.
4 REPLIES 4
Arunvijai_4
Honored Contributor

Re: Creating depots in HP UX

What does your PSF file contain ? Take a look at http://docs.hp.com/en/B2355-90740/index.html for creating PSF files and control scripts. You need not to register a depot prior to installing it. You can't tar a depot.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Manish_33
Advisor

Re: Creating depots in HP UX

Arun,
My psf file looks like

distribution
layout_version 1.0
vendor
tag HP
title Hewlett Packard Co.
description end

product
tag HP_PACKAGING_EXAMPLE
revision 1.0
title Learn HP Packaging
description vendor_tag HP
copyright readme number A12345
category HP packaging examples
is_locatable false
directory /pack_HP_exmp
architecture Series_700/800_HP-UX_9.0

fileset
tag HPexmp
revision 1.1
title Source codes
description is_kernel false
is_reboot false
directory /home/pack_exmp=/pack_HP_exmp
file *
file_permissions -m 0755 -o root -g root
end
end


Thanks
Muthukumar_5
Honored Contributor

Re: Creating depots in HP UX

Try the steps as,

# swpackage -s /home/pack_exmp.psf @ /home/pack_exmp_depot
# tar -cvf pack_exmp_depot.tar /home/pack_exmp_depot
# gzip pack_exmp_depot.tar

You can use the file as depot for installing it.

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Creating depots in HP UX

Refer this Steps:

http://docs.hp.com/en/B2355-90740/ch10s06.html?btnNext=next%A0%BB

hth.
Easy to suggest when don't know about the problem!