To uncompress the .gz file, use the following steps:
1. Download gzip, a compression utility that is part of the GNU project. We suggest downloading the complete package from Sourceforge.net here:
2. Install the utility
3. Run the following command:
gzip -d -a checkpoint.N.gz
The above command deletes the .gz file after a successful decompression. To uncompress and not delete the file, use a command like this:
gzip -c -d -a checkpoint.N.gz > output-file-name.N
After extracting Perforce checkpoint or journal files using a different utility, the MD5 sum differs
This checksum mismatch is expected. For historical reasons, Perforce Server uses UNIX line endings in compressed files. Journals and checkpoints on Windows are expected to have Windows line endings, however most compression utilities do not convert line endings when extracting .gz files. In such cases, there will be a checksum mismatch.
To correct the issue, use the gzip
command listed above to extract the files. If needed you can re-compress the file to GZIP format before running the command. Regardless of the line-ending style used by the checkpoint or journal files, they will be read correctly by Perforce Server regardless of whether the MD5 checksum value matches or not.