How To Install Gzip?
Maintainer: Bdale Garbee
Email: [email protected] .
Website: https://www.gnu.org/software/gzip/
Section: utils
Install gzip
-
Debian
apt-get install gzipClick to copy -
Ubuntu
apt-get install gzipClick to copy -
Alpine OS
apk add gzipClick to copy -
Arch Linux
pacman -S gzipClick to copy -
Kali Linux
apt-get install gzipClick to copy -
CentOS
yum install gzipClick to copy -
Fedora
dnf install gzipClick to copy -
Raspbian
apt-get install gzipClick to copy -
macOS
brew install gzipClick to copy
Compress/uncompress files with gzip compression (LZ77).
How to use gzip?
Below are few example commands for gzip that you can use in the terminal.
Compress a file, replacing it with a gzipped compressed version:gzip file.extClick to copyDecompress a file, replacing it with the original uncompressed version:gzip -d file.ext.gzClick to copyCompress a file specifying the output filename:gzip -c file.ext > compressed_file.ext.gzClick to copyUncompress a gzipped file specifying the output filename:gzip -c -d file.ext.gz > uncompressed_file.extClick to copySpecify the compression level. 1=Fastest (Worst), 9=Slowest (Best), Default level is 6:gzip -9 -c file.ext > compressed_file.ext.gzClick to copy
To install the latest version of gzip in your favorite operating system just copy the gzip installation command from above and paste it into terminal. It will download and install the latest version of gzip 2026 package in your OS.




