Operating System - HP-UX
1837755 Members
3358 Online
110118 Solutions
New Discussion

Re: Patch Bundle installation

 
Noel Miranda
Frequent Advisor

Patch Bundle installation

Hi All,

Assume I have a XXX.depot file containing just one patch bundle XXX. What is the difference between the foll. two commands?

1. swinstall -x patch_match_target=true -s XXX.depot

2. swinstall -x patch_match_target=true -s XXX.depot XXX
10 REPLIES 10
Biswajit Tripathy
Honored Contributor

Re: Patch Bundle installation

1) One depot file might have multiple bundles which
you did not specify in case 1. So swinstall will open
a GUI window in this case and you can
interacctivitely select with bundles you want to install
and click to install it. This would be true even if you
have only one bundle in the depot (as in your
case).

2) Here, you are specifying that you want to install
XXX bundle. So, swinstall will not open any window
and does not require any GUI. You should use this
if you are calling swinstall from a shell script as this
does not require user interaction. If your depot has
multiple bundles and you want to install all of them,
then use:
swinstall -x patch_match_target=true -s XXX.depot \*

- Biswajit
:-)
Noel Miranda
Frequent Advisor

Re: Patch Bundle installation

Biswajit,

As mentioned earlier, there is omly one patch bundle in the depot

And the first command does not open the tui, it just goes ahead with the install.
Steven E. Protter
Exalted Contributor

Re: Patch Bundle installation

I would think the first command should fail to do anything.

swinstall -x patch_match_target=true -s XXX.depot

needs to be

swinstall -x patch_match_target=true -s /pull_path/XXX.depot \*

to do a full install.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Noel Miranda
Frequent Advisor

Re: Patch Bundle installation

What happened was that the first command selected fewer filesets to install than the second. Out of a total of appx. 1100 filesets, the first selected only around 130 whereas the second selected around 700.
Noel Miranda
Frequent Advisor

Re: Patch Bundle installation

Sorry, Steven. it does go through as I've mentioned. I just want to know why there is a difference. No documentation on this.
Biswajit Tripathy
Honored Contributor

Re: Patch Bundle installation

I don;t understand what documentation you want.
The first one will open up GUI and you select what
you want. For second one, you already select a
particular bundle in the depot. That's the difference.

- Biswajit
:-)
Biswajit Tripathy
Honored Contributor

Re: Patch Bundle installation

Don't use patch_match_target=true; make sure you
disable all settings in /var/adm/sw/defaults file
and try (1) again.

- Biswajit
:-)
Noel Miranda
Frequent Advisor

Re: Patch Bundle installation

I hate to repeat, but it does not invoke the gui. What I'd like to know is, when there is only that one bundle in the depot, why is there a difference in the number of filesets selected?

Any Ideas?
Noel Miranda
Frequent Advisor

Re: Patch Bundle installation

Without the patch_match_target=true, swinstall generates a lot of errors, mostly complaints about software not available. And it just exits.
Biswajit Tripathy
Honored Contributor

Re: Patch Bundle installation

Did you check /var/adm/sw/defaults ?

- Biswajit
:-)