Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

According to docs you can use -z and --compress-level etc but does not specify if you omit -z or other ...-level params if it still compresses.

share|improve this question
up vote 15 down vote accepted


If compression-use can be specified by the --compress-algo name option and the default is to 'ZIP'. The default compression level is '6':

--compress-algo n Use compress algorithm n.

Default is 2 which is RFC1950 compression. You may use 1 to use the old zlib version (RFC1951) which is used by PGP. The default algorithm may give better results because the window size is not limited to 8K. If this is not used the OpenPGP behavior is used, i.e. the compression algorithm is selected from the preferences; note, that this can't be done if you do not encrypt the data.

You might also want to read to get an idea of what GPG actually does (point 2.3 and 9.3 describe compression).

share|improve this answer
how to tell gpg to not use any compression? using -z 0 does not help. – Alex May 22 '12 at 6:55
by using --compress-algo 0 or --compress-algo none. why would you want to not use compression, btw? – akira May 22 '12 at 6:57
when the goal is to encrypt only, not to compress (e.g. for performance improvements or when the encrypted data is already compressed) – Alex May 22 '12 at 7:07
just tested --compress-also none works (actually -z 0 also works, at the time I did not test properly) – Alex May 22 '12 at 7:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .