Operating System - HP-UX
1855494 Members
2911 Online
104111 Solutions
New Discussion

How to apply xxx.depot files on hpux 11.11

 
SOLVED
Go to solution
Frank de Vries
Respected Contributor

How to apply xxx.depot files on hpux 11.11

I have downloaded a couple of xxx.depot files
from hp website.
I try to install with swinstall but it doesn't understand. I tried with swcopy but that is hanging.

Can someone give me the correct commandline procedure for installing xxx.depot files for hpux pa_risc 11.11 so I can check where I go wrong .

Thanks
Look before you leap
8 REPLIES 8
Torsten.
Acclaimed Contributor
Solution

Re: How to apply xxx.depot files on hpux 11.11

"but it doesn't understand" - me too.
Any errors/messages? How about your command?

In general it works like this:

swinstall -s /full/path/to/dep.depot

(interactive) or

swinstall -s /full/path/to/dep.depot \*

(basically the same for swcopy).

Compare the checksum of the depot to ensure it is not corrupted.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Frank de Vries
Respected Contributor

Re: How to apply xxx.depot files on hpux 11.11

swinstall says that my depot path
is /install/depot
It found a bundle there which I put there.
It installed it no problem.
Then I copied about 6 xxx.depot files
for other stuff int that depot
run swinstall again, it only sees
the old bundle

Surely they can't all be corrupt ?
Look before you leap
Torsten.
Acclaimed Contributor

Re: How to apply xxx.depot files on hpux 11.11

"Then I copied about 6 xxx.depot files
for other stuff int that depot"

copy (cp) or swcopy?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dennis Handly
Acclaimed Contributor

Re: How to apply xxx.depot files on hpux 11.11

>I have downloaded a couple of xxx.depot files
from hp website.

If you have downloaded multiple patches, you can get a script to install all at once.

>swinstall says that my depot path is /install/depot

You should create a new temp directory and start with that.

>Then I copied about 6 xxx.depot files for other stuff into that depot run swinstall again, it only sees the old bundle

Can you show the commands you did?
Typically you would do:
for depot in *.depot; do
swcopy -x enforce_dependencies=false \
-s $PWD/$depot @ $PWD/big.depot \*
done
# swinstall -s $PWD/big.depot \*
Doug Burton
Respected Contributor

Re: How to apply xxx.depot files on hpux 11.11

Not sure which of these things you can use here so I'll just toss it out there.

To find out what depots you have on your server:
cat /var/adm/sw/host_object | grep path | awk '{print $2}'

To unregister those depots, type:
swreg -u -l depot /path/to/depot

To make your own depot:

Assume you have two patches - PHNE_20000 and PHNE_20001.
Unshare the patches by typing the following commands.
sh PHNE_20000
sh PHNE_20001

Create a new software depot in the directory /newdir/depot
mkdir /newdir/depot
swpackage -s PHNE_20000.depot -d /newdir/depot

Register your new depot:
swreg -l depot /newdir/depot

Copy the next patch to the newly created software depot:
swcopy -s `pwd`/PHNE_20001.depot PHNE_20001 @ /newdir/depot

Install your patches.
swinstall -s /newdir/depot

Hope that helps.
Dennis Handly
Acclaimed Contributor

Re: How to apply xxx.depot files on hpux 11.11

>Doug: To find out what depots you have on your server:

Wouldn't "swlist -l depot" be easier?

>Create a new software depot in the directory
swpackage -s PHNE_20000.depot -d /newdir/depot

You should not be seduced over to the SD darkside. (These are not the droids you are looking for. :-) If there are N ways to use SD tools, you should use the obvious, swcopy, not swpackage:
# swcopy -s $PWD/PHNE_20000.depot \* @ /newdir/depot

You should only use swpackage to create the initial depot or a tape depot.

>Register your new depot:

swcopy does that automatically.
Frank de Vries
Respected Contributor

Re: How to apply xxx.depot files on hpux 11.11

Thanks for you comments albeit it most of them postscriptum.

What I did was I copied (with plain cp )
the downloaded xxx.depot files to the registered depot path. Which in my case happenes to be /install/depot.

Then I run:
swinstall -s /install/depot/xx1.depot
and that worked. (Thanks to the first replier!)
Then I run:
swinstall -s /install/depot/xx2.depot
and so on.

Now I understand I could have done all this all in one go. Nice to know for the future.

Main thing though , job got done and in time.
successfully.

cheerio maties :))

Look before you leap
Dennis Handly
Acclaimed Contributor

Re: How to apply xxx.depot files on hpux 11.11

>What I did was I copied (with plain cp) the downloaded xxx.depot files to the registered depot path.

There is no benefit of copying them there, they aren't part of the "registered depot" since you didn't use swcopy. You can swinstall from anywhere.

>Now I understand I could have done all this all in one go.

The main purpose of this is so you don't have to reboot N times.