Operating System - HP-UX
1753880 Members
7158 Online
108809 Solutions
New Discussion

how to swpackage compress files into a depot

 
yangk
Frequent Advisor

how to swpackage compress files into a depot

Because the depot that is too large,I want to compress files when building a depot.I use the following command to build a depot:
swpackage -d name.depot -s psf_file -x compress_files=TRUE -x compress_cmd=/usr/contrib/bin/gzip -x target_type=tape

But there is some errors like:

ERROR: The option "compress_files=TRUE" cannot be specified with:
uncompress_files = TRUE or
reinstall_files = FALSE or
package_in_place = TRUE or
target_type = tape

So how could I compress files when swpackage into a dept?Thanks!
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: how to swpackage compress files into a depot

Unfortunately you need to do:
1) swpackage to a directory depot
2) swcopy to compress it
3) swpackage to create a tape depot

If would be nice if that error message pointed out which option was not valid. In your case you had "tape" but I was trying to combine 1) & 2) but that also failed.