1833907 Members
2016 Online
110063 Solutions
New Discussion

Create a Depot

 
SOLVED
Go to solution
Danny Crisp
Frequent Advisor

Create a Depot

I have installed some software via a tar file into (lets say /opt/software for argument sake). I now want create a depot using the contents of /opt/software. Is this possible?
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: Create a Depot

Hi Danny:

Have a look at 'swpackage'.

http://docs.hp.com/en/B2355-90754/index.html

Regards!

...JRF...
Paul F. Carlson
Valued Contributor

Re: Create a Depot

You need to create a Product Specification File (psf) and use swpackage. See: man swpackage

Paul
Link down -- cable problem?
Geoff Wild
Honored Contributor

Re: Create a Depot

And another good link for you - nice script to create psf for you:

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.
Jeff_Traigle
Honored Contributor

Re: Create a Depot

I'll second Geoff's recommendation for the web site. Even if you don't have and don't want Perl on your system, the sample psf file is very helpful. I used it as my template on an assignment in 2004. The SD-UX documentation is also a must read and it explains swpackage, the options for the psf file, and a lot of other stuff in great detail.
--
Jeff Traigle
Geoff Wild
Honored Contributor

Re: Create a Depot

I'll give you a detailed example - as I just did this for Sarcheck.

cd /usr/local/src
mkdir SarCheck-v6.01.02
cd SarCheck-v6.01.01

zcat < /usr/local/src/SCHP.TAZ | tar tvf -
mv /opt/sarcheck/* .


Modified psf to go to /opt

cd /usr/local/src
psf SarCheck-v6.01.02 > SarCheck.psf

Set some minor stuff:
vi SarCheck.psf

swpackage -vv -s SarCheck.psf @ /var/software/hp/SarCheck
swreg -l depot /var/software/hp/SarCheck



Here's my psf file:

# cat SarCheck.psf

product
tag SARCHECK
revision 6.01.02
title SarCheck Performance Analyzer
fileset
tag sarcheck
directory SarCheck-v6.01.02=/opt/sarcheck
file hpsar22
directory SarCheck-v6.01.02/ps=/opt/sarcheck/ps
file *
directory SarCheck-v6.01.02/bin=/opt/sarcheck/bin
file analyze9000
file freemem
file ondemand
file ps1
file ps2
file sarcheck
file vg1
file vgparse
directory SarCheck-v6.01.02/doc=/opt/sarcheck/doc
file hcpu_600.png
file hdkbusy_600.png
file hfree_600.png
file hinode_600.png
file hopenfile_600.png
file hpcount_600.png
file hpman601.html
file hrunq_600.png
file hswout_600.png
directory SarCheck-v6.01.02/etc=/opt/sarcheck/etc
file analyze_key
file analyze_txt
end
end


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.
Sivakumar TS
Honored Contributor

Re: Create a Depot

Hi,

first you have to create the depot using

#swpackage

And latter user

#swreg

to register

With Regards,

Siva.
Nothing is Impossible !
Muthukumar_5
Honored Contributor

Re: Create a Depot

You have to create a product specification file.

http://docs.hp.com/en/B2355-90107/ch10.html

Then create a package with swpackage.

--
Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Create a Depot

Use this document for SD-UX.

http://docs.hp.com/en/B2355-90740/index.html

--
Muthu
Easy to suggest when don't know about the problem!
Scot Bean
Honored Contributor
Solution

Re: Create a Depot

For folks new to PSF files, 'swpackage', and the endless syntax options, consider using the free application Software Package Builder (SPB) instead.

More about this tool here: http://docs.hp.com/en/SPB/index.html
Danny Crisp
Frequent Advisor

Re: Create a Depot

I have found a solution to this question