Operating System - HP-UX
1830231 Members
1826 Online
109999 Solutions
New Discussion

Is it possible to... (swinstall question)

 
jmb
Regular Advisor

Is it possible to... (swinstall question)

Is it possible to run the swinstall command (to either preview or install) for a patch bundle that is NOT in a pre-defined depot?
7 REPLIES 7
Greg Vaidman
Respected Contributor

Re: Is it possible to... (swinstall question)

By predefined, do you mean registered (swreg -l depot )?

Or are you thinking about a patch bundle that does not come in SD depot format?

Or something else entirely?
jmb
Regular Advisor

Re: Is it possible to... (swinstall question)

Yes, installing a bundle from a directory that is not registered as a depot.
Patrick Wallek
Honored Contributor

Re: Is it possible to... (swinstall question)

If you run swinstall interactively you can have it do the analysis. You can then hit CANCEL and get out without installing patches.

Yes you can do this against individual patches or directories that aren't registered as depots. Just point swinstall to that location when the screen comes up and go from there.
jmb
Regular Advisor

Re: Is it possible to... (swinstall question)

What if I don't want to do it interactively, but need to do it from the command line?
Patrick Wallek
Honored Contributor

Re: Is it possible to... (swinstall question)

Well, have a look at the swinstall man page and see what options are available. At this point I can't remember if there is a preview option for command line swinstall.
Greg Vaidman
Respected Contributor

Re: Is it possible to... (swinstall question)

you can install from an unregistered depot without any issues.

for a preview:

swinstall -p -s [@ ]

then you can fully install it by rerunning the above command and omitting the "-p"

--greg
jmb
Regular Advisor

Re: Is it possible to... (swinstall question)

Command line does handle preview. And Greg, the line that you provided causes the TUI to fire up. In order to keep the TUI from starting, I add in "-x patch_match_target=true -x autoreboot=true".

It then works from CL, in both preview and non-preview, and also works with the -s source using either a depot directory or non-registered directory.

I was overly concerned about -s requiring a registered directory, and just proved to myself it does not need to be.

Mountain out of a molehill. Thanks for your suggestions.