Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 8 down vote accepted

Yes.

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 http://www.ietf.org/rfc/rfc4880.txt 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
3  
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.