Operating System - HP-UX
1754282 Members
3019 Online
108813 Solutions
New Discussion юеВ

Re: extract files from a .depot

 
SOLVED
Go to solution
Quark
Valued Contributor

extract files from a .depot

Hi,

I have a depot file that normally is installed with swinstall. However, there is a bug in the installation script in the depot.
Is it possible to just extract all the files in a depot without installing them.
I could then take a look at the install script and try to debug the script.

Any help much appreciated.


With kind regards,

Kris
6 REPLIES 6
Stephen Keane
Honored Contributor
Solution

Re: extract files from a .depot

A depot file is just a tar file. Use tar to extract the contents.

# tar xvf foo.depot

T G Manikandan
Honored Contributor

Re: extract files from a .depot

Try

mkdir /tmp/patch
cd /tmp/patch
tar -xvf /tmp/


Revert
Emanuele De Angelis
Frequent Advisor

Re: extract files from a .depot

Hi,
the depot it's like to tar file.
so you can extract file :

mkdir /tmpdirectory
mv foo.depot to /tmpdirectory
tar xvf foo.depot

Bye
Biswajit Tripathy
Honored Contributor

Re: extract files from a .depot

As others have already said, a depot is typically
(not always) a tar file and a file can be extracted by
"tar -xvf XXXX.depot" command.

If the depot is not a tar file (which, AFAIK, should be
rare), then it would be a directory with all bunch of
subdirectories inside it (each subdirectory
corresponding to a fileset that the depot contains).
So, to pullout a particular file, just use 'find' command
in the depot directory.

- Biswajit
:-)
Cesare Salvioni
Trusted Contributor

Re: extract files from a .depot

Hi everyone, I found this thread and I'd like to add somenthing, opening it will be usefull to someone:

the files in the depot file could be zipped also, so after extracting them with tar use gunzip to explode each one

bye
Bob E Campbell
Honored Contributor

Re: extract files from a .depot

tar works, but it can be easier to use swcopy. You can instruct swcopy to automatically uncompress files from a compressed depot:

# swcopy -s yourDepotHere -x enforce_dependencies=false -x uncompress_files=true \* @ newDepotHere