Operating System - HP-UX
1843345 Members
3277 Online
110214 Solutions
New Discussion

My FileSystem as software depot

 
SOLVED
Go to solution
Kurtkarl
Frequent Advisor

My FileSystem as software depot

Hi,

I have a unused/huge filesystem which I intend to copy all hpux application cd's into this filesystem.

How would I configure this FS (ex. /depot) to be a software depot for swinstall to recognized once a users from a different workstation wants to install an application from this depot?

Thanks in advance
Jose
Just starting to learn thru this forum
5 REPLIES 5
Kofi ARTHIABAH
Honored Contributor

Re: My FileSystem as software depot

The command you want is swreg. do a man on swreg

it will be something like this:
1. export the /depot fs as an nfs filesystem
2. On each workstation do a
swreg -l depot server:/depot



nothing wrong with me that a few lines of code cannot fix!
James R. Ferguson
Acclaimed Contributor
Solution

Re: My FileSystem as software depot

Hi:

From document #W3646794:

To create a patch depot for your patches, swcopy all the patches into a depot on your system. The patches must have been unshared because you need access to the depot file from within the patch.

Here is an example of how to do this using 2 patches. Where you see the string "PATCH1_NAME", you would substitute the name of thefirst patch; where you see the string "PATCH2_NAME", you would substitute the name of the second patch.

1. Enter the following commands:

# swcopy -s /tmp/PATCH1_NAME.depot PATCH1_NAME @ /tmp/patch_depot

# swcopy -s /tmp/PATCH2_NAME.depot PATCH2_NAME @ /tmp/patch_depot

2. List out the contents of the depot with:

# swlist -s /tmp/patch_depot

3. swinstall all the patches at the same time, instead of having to individually do each one.

4. Unregister the temporary depot you just created with:

# swreg -u -l depot /tmp/depot

5. Remove the directory and contents from the system.

...JRF...
Joel Shank
Valued Contributor

Re: My FileSystem as software depot

Hi Jose

I do something similar to this with the Patch Bundle CD. Use swcopy to copy all the software to the depot. You will have to do this once for each Application CD. Do the following:

Mount the first CD, then get into
swcopy
(when asked for the target, enter: /depot/SEP2000) or whatever name you want.
When the list of software is displayed, select everything, then go to Action and select Copy.
When the copy is done, get out of swcopy and mount the next CD.
Follow the same steps, using the same target name. swcopy will add the software to the depot.

Do this for each CD.

That's it. When completed, you'll have a single depot called SEP2000 (or whatever) that contains all your software. You can use this as a remote depot for all your servers.

Hope this helps,
JLS
Kurtkarl
Frequent Advisor

Re: My FileSystem as software depot

Kofi,

After copying all 5 hpux application cd's on my /depot filesystem and run swinstall on the same machine where /depot resides an error occurred which is:
"There is currently no depot software pm at location /depot"

Any ideas?

Thanks again
Jose
Just starting to learn thru this forum
Joel Shank
Valued Contributor

Re: My FileSystem as software depot

How did you copy the CD to /depot? If you use swcopy, it will create a software depot and will automatically register it as a depot.

JLS