1825897 Members
3057 Online
109689 Solutions
New Discussion

Re: Swinstall & Depots

 
Andrew Beal
Frequent Advisor

Swinstall & Depots

 
5 REPLIES 5
Tom Geudens
Honored Contributor

Re: Swinstall & Depots

Hi Andrew,
You first have to "unshar" the PH* files.
Example :
#sh PHSS_26360
This will give you a PHSS_26360.depot file, which you can copy to a depot ...
Example :
#swcopy -s /var/adm/crash/PHSS_26360.depot \* @ /var/adm/crash/depot

Regards,
Tom Geudens

P.S. When you download a number of patches (in tar or zip format) from HP there is (these days) a script called create_depot_* included in the download. You might want to use that.
A life ? Cool ! Where can I download one of those from ?
Michael Tully
Honored Contributor

Re: Swinstall & Depots

Seems you have a number of patches in /var/spool/sw
These look fairly old. You may wish to generate a new depot for the later patches and clean up the old depot later.

To load the patches from /home/beala01/patches you could do this:

Create depot files

# for i in PH*
> do
> sh $i
> done

# mkdir depot
# for i in PH*.depot
> do
> swcopy -s ${PWD}/$i \* @ /home/beala01/patches/patch
> done

Then run swinstall interactively (no options) pick the depot and you should be okay. One thing to note that if a file is not complete, it will bomb out and the rest will continue to register into the depot.
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: Swinstall & Depots

The depot directory should read:

/home/beala01/patches/depot
not
/home/beala01/patches/patch

Sorry my typing skills are terrible ...
Anyone for a Mutiny ?
Ravi_8
Honored Contributor

Re: Swinstall & Depots

Hi Andrew

you need to create depot to install multiple patches in one shot

assume all yourpatches under /tmp
#cd /tmp
#for i in PH*
do
sh $i
done

will create .text and depot files for all the patches

# mkdir patch_depot
for i i PH*.depot
do
swcopy -s ${PWD}/$i \* @ /tmp/patch_depot
done

will create bundle under /tmp/patch_depot

#swinstall -s /tmp/patch_depot

will install all the patches
never give up
Tom Geudens
Honored Contributor

Re: Swinstall & Depots

Hi again Andrew,
I noticed I did not exactly "explain" what's going on ... Here goes.
1. You download patches from HP. Put those in a temporary directory (I use a specifically created /install directory for it, some people use /var/adm/crash).
2. If you've got the create_depot* script in the download, use that to automatically create a depot (in my case that would be /install/depot). You may also create a depot yourself. In other to do that you need to unshar all the patches (sh PHxx_xxxxxx). The result are ".depot" files. Don't confuse those with a "depot". A ".depot" file is the tape-equivalent of a depot and used for easy transport. Use swcopy to copy all the .depot files to a depot of your choice(/install/my_depot for example). Note that the order of copying is important (so its easier to use the create_depot* script).
3. Register the depot and install it with a swinstall-command.

Hope this explains,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?