1836535 Members
3697 Online
110102 Solutions
New Discussion

Patches

 
Jeff Hagstrom
Regular Advisor

Patches

I tried loading this patch and this the error I got.
swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/patches/PHCO_23963.depot

ERROR: There is currently no depot software on host "hpk4603" at
location "/var/spool/sw".
* Source connection failed for "hpk4603:/var/spool/sw".

I have a couple patches to load, is there a way to append all the patches together into one depot and then load that one depot?
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Patches

Hi Jeff:

To unshar and collect a series of patches into a depot and load them in mass, do this:

# cd /tmp
# for X in PH*
> do
> sh $X
> done
# mkdir /tmp/patches
# for X in /tmp/PH*.depot
> do
> swcopy -s /tmp/${X} \* @ /tmp/patches
> done

...then use /tmp/patches as your depot for 'swinstall'.

Regards!

...JRF...
Sanjay_6
Honored Contributor

Re: Patches

Hi Jeff,

Looks like name resolution problem to me. Is your system able to resolve the name and IP.

nslookup
>server_name
>ip_address

You can create a single package and load all the patches at the same time. use swpackage to do this. Do "man swpackage" for more info.

hope this helps.

thanks
Santosh Nair_1
Honored Contributor

Re: Patches

Jeff,

You could use the swcopy command to create a depot with all the patches that you want to install together. Syntax would be:

swcopy -s \* @

This will create a directory named which you can use as the source for swinstall, i.e.

swinstall -s

select your patches and install.


Also in the swinstall command you listed, you seem to have a stray \...or was this indicating continuation of line?

-Santosh
Life is what's happening while you're busy making other plans
A. Clay Stephenson
Acclaimed Contributor

Re: Patches

Hi Jeff,

I think that should be -x match_target=true and yes you can copy many patches to a depot (and it does not have to be /var/adm/swdepot)
and then mark as many of them for install as you like using swinstall.

The easist method is to use SAM->Software Management->Copy Software to Depot
to create the depot and add patches to it

Then when ready to install, you specify the depot location as the source. This depot can also be accessed by remote machines so that one depot can serve many clients.

Clay
If it ain't broke, I can fix that.