Operating System - HP-UX
1823063 Members
3180 Online
109645 Solutions
New Discussion юеВ

Package preparation with compression flags

 
Prabu_3
Frequent Advisor

Package preparation with compression flags

I am using swpackage command to prepare a depot package. I want to compress the files when it is packaged. I tried using "-x compress_files=true" but it gave the following error message as :

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

Then I passed "-x reinstall_files=true". Now it didn't give any error message but it didn't compress the binaries and libraries.

How do I compress the files in a depot package?.
8 REPLIES 8
Muthukumar_5
Honored Contributor

Re: Package preparation with compression flags

which hp-ux version you tried there?!? uname -a

how did you try to create package there? Did you try any other options related with.

-x reinstall_files=true means,
it will not check system weather source file is available or not there. It is not related to compression there.

swpackage -s -x compress_files=true @ /tmp/test.depot

what is it saying?
Easy to suggest when don't know about the problem!
Zygmunt Krawczyk
Honored Contributor

Re: Package preparation with compression flags

Hi,

the option -x compress_files=true may be used with swcopy only. My solution is:

step 1
swcopy -s source_depot -x compress_files=true \* @ compressed_depot

step 2
swpackage -s compressed_depot ...

Regards,
Zygmunt
Prabu_3
Frequent Advisor

Re: Package preparation with compression flags

it is HP-UX B.11.11 (PA-RISC)
on 9000/800 server.
Prabu_3
Frequent Advisor

Re: Package preparation with compression flags

compress_file=true can be used for swpackage also.
Muthukumar_5
Honored Contributor

Re: Package preparation with compression flags

We can use compress_files=true with swpackage there. We can not use uncompress_files onlyy there. It is for swcopy there.

I am sure you have used some more options with compress_files there. what did u try it?

It is good to keep track problem right there.
Easy to suggest when don't know about the problem!
Zygmunt Krawczyk
Honored Contributor

Re: Package preparation with compression flags

Hi,

for swpackage you can't use compress_files=true together with target_type=tape

So my solution mentioned earlier is right.

Regards,
Zygmunt
Prabu_3
Frequent Advisor

Re: Package preparation with compression flags

I am able to compress the files using gzip with the following command:

swpackage -x follow_symlink=true -x compression_type=gzip -x compress_cmd=/usr/contrib/bin/gzip -x compress_files=true -x write_remote_files=true -x package_in_place=false -x target_type=directory -x compress_index=false -s TEST.psf @ /var/tmp/TST

I am trying to use bzip2 command for compression by using the following flag:

-x compression_type=bzip2 -x compress_cmd=/usr/contrib/bin/bzip2
-x uncompress_cmd=/usr/contrib/bin/bzip2

But package preparation succeeds. But when I try to install it fails and using the swjob command, I could that it is trying to access /usr/contrib/bin/gunzip command. I don't know why it is looking for this binary?.
Zygmunt Krawczyk
Honored Contributor

Re: Package preparation with compression flags

You can set up variables in /var/adm/sw/defaults file.

Read the file /usr/lib/sw/sys.defaults

Regards,
Zygmunt