Operating System - HP-UX
1820595 Members
1254 Online
109626 Solutions
New Discussion юеВ

Extracting files from a software depot

 
Chad Brackelsberg
Occasional Contributor

Extracting files from a software depot

Is there a way to extract the files from a software depot without having to install the depot?
5 REPLIES 5
G. Vrijhoeven
Honored Contributor

Re: Extracting files from a software depot

Hi,

You are able to install a bundle or an product depot. Ik you just need one fileset just use swremove to remove the other filesets!.

Gidoen
Leif Halvarsson_2
Honored Contributor

Re: Extracting files from a software depot

Hi,
If you dont want to install the all the software first and remove you can use swcopy first to unpack the depot (for example in /var/spool/sw). From this location you can copy any file you want.
Martin Johnson
Honored Contributor

Re: Extracting files from a software depot

Why would you want to extract the files without installing the depot? Installing the depot insures that all the parts and pieces needed to run a program are in place and properly configured.

Extracting the files without an installation leaves you open to version mismatches and unpredictable behavior.

Murphy is alive and well and looking for opportunities. Don't tempt him.

HTH
Marty
Wodisch
Honored Contributor

Re: Extracting files from a software depot

Hi Chad,

simply use some of those "-x" options to NOT let "swcopy" stumble on dependencies.
How about
swcopy -x enforce_dependencies=false -x allow_incompatible=true -x allow_multiple_versions=true -x autoselect_dependencies=false -x enforce_dsa=false -x mount_all_filesystems=false

HTH,
Wodisch
Dietmar Konermann
Honored Contributor

Re: Extracting files from a software depot

If you need a real simple way to extract files from a depot then you can simply use tar(1), since a depot file is in fact a tar archive.

You may need to gunzip(1) or uncompress(1) the extracted files afterwards if the depot was in compressed format... BTW, this may also be true if you look into a depot directory created by swcopy(1M) unless -x uncompress_files=true was specified.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)