Operating System - HP-UX
1834599 Members
3915 Online
110069 Solutions
New Discussion

How to change /var/spool/sw depot path

 
SOLVED
Go to solution
mogiro
Regular Advisor

How to change /var/spool/sw depot path

Hi,
I want to create a depot folder in a server to store the depot files to be accessed from another servers by swinstall. How can I do that?
Thanks in advance
8 REPLIES 8
Ivan Krastev
Honored Contributor

Re: How to change /var/spool/sw depot path

use:

#swreg -l depot /path/


regards,
ivan
mogiro
Regular Advisor

Re: How to change /var/spool/sw depot path

Yes, I've tried it before, but:

ERROR: Failed to register soc on "/tmp/depots" for root@setlet1.
"/tmp/depots" is not a valid depot.

However if a run swreg -l depot /tmp/depots/file1.depot
file by file, it works. But the idea is from a remote system, choose all the depots at one time to be installed, as I can do with the depots in /var/spool/sw.

Good try!!
Dennis Handly
Acclaimed Contributor

Re: How to change /var/spool/sw depot path

>I want to create a depot folder

This is just a directory that contains depots.

>However if a run swreg -l depot ... file by file, it works.

Yes, you must register each depot. Or when you use swcopy to create the depot, it will register it automatically.

>choose all the depots at one time to be installed, as I can do with the depots in /var/spool/sw.

You can't. You probably only have one depot in /var/spool/sw.
You must install from one depot at a time. I.e. put all the software in a giant depot.
Ivan Krastev
Honored Contributor

Re: How to change /var/spool/sw depot path

First create a directory for storing files - /depot_path

After that register it as a depot:
# swreg -l depot /depot_path

and copy all desired software from .depot files to depot directory:
# swcopy -x enforce_dependencies=false -s /tmp/file.depot \@ /depot_path

regards,
ivan
Dennis Handly
Acclaimed Contributor
Solution

Re: How to change /var/spool/sw depot path

>Ivan: First create a directory for storing files - /depot_path

Technically you don't need to do this. swcopy will do it for you.
I would suggest you treat a depot as a thingy and that you let the SD tools manipulate it.

> ... \@ ...

That's: \* @ ...
V. Nyga
Honored Contributor

Re: How to change /var/spool/sw depot path

Hi,

you can create such a folder with 'swcopy' from your depot to a directory.
You have to do it for every depot once.
Then you've a directory with a collection of depots (patches, sw).

If you prefer a GUI, you can start 'swcopy' and 'swinstall' alone, then you'll get a GUI where you can choose different things, for ex. for installation a 'source host name' and a 'source depot path'.

You can create different pathes for different os (11.0, 11i, ...) or different levels or configuration dates.

Volkmar
*** Say 'Thanks' with Kudos ***
TTr
Honored Contributor

Re: How to change /var/spool/sw depot path

> But the idea is from a remote system,
> choose all the depots at one time to be
> installed, as I can do with the depots
> in /var/spool/sw

The keyphrase here is "choose all depots at one time". You can not do this the way they are right now because each depot is its own independent depot.

You have to use swpackage and combine all individual depots into one big one. To use swpackage you must untar each depot to its own SEPARATE folder and use swpackage repeatedly

swpackage -s depot1-folder @ new-big-depot
swpackage -s depot2-folder @ new-big-depot
swpackage -s depot3-folder @ new-big-depot
and so on

Then you can use swinstall with new-big-depot as the source and select any or all of the products in there.
mogiro
Regular Advisor

Re: How to change /var/spool/sw depot path

Finally, these are the steps I followed to solve the issue:
1. mkdir /tmp/depot_path
2. swreg -l depot /tmp/depot_path
3. swcopy -x enforce_dependencies=false -s /tmp/file.depot \@ /tmp/depot_path

Thanks to all you!!