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.

I have a file that is compressed. I used a program to find out what kind of file it is and it says that it's a gpg file. How do you uncompress a gpg file?

share|improve this question
add comment

4 Answers 4

GPG is a free implementation of the OpenPGP standard: http://www.gnupg.org

It is used to encrypt and sign files not to compress them.

You do not state which system you are using but Google will help to find a free GPG implementation for your platform.

If you are using Linux you can for example:

$ gpg --output destination --decrypt sourcefile.gpg

but you will need the proper key.

share|improve this answer
add comment

If I recall completely, a 'gpg' file is encrypted rather than compressed.
What you need to do is use the gnupg tool to decrypt it -- of course using a key.
Or, its the security key file itself. In which case there is not data here, just the key to decrypt other encrypted data.

The decrypted file may then itself be compressed/archived in some other format,
which can be used to open its contents.

share|improve this answer
add comment

gpg, by default, compresses all encrypted data with zlib – to be more specific: zlib level 6 – which is similar to gzip. i recommend trying gunzip or gpg with the right key to decompress the file. please let me know weather this works or not. thanks

share|improve this answer
add comment

Use gunzip or bzip2 depending what is being used to archived the file.


for hass.txt.gz, or hass.txt.Z use it like this:

gunzip hass.txt.gz or gunzip hass.txt.Z. Depending on tar file.


for hass.txt.bz2:

bzip2 -d hass.txt.bz2 to unzip the file.

The -d in bzip2 stands for Decompressing the file. You must include it if you want to decompress such type of file.

check bzip2 --help or gunzip --help for more information on Ubuntu or Debian.

share|improve this answer
GPG is not a compression algorithm. The file is encrypted. Listing random compression tools will not help. –  Matteo Nov 2 '12 at 14:16
add comment

Your Answer


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.