Operating System - HP-UX
1753559 Members
5973 Online
108796 Solutions
New Discussion юеВ

How to extract files out of a depot to new location

 
SOLVED
Go to solution
mckiers
Occasional Advisor

How to extract files out of a depot to new location

I am looking for a tool or command, that can extract a depot,which contains a couple of binaries, to a location other than the path specified in the depot.
6 REPLIES 6
Ivan Krastev
Honored Contributor
Solution

Re: How to extract files out of a depot to new location

Swinstall option is "-r path".
See section for "Alternate Root Directory and Depot Directory" from this manual - http://docs.hp.com/en/B2355-60127/sd.5.html


regards,
ivan
Stefan Schulz
Honored Contributor

Re: How to extract files out of a depot to new location

Hi,

technical a *.depot file is a normal tar file. So you should be able to extract the desired files manually by using tar.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Bob E Campbell
Honored Contributor

Re: How to extract files out of a depot to new location

I am fighting the urge to ask "why" as picking and choosing files can lead to all sorts of support headaches (you have a really good reason, right ;-)

While tar (or pax) can read the file from a "tape-style" or serial depot, be aware that the files may be compressed without the usual suffixes. To expand you could rename or do something like:

cat FILE | gzcat > newFILE
Dennis Handly
Acclaimed Contributor

Re: How to extract files out of a depot to new location

I typically do two things based on whether a patch of a few files or a whole product.

For the latter I install to an alternate root them move in place.
For a patch I use tar.

>Bob: be aware that the files may be compressed without the usual suffixes.
cat FILE | gzcat > newFILE

It is a little silly to use cat here. ;-)
You can just use gunzip < FILE > newFILE.
But it is just easier to use the following so the permissions are correct:
$ mv FILE FILE.gz
$ gunzip FILE.gz
Dennis Handly
Acclaimed Contributor

Re: How to extract files out of a depot to new location

>Ivan: swinstall option is "-r path".

I would suggest you NOT use the obsolete -r option. Use @ abs-path instead. (-r doesn't take a path and @ must be used anyway.)
mckiers
Occasional Advisor

Re: How to extract files out of a depot to new location

The suggestions to use the -r worked great.
Thanks.