General
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.