The GZ file type is primarily associated with 'Gzip'. Ofter found in a double extension with TAR (e.g., .TAR.GZ) where the tarball is the archive which is then compressed using Gzip.
In computing, RAR is a proprietary file format, a lossless compression algorithm used for data compression and archiving, developed by the Russian software engineer Eugene Roshal. RAR uses a compression algorithm based on the LZSS which, in turn, is based on the LZ77, Thomas James Storer and Szymanski (1982). The dictionary size can vary between 64k and 4 Mb. The RAR is slower than ZIP, but has a higher compression ratio. RAR Another feature is that it has a better ZIP data redundancy. The format also allows what is known as a solid compression for compressing several files together, so that a single dictionary applies to all information, so that the compression is greater.