zlib, amazon linux 2,

Install Zlib on Amazon Linux 2

Nov 19, 2022 · 1 min read · Post a comment

Usually, zlib comes preinstalled with most of the Amazon Linux images. But in case you get: bash: zlib: command not found then you need to install zlib on Amazon Linux 2.


  • Amazon Linux 2
  • sudo privileges

Install Zlib on Amazon Linux 2

Step 1. Update the packages.

sudo yum update

Step 2. Install zlib.

sudo yum install qpdf

Step 3. Verify the installation.

zlib-flate --version


zlib-flate version 1.0


Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.