Operating System - HP-UX
1751883 Members
5321 Online
108783 Solutions
New Discussion юеВ

Create a relocatable HP-UX package

 
SOLVED
Go to solution
Vibhor Kumar Agarwal
Esteemed Contributor

Create a relocatable HP-UX package

Hi,

I am playing with creation of packages on HP. Want to create a relocatable package.
Have searched this forum, but being a newbie in this domain couldn't connect all the pieces.

Request to help me with the details. Here is what i have done:

PSF file
category
tag application
end
product
tag Test
architecture HP-UX
revision 1
fileset
tag test
directory Test=/opt/Test
file Test.txt
end
end

Works quite well & installs the package to /opt/Test containing a file Test.txt.
Now how can i relocate it any location of my desire say /abc/Test.

Thanks

 

 

P.S. This thread has been moved from HP-UX > System Administration to HP-UX > patches - HP Forums Moderator

Vibhor Kumar Agarwal
13 REPLIES 13
Rita C Workman
Honored Contributor

Re: Create a relocatable HP-UX package

Are you looking for the 'swpackage' command?

You can find it in the Software Distributor Admin Guide...

http://search.hp.com/redirect.html?url=http%3A//docs.hp.com/en/5992-5875/ch10s05.html&qt=%2Bswpackage&hit=1

Regards,
Rita
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Create a relocatable HP-UX package

Have gone through the guide.
Couldn't derive much except to set "is_locatable" to true.

What else needs to be done, no idea ...
Vibhor Kumar Agarwal
Ivan Krastev
Honored Contributor

Re: Create a relocatable HP-UX package

You can specify "Alternate root directory" as well - http://docs.hp.com/en/B2355-90154/go01.html
but this should be enough.

regards,
ivan
Dennis Handly
Acclaimed Contributor
Solution

Re: Create a relocatable HP-UX package

>how can I relocate it any location of my desire say /abc/Test.

# swinstall -s $PWD/depot SD-BP,l=/abc/Test
Where SD-BP is a bundle or product.
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Create a relocatable HP-UX package

Okay, things are a bit clearer now.
I am looking for "Alternate product directory" & not "Alternate root directory".

swinstall -s $PWD/depot SD-BP,l=/abc/Test

solved half of my problem. Now my "Test" depot gets installed to whatever location i want.

I added one more file
/etc/init.d/test

This file also get's installed on /abc/etc/init.d
I want only the Test folder to go there & the rest to their normal paths.
Please help how can i achieve this?
Thanks
Vibhor Kumar Agarwal
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Create a relocatable HP-UX package

Gotcha,

Made 2 filesets.
Added "is_locatable true" in the fileset containing Test files
Added "is_locatable false" in the fileset containing etc files

Any other TIPS from you gurus which will be helpful to make a relocatable package.

Thanks
Vibhor Kumar Agarwal
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Create a relocatable HP-UX package

Now on installing under /abc the directory structure is /abc/opt/Test

What should be the mapping in PSF such that the installation structure be /abc/Test
Vibhor Kumar Agarwal
Dennis Handly
Acclaimed Contributor

Re: Create a relocatable HP-UX package

>Now on installing under /abc the directory structure is /abc/opt/Test
>What should be the mapping in PSF such that the installation structure be /abc/Test

What are you asking?
Where to you want it? What is the ,l= value

I assume the ,l= value replaces the =RHS in this:
directory Test=/opt/Test
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Create a relocatable HP-UX package

>What is the ,l= value?
Have tried giving /abc & /abc/Test

>I assume the ,l= value replaces the =RHS in this:
directory Test=/opt/Test
If I give ,l=/abc the output is
/abc/opt/Test/...
If I give ,l=/abc/Test the output is
/abc/Test/opt/Test/...

I simply want /abc/Test/...
Vibhor Kumar Agarwal