Operating System - HP-UX
1834941 Members
2183 Online
110071 Solutions
New Discussion

commands to install hp apache and jre on hpux

 
SOLVED
Go to solution
Shivkumar
Super Advisor

commands to install hp apache and jre on hpux

What are commands to install hp apache 2.0.55 and jre 1.4.2 on hpux ?

20 REPLIES 20
James R. Ferguson
Acclaimed Contributor
Solution

Re: commands to install hp apache and jre on hpux

Hi Shiv:

You will use 'swinstall' just as you would for any SD-UX depot of HP software.

Regards!

...JRF...
Indrajit_1
Valued Contributor

Re: commands to install hp apache and jre on hpux

Hi;

#swinstall -s

(e.g. #swinstall -s /tmp/apache2.0.55 and
#swinstall -s /tmp/jre 1.4.2

Cheers
Indrajit
Never Ever Give Up
Alzhy
Honored Contributor

Re: commands to install hp apache and jre on hpux

You do know how to use swinstall right?

Just swinstall this depot for your Apache:

http://h20293.www2.hp.com/portal/swdepot/displayProductsList.do?groupName=HP-UX+Apache-based+Web+Server

For JRE, just download the depot you want from http://www.hp.com/products1/unix/java/

Simple.
Hakuna Matata.
Deoncia Grayson_1
Honored Contributor

Re: commands to install hp apache and jre on hpux

swinstall -s

man swinstall for more details

swinstall, swcopy - install and configure software products; software products for subsequent installation or distribution; respectively
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
James R. Ferguson
Acclaimed Contributor

Re: commands to install hp apache and jre on hpux

Hi (again) Shiv:

If you are not comfortable with the command line syntax for 'swinstall' you can invoke the menu-based version by doing:

# swinstall

There is built-in help when running in this mode.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: commands to install hp apache and jre on hpux

Hi Shiv,

I generally run swinstall with the -s option pointing to the location of the depot:

swinstall -s /full_path_of_depot


Pete

Pete
Shivkumar
Super Advisor

Re: commands to install hp apache and jre on hpux

swinstall -s command installed hp apache in the directory /opt/hpws/apache.
suppose i want to install apache in /opt/pink/rose/directory then what should be the syntax for swinstall command ? i mean how to define the destination install path ?
Shivkumar
Super Advisor

Re: commands to install hp apache and jre on hpux

Did anyone get a chance to see the query at the end ?
Muthukumar_5
Honored Contributor

Re: commands to install hp apache and jre on hpux

You can do it with swinstall as,

# swinstall -s @ target location

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

Re: commands to install hp apache and jre on hpux

You can better use swinstall in interactive mode as,

# swinstall -s

Select software you want to install and go to Actions -> Change target give your target. It will do it.

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

Re: commands to install hp apache and jre on hpux

An example thread:

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

--
Muthu
Easy to suggest when don't know about the problem!
Shivkumar
Super Advisor

Re: commands to install hp apache and jre on hpux

In the below command syntax:-
/usr/sbin/swinstall -s /tmp/HPUXWSATW-A214-1100.depot \*

what is the meaning of \*
Raj D.
Honored Contributor

Re: commands to install hp apache and jre on hpux

Hi Shiv ,

Good day!!


In /usr/sbin/swinstall -s /tmp/HPUXWSATW-A214-1100.depot \*

* means all products and bundles of that depot.



Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Muthukumar_5
Honored Contributor

Re: commands to install hp apache and jre on hpux

The \* software specification selects all products. Use this specification with caution. It will not go as like interactive method. Directly starts to insall all the products.

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

Re: commands to install hp apache and jre on hpux

Hi Shiv,

You asked about, what is the meaning of \* in /usr/sbin/swinstall -s /tmp/HPUXWSATW-A214-1100.depot \*

A bundle may contain more one products and filesets, when you specify \*, it selects everything to install. You can also specify bundle name as,

/usr/sbin/swinstall -s /tmp/HPUXWSATW-A214-1100.depot HPUXWSATW

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Shivkumar
Super Advisor

Re: commands to install hp apache and jre on hpux

Can anyone explain the relationships amongst fileset, depot and bundle ? How to distinguish whether it is a bundle and not depot ? Second, how to find out prior to install what are the various software components are present in the depot or bundle? I observed hp apache depot has 3 software into it such as tomcat, webmin and apache.

Regards,
Shiv
James R. Ferguson
Acclaimed Contributor

Re: commands to install hp apache and jre on hpux

Hi Shiv:

A "fileset" is simply a collection of files in Software Distribution parlance.

A "bundle" is a group of filesets brought together for some specific purpose.

A "product" is a collection of filesets too.

A "depot" is a collection of products or bundles along with a catalog of its contents. This catalog contains all of the information necessary to define the organization and contents of the depot.

If you have a depot you can interrogate its contents with 'swlist' just as you do for your installed database:

# swlist -d \* @ /tmp/depot

The '-d' indicates operation on a depot. The escaped "*" means everything should be interrogated.

Regards!

...JRF...
Shivkumar
Super Advisor

Re: commands to install hp apache and jre on hpux

I couldn't install hp apache in non-default directory location as got the error message that it can only be installed in /opt/hpws/ location.

Is there a way we can move to non-defualt location after installation ?

Thanks,
Shiv
James R. Ferguson
Acclaimed Contributor

Re: commands to install hp apache and jre on hpux

Hi Shiv:

You asked if there was a way to "move" the location of an installed product after installation.

Often, all that needs to be done is to create a symbolic link. You can see many examples if you look at the links in '/usr/bin'.

Regards!

...JRF...
Arunvijai_4
Honored Contributor

Re: commands to install hp apache and jre on hpux

Hi Shiv, you asked
" I couldn't install hp apache in non-default directory location as got the error message that it can only be installed in /opt/hpws/ location.

Is there a way we can move to non-defualt location after installation ? "

Ans : No, Don't do it with Softwares like Apache since they built (at HP) to work from /opt/hpws/apache. If you really want to change, you can just move the /opt/hpws/apache to some other dirs, but you should edit configurations files to reflect the changes. Also, you can't swremove apache as well.

Best work around is, get source and compile it on your own with --prefix=

That should help.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"