Operating System - HP-UX
1830820 Members
2720 Online
110016 Solutions
New Discussion

where is the *.psf located in a SD depot

 
Hanry Zhou
Super Advisor

where is the *.psf located in a SD depot

there is a customized package existing in the depot, but I want to check out the .psf file, can anybody please tell me how to locate the file? under which directory?

Thanks,
none
8 REPLIES 8
Sridhar Bhaskarla
Honored Contributor

Re: where is the *.psf located in a SD depot

Hi Hanry,

psf file won't get included in the depot directory structure. However, you can get the contents of the psf file used if you go through catalog/INDEX file.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Hanry Zhou
Super Advisor

Re: where is the *.psf located in a SD depot

Thanks, but I thought that there will be actual .psf when I create package. Isn't ? is this file gone after the package is installed, and convered to INDEX file?
none
Sridhar Bhaskarla
Honored Contributor

Re: where is the *.psf located in a SD depot

Hi,

You will need to create a PSF file (man 4 swpackage) to make an SD depot. This psf file won't get carried with the depot file as it is. It will get split into INDEX and INFO files under the catalog directory structure which is required for further sw* commands like swverify, swmodify,swremoeve, swconfig etc.,

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Hanry Zhou
Super Advisor

Re: where is the *.psf located in a SD depot

So, the .psf could be there, or removed after the installation? What is the way to recover the original .psf file?

HOw do I located the control scrip, those script swcheckinstall, post install, or pre-install script, how to find them out?

none
Sridhar Bhaskarla
Honored Contributor

Re: where is the *.psf located in a SD depot

Hi,

1. You create a psf file say mypackage.psf under current directory.
2. Run 'swpackage -s mypackage.psf -d /tmp/mypackage' followed by 'swreg -l depot /tmp/mypackage'. You will see a directory structure under /tmp/mypackage. However, you will not see mypackage.psf copied into this structure. It is going to lie where it is in your current directory. However, the specifications of it will get merged into INDEX, INFO and control files under /tmp/mypackage/catalog directory structure. You can do a 'find /tmp/mypackage' and find out how the directory got structured. You will see the control scripts under /tmp/mypackage/*/pfiles directory. This structure may slightly vary depending on if the package is a bundle or a simple product.

I am off for today. If you have further questions it may be answered by others or I will answer them tomorrow if I can. Have a good day.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Hanry Zhou
Super Advisor

Re: where is the *.psf located in a SD depot

Sri,


Have a good day to you too, but please do come back tomorrow. I will have more questions. sounds like you are the right person I should stick with.

Thanks,
none
Sridhar Bhaskarla
Honored Contributor

Re: where is the *.psf located in a SD depot

Hanry - Just because others didn't answer doesn't make me right person :-). Most of the members may be off already.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jeff Schussele
Honored Contributor

Re: where is the *.psf located in a SD depot

Hi Hanry,

As usual, Sri is spot-on. Even though the *actual* .psf file is NOT included on the actual package, it CAN be inferred from the INDEX & INFO files. That's just the way SD is designed. That's why we have to take care to protect our own .spf files when we package our own SW, because even though it *can* be done, it's much harder to reconstruct a .psf file tham it is to reuse it.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!