Operating System - HP-UX
1771279 Members
1844 Online
109004 Solutions
New Discussion юеВ

How to specify multiple dependencies in a psf...

 
biz_boy
Occasional Contributor

How to specify multiple dependencies in a psf...

Hi,

I have software that depends on several other software package been installed before my software can be installed. How do I make sure using "prerequisite" tag in the product specification fileset that all these packages are
installed on the system.

I want something like in my psf(i.e. product specification file) as mentioned below

prerequisite pkgA and pkgB

is the above format correct???????

Thanks
5 REPLIES 5
Kent Ostby
Honored Contributor

Re: How to specify multiple dependencies in a psf...

I think that you would want to use the :

corequisite

keyword here
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
biz_boy
Occasional Contributor

Re: How to specify multiple dependencies in a psf...

No corequisite is a kind of run-time dependency, I want install time dependency to be enforced. So, for that reason HP inside my psf (i.e. product fileset spec) I want to use
prerequisite.

What's the syntax to specify multiple dependencies using AND relationship

Thanks,
biz_boy
Greg Vaidman
Respected Contributor

Re: How to specify multiple dependencies in a psf...

No, the appropriate syntax is to just list the prereqs on multiple lines, like so...

prerequisite pkgA
prerequisite pkgB,a=HP-UX_B.11.11_32/64
prerequisite pkgC,r>=2.00

In the above example, I've shown how you can even specify a specific version or architecture if you want as well. See the man page for sd(4) for the full syntax, or the SD Admin Guide.
PeterWolfe
Respected Contributor

Re: How to specify multiple dependencies in a psf...

biz_boy,

Are you sure you want an install-time
dependency? So your product can't be
installed at all unless the prerequisite
products are already
installed/configured? This implies that
you need the prereq's to be present
maybe because you need to use them as
part of your install?

Or is it the case that by the time you
are done being installed, you and the
things you depend on are all installed?
This latter case is a coreq. - the
order of the installation doesn't matter
but when all is said and done, you are
installed and your dependencies are
installed. Prereq would force a hard
installation ordering and coreq doesn't.
This this isn't really a "run-time"
dependency in the traditional sense. A
coreq will still make sure things that
you require to be there are there.

For example, if your product is a script
written in perl then perl is a coreq,
not a prereq. It doesn't matter what
order perl and your script gets
installed in....
biz_boy
Occasional Contributor

Re: How to specify multiple dependencies in a psf...

I deduced the solution myself. Although one of the suggestion specified appeared to be legitimate but I had already implemented the change.