1836574 Members
2475 Online
110102 Solutions
New Discussion

Re: Modifying SW depot

 
SOLVED
Go to solution
Eli_pok
Frequent Advisor

Modifying SW depot

Hi,
Could you please tell me how can I add a file to an existing depot, so that it will be copied to the same place the other files in the depot are copied ?


Thanks.
8 REPLIES 8
Ernesto Cappello
Trusted Contributor

Re: Modifying SW depot

Peter Leddy_1
Esteemed Contributor

Re: Modifying SW depot

Hi,

swcopy will do this for you, have a look at the man page for swcopy and it gives some examples of doing it.

Rgds,

Peter
Indrajit_1
Valued Contributor

Re: Modifying SW depot

Hi;

Try the following command;

#swcopy -s xxx

i.e

#swcopy -s /home/eli/file_name kernel-patch /swdepot/11.00/Patch

Hope this will resolve ur issue.

All the best

Cheers;
Indrajit Roy
Never Ever Give Up
James George_1
Trusted Contributor

Re: Modifying SW depot

Here is the command :

# swcopy -x mount_all_filesystems=false -x enforce_dependencies=false -s /yourdir/yourpatch.depot \* @hostname:/patchdepot where u want to copy .

Rgds / James
forum is for techies .....heaven is for those who are born again !!
James R. Ferguson
Acclaimed Contributor

Re: Modifying SW depot

Hi:

To add to James' comments, be sure to add '-x enforce_dependencies=false'. This allows the copy to proceed *without* requiring all patch dependencies to be satisfied just to create a depot. If you don't do this, and their are missing patch dependencies, the depot will not be created.

At the time of the actual installation (with 'swinstall') you use '-x enforce_dependencies=true') --- the default.

Thus at installation, dependency analysis is made and if satisfied, the patches are in fact installed.

Regards!

...JRF...
Bob E Campbell
Honored Contributor
Solution

Re: Modifying SW depot

You said "file" in your note, so I am assumming you mean a bare file. The swmodify option will work, but beware of modifying existing packages. What is a good idea now might not be as good once updates and patches are taken into account.

Rather than modifying an existing product, you can simply create a new product. I would recommend using Software Package Builder (SPB) as a starting point (http://www.docs.hp.com/en/SPB).

Once you have two products to be grouped together, you can create a bundle that contains all of the pieces you want. SPB can define bundles, or Ignite-UX make_bundles script can help with that.
Eli_pok
Frequent Advisor

Re: Modifying SW depot

I was probably misunderstood....

I have a depot :
/tmp/glance/

In that depot I have the following files :

ls /tmp/glance/Glance/GLANCE/opt/perf/bin/
glance glance.remove itose.remove

To those files I want to add my file (a script I wrote) so that it will be cpied with the other files in the install process.
I could not do it with your remarks (sorry).

Thaks.
Dennis Handly
Acclaimed Contributor

Re: Modifying SW depot

>I was probably misunderstood....

Bob and Ernesto got it right. ;-)
You probably shouldn't do that. The other answers were how to "merge" depots.

Ernesto's link had: Defining new objects.