zlib-flate: command not found. Install zlib-flate on CentOS 7

Error :

bash: zlib-flate: command not found

bash: /usr/bin/zlib-flate: No such file or directory

I got the above error on my CentOS 7 server. To fix this error you must install qpdf package on your centos server. zlib-flate is provided by qpdf package.
qpdf is an free command line program used to convert PDF file to another PDF format.

Do the below steps to install qpdf on your CentOS / Redhat server

1. Log into your CentOS / RHEL server as ‘root’ user

2. Run the command “yum install qpdf” to install this package

command :

# yum install qpdf

# yum provides qpdf
[root@server src]# yum install qpdf
Dependencies resolved.
Package Architecture Version Repository Size
qpdf x86_64 7.1.1-10.el8 AppStream 61 k
Installing dependencies:
libjpeg-turbo x86_64 1.5.3-10.el8 AppStream 156 k
qpdf-libs x86_64 7.1.1-10.el8 AppStream 338 k
perl-Carp noarch 1.42-396.el8 BaseOS 30 k
perl-Errno x86_64 1.28-416.el8 BaseOS 76 k
perl-Exporter noarch 5.72-396.el8 BaseOS 34 k
perl-File-Path noarch 2.15-2.el8 BaseOS 38 k
perl-IO x86_64 1.38-416.el8 BaseOS 141 k
perl-PathTools x86_64 3.74-1.el8 BaseOS 90 k
perl-Scalar-List-Utils x86_64 3:1.49-2.el8 BaseOS 68 k
perl-Socket x86_64 4:2.027-3.el8 BaseOS 59 k
perl-Text-Tabs+Wrap noarch 2013.0523-395.el8 BaseOS 24 k
perl-Unicode-Normalize x86_64 1.25-396.el8 BaseOS 82 k
perl-constant noarch 1.33-396.el8 BaseOS 25 k
perl-interpreter x86_64 4:5.26.3-416.el8 BaseOS 6.3 M
perl-libs x86_64 4:5.26.3-416.el8 BaseOS 1.6 M
perl-macros x86_64 4:5.26.3-416.el8 BaseOS 72 k
perl-parent noarch 1:0.237-1.el8 BaseOS 20 k
perl-threads x86_64 1:2.21-2.el8 BaseOS 61 k
perl-threads-shared x86_64 1.58-2.el8 BaseOS 48 k

Transaction Summary
Install 20 Packages

Total download size: 9.3 M
Installed size: 23 M
Is this ok [y/N]: y


Alternate way to install qpdf (zlib-flate: command)

1. Log into centos 7 as root user

2. Download and install qpdf rpm from CentOS website

# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/qpdf-5.0.1-3.el7.x86_64.rpm

3. Install the downloaded rpm using yum command

# yum install qpdf-5.0.1-3.el7.x86_64.rpm

This will install the required dependencies


you can install the downloaded rpm file using rpm command

#rpm -ivh qpdf-5.0.1-3.el7.x86_64.rpm

Note : You must install the required dependencies before installing with rpm command or you will see missing dependency error.