1833780 Members
2424 Online
110063 Solutions
New Discussion

Softwaer install

 
SOLVED
Go to solution
Indrajit Bhagat
Regular Advisor

Softwaer install

I am trying to list the content of depot, stored at /tmp/patches/less-416-ia64-11.23.depot

But i am getting error.

# swlist -l -d :/tmp/patches/less-416-ia64-11.23.depot
ERROR: An invalid level was given for the successful execution of
"swlist". The valid levels are: "root", "depot", "bundle",
"product", "subproduct", "fileset", "file", "shroot",
"prroot", "category", "patch", "control_file".
ERROR: Command line parsing failed.


Can you please help me out how to view the content of the depot and how to install the depot.
18 REPLIES 18
Torsten.
Acclaimed Contributor
Solution

Re: Softwaer install

Read the message!

# swlist -l -d :/tmp/patches/less-416-ia64-11.23.depot

How about "-l" option?

Include something there, for example

# swlist -l product -d :/tmp/patches/less-416-ia64-11.23.depot

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Softwaer install

For installation you will use

swinstall -s :/tmp/patches/less-416-ia64-11.23.depot

or

swinstall -s :/tmp/patches/less-416-ia64-11.23.depot \*

BTW, your profile shows

"I have assigned points to 168 of 536 responses to my questions"

Remember to assign points to your threads!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Indrajit Bhagat
Regular Advisor

Re: Softwaer install

Hi,

I am getting following error:

# swlist -l product -d pdchpux4:/tmp/patches/less-416-ia64-11.23.depot
# Initializing...
# Contacting target "servername"...
ERROR: The expected depot or root does not exist at "/var/spool/sw".
ERROR: There is currently no depot software on host "servername" at
location "/var/spool/sw". Make sure that an absolute pathname
is specified for location (beginning with "/").
Torsten.
Acclaimed Contributor

Re: Softwaer install

If the depot is on the same (local) system, this will work too:

swlist -s tmp/patches/less-416-ia64-11.23.depot

For a remote server you need to run swreg on the remote server first to register the depot.

Then use

swlist -s :/tmp/patches/less-416-ia64-11.23.depot

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Softwaer install

bad copy'n'paste - should be

swlist -s /tmp/patches/less-416-ia64-11.23.depot

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Indrajit Bhagat
Regular Advisor

Re: Softwaer install

Hi,

I tried to run like this, something like this:

# swlist -d -l product @ /tmp/patches/less-416-ia64-11.23.depot
# Initializing...
# Contacting target "pdchpux4"...
#
# Target: pdchpux4:/tmp/patches/less-416-ia64-11.23.depot
#

less 416 less
#


can you please suggest, it is ok..
how to install this depot.
Torsten.
Acclaimed Contributor

Re: Softwaer install

Looks good.

Interactive:

swinstall -s /tmp/patches/less-416-ia64-11.23.depot

non-interactive:

swinstall -s /tmp/patches/less-416-ia64-11.23.depot \*

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
SUDHAKAR_18
Trusted Contributor

Re: Softwaer install

Hi Install the patch depot using #swinstall -s .

for more swinstall options see in man swinstall

Regards,
Torsten.
Acclaimed Contributor

Re: Softwaer install

BTW, newer version is here:

http://hpux.asknet.de/hppd/hpux/Gnu/less-418/

http://hpux.asknet.de/ftp/hpux/Gnu/less-418/less-418-ia64-11.23.depot.gz

Points?

;-)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Indrajit Bhagat
Regular Advisor

Re: Softwaer install

I tried to install through non interactive session,

I am getting the following output:


# swinstall -s /tmp/patches/less-416-ia64-11.23.depot \*

======= 06/24/08 11:02:12 BST BEGIN swinstall SESSION
(non-interactive) (jobid=pdchpux4-0170)

* Session started for user "root@pdchpux4".

* Beginning Selection
* Target connection succeeded for "pdchpux4:/".
* Source: /tmp/patches/less-416-ia64-11.23.depot
* Targets: pdchpux4:/
* Software selections:
less.less-RUN,r=416,a=HP-UX_B.11.23_64
* Selection succeeded.


* Beginning Analysis and Execution
* Session selections have been saved in the file
"/.sw/sessions/swinstall.last".
ERROR: "pdchpux4:/": One or more filesystems that appear in the
filesystem table are not mounted and cannot be mounted.
* The analysis phase failed for "pdchpux4:/".
* Analysis and Execution had errors.


ERROR: More information may be found in the agent logfile using the
command "swjob -a log pdchpux4-0170 @ pdchpux4:/".

======= 06/24/08 11:02:13 BST END swinstall SESSION (non-interactive)
(jobid=pdchpux4-0170)

# cat
Torsten.
Acclaimed Contributor

Re: Softwaer install

By default swinstall will try to mount everything listed in /etc/fstab.

Now something is not mounted, because of this you get the error.

Disable the check with:

swinstall -x mount_all_filesystems=false -s /tmp/patches/less-416-ia64-11.23.depot \*

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Indrajit Bhagat
Regular Advisor

Re: Softwaer install

Hi ,
I tried to run on another test server, it seems it is successful,

# swinstall -s /tmp/patches/less-416-ia64-11.23.depot \*

======= 06/24/08 13:42:47 METDST BEGIN swinstall SESSION
(non-interactive) (jobid=hpuxserver-0107)

* Session started for user "root@hpuxserver".

* Beginning Selection
* Target connection succeeded for "hpuxserver:/".
* Source: /tmp/patches/less-416-ia64-11.23.depot
* Targets: hpuxserver:/
* Software selections:
less.less-RUN,r=416,a=HP-UX_B.11.23_64
* Selection succeeded.


* Beginning Analysis and Execution
* Session selections have been saved in the file
"/.sw/sessions/swinstall.last".
* The analysis phase succeeded for "hpuxserver:/".
* The execution phase succeeded for "hpuxserver:/".
* Analysis and Execution succeeded.


NOTE: More information may be found in the agent logfile using the
command "swjob -a log hpuxserver-0107 @ hpuxserver:/".

======= 06/24/08 13:43:27 METDST END swinstall SESSION
(non-interactive) (jobid=hpuxserver-0107)

#

how to check whethere the installation is been sucessfull.

Torsten.
Acclaimed Contributor

Re: Softwaer install

>> Analysis and Execution succeeded

No errors at - try to run it!

Note, you probably need to adjust your PATH (maybe it is enough to logout and back in).


Question solved now?

Feedback please.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
SKR_1
Trusted Contributor

Re: Softwaer install

Run following commands

swinstall ( you will reach to sam)

Then give the location of depot there. After this select the contents present in depot and go to option tab and press change option. After entering there unselect the following tab

Mount filesystems in /etc/fstab or /etc/checklist

After this go to action tab and press install option.

Your depot will get installed

Thanks
Torsten.
Acclaimed Contributor

Re: Softwaer install

@SKR, you are a little bit too late ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Ivan Krastev
Honored Contributor

Re: Softwaer install

Hello Indrajit,

to look/check for the installed files from the package use:
# swlist -l file less

regards,
ivan
Bob E Campbell
Honored Contributor

Re: Softwaer install

OK, You really want some fun try out "swlist -i". It will let you perform an interactive swlist. You can still specify targets and such as others have shown.
James R. Ferguson
Acclaimed Contributor

Re: Softwaer install

Hi:

You might want to read:

http://docs.hp.com/en/5992-2146/ch03s01.html

...and then when you have time, read the remaining chapters for a broader understanding.

Regards!

...JRF...