1845821 Members
3556 Online
110250 Solutions
New Discussion

swinstall command

 
SOLVED
Go to solution
Shivkumar
Super Advisor

swinstall command

Dear Sirs;

I have downloaded a software in depot format say abc.depot.

I want to install in /opt/abc/ directory. Will "swinstall -s /home/shiv/abc.depot" command okay or any other better option.

Thanks,
Shiv
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: swinstall command

That should do it althouth the destination is usually determined by the package itself and unexpected behaviors can result (unless the designer carefully planned for them) if a package is installed in a non-standard location. The -s option simply specifies the location of the source depot.
If it ain't broke, I can fix that.
Mel Burslan
Honored Contributor

Re: swinstall command

Shiv,

As Clay indicated, on hpux, unlike windows (I know it is a bad analogy) you do not get to choose your installation directory under swinstall. Some other products which provide their own installation scripts, circumventing swinstall process, can give you this opportunity but not the packages installed with swinstall. This is mainly for consistency purposes more than anything else.
________________________________
UNIX because I majored in cryptology...
Shivkumar
Super Advisor

Re: swinstall command

I believe software having *.depot extension can only be installed using "swinstall" command.

Thanks,
Shiv
Joseph Loo
Honored Contributor

Re: swinstall command

hi,

as the rest have mentioned, you may state the source (-s option) but swinstall do not allow selection of destination and it is up to the software selected destination.

not only *.depot files are eligible but as long as it is package into a depot, u may use swinstall.

regards.
what you do not see does not mean you should not believe
Arunvijai_4
Honored Contributor

Re: swinstall command

Hi Shiv,

You can't install it in /opt/abc directory since the PSF(Product Specification File) and the compilation of the product would have pointed to original destination. It is not desired to do so.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Mahesh Kumar Malik
Honored Contributor

Re: swinstall command

Hi Shiv

swinstall will decide destination based on product bundle. Following link may be of help

http://docs.hp.com/en/5991-2824/ch01s07.html?btnPrev=%AB%A0prev

Regards
Mahesh
Sreedhar Nathani
Valued Contributor

Re: swinstall command

Hi Shiv,

You can't choose the target location with swinstall command. Those are already defined in the depot PSF files.

Incase if you want to install on a specific directory you need to recreate the depot file for your help.

This will be easy if you have only one fileset in the depot and its really difficult if you have multiple filesets in the depot

See this thread for example of installing gzip depot.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=946688

Thanks
Sreedhar
Cem Tugrul
Esteemed Contributor

Re: swinstall command

Shiv,
As the others mentioned you can not install
depot optional path like Windows :-(
On the other hand,your swinstall command OK.
just a little bit take care on after analyzing depot while installing depot and check the log file whether is there any warnings or error...

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Muthukumar_5
Honored Contributor

Re: swinstall command

You can not redirect as like windows or linux platforms on hp-ux. Some products will define this in Product Specification File which used for swpackage (SD creation with is_relocatable attribute).

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