Operating System - HP-UX
1834604 Members
4025 Online
110069 Solutions
New Discussion

what is the option in swinstall to check pkg is able to install required machine or not?

 
SOLVED
Go to solution

what is the option in swinstall to check pkg is able to install required machine or not?

Hi,
I have a any pkg to install a machine .Before install the pkg i want to check the pkg able to install or any dependencies required.

like linux OS have command to check

rpm -i --test

what is equivalent command in HPUX?
4 REPLIES 4
Dennis Handly
Acclaimed Contributor
Solution

Re: what is the option in swinstall to check pkg is able to install required machine or not?

You can use "swinstall -p" for preview.
Prashanth Waugh
Esteemed Contributor

Re: what is the option in swinstall to check pkg is able to install required machine or not?

Hi ,

In HP-UX swinstall is the command to install the pkg.The sysntax is
swinstall -s . after excuting this command analysis phase will start.After completing analysis phase it will give u the depndencies assocated with patch or software.
Reagrds
atul
For success, attitude is equally as important as ability

Re: what is the option in swinstall to check pkg is able to install required machine or not?

No my question is not to install pkg only to check the pkg is able to install or not.

Suppose I will write a script for install pkgs. 1st I need to check pkgs able to install or not if not I will not install the pks otherwise I will go for install.
Ralph Grothe
Honored Contributor

Re: what is the option in swinstall to check pkg is able to install required machine or not?

Hi,

the easiest in advance checks have already been mentioned.
However, you can for instance separately query if a depot has any prerequisites (other depots that need to be installed before this depot can be installed), or corequisites (depots that need to be installed before the executable in this depot can run after installation),
provided the depot packager had cared to mention such dependencies at depot build.
This maybe could be useful in a script.
e.g.
$ /usr/sbin/swlist -l fileset -a prerequisites -a corequistes -s /path/to/package.depot
Madness, thy name is system administration