The zlib compression library is intended for the compression and decompression of files, including integrity checks of decompressed data. This library can also optionally read and write gzip streams in memory.
The zlib format was primarily designed to be compact and fast, for use in memory and communication channels.
So, let’s get our hands dirty!
Visit the official website and download the latest stable version:
Open the terminal and enter the directory where the library was saved:
| |
Extract the file into the "/opt" directory:
| |
Enter the directory where the file was extracted:
| |
For a standard installation run the command below, you can change the installation directory if you want.
| |
Now just install:
| |