Operating System - HP-UX
1824365 Members
3334 Online
109669 Solutions
New Discussion юеВ

consolidate many individual depots into one depot

 
Yan Wong
Frequent Advisor

consolidate many individual depots into one depot

Hi Folks,

I have many individual software depots. Please tell the commands and procedure to combine them into one big depot file.

Rgds,
Yan
4 REPLIES 4
Jon Finley
Honored Contributor

Re: consolidate many individual depots into one depot

You'll need to use the swcopy command.

Here's an older script that HP had:
------------------------------------------

Below is an example of a non-interactive script.

Warning: This script is not supported.

Essentially, the swcopy file in simple english does these thing:

-s = the source depot file
-x = special options, here I turn off the enforce dependencies
\* = everything in the depot file
@ = right before the destination depot I'm creating

!/usr/bin/sh
# Combines seperate depot files into a depot under this directory
# swcopy -s /tmp/PATCH1_NAME.depot PATCH1_NAME @ /tmp/patch_depot
tohere="/home/root/tmp/patch_download/patch_downloads"
for thedepot in *depot
do
swcopy -s "$tohere/$thedepot" -x enforce_dependencies=false \* @
"$tohere/m31abggd_patch_depot"
done

--------------------------

Jon
"Do or do not. There is no try!" - Yoda
kish_1
Valued Contributor

Re: consolidate many individual depots into one depot

use swcopy
swcopy -s {source depot1} \* @ {target depot}
share the power of the knowledge
Norman_21
Honored Contributor

Re: consolidate many individual depots into one depot

Hi Yan,

Here is a step by step procedure to combine all depots into one:

HP patches as delivered by the Response Center or the HP Web site are shar files consisting of a product depot and README file.
1.Copy your patches into a separate directory.
2. Unshar the patches by typing these line:
#cd /patch_directory
#for i in PH*
do
sh $i
done
3.Combine all these separate depots into one depot.
To do this, use the swcopy command. First, create the directory to store the patches:
#mkdir /tmp/patch_depot (or where ever you wish)
4.Now take the patch depots and copy them into the target depot by typing these lines:
#for i in PH*.depot
do
swcopy -x enforce_dependencies=false -x mount_all_filessystems=false -s ${PWD} /$i \* @ /tmp/patch_depot
done
5. Check /var/adm/sw/swagent.log and swcopy.log if you recieve any errors.
6. To verify the contents of the depot:
#swlist -d @ /tmp/patch_depot
6. Now install them
#swinstall -s /tmp/patch_depot

This proc. was received from HP and I did it successfully.
Hope this help.

Good luck.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Yan Wong
Frequent Advisor

Re: consolidate many individual depots into one depot

Thanks