fix-qdf: command not found. Install fix-qdf on CentOS 7

Error :

fix-qdf: command not found

bash: /usr/bin/fix-qdf: 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. fix-qdf command 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 CentOS7 / Redhat 7 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
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 2:30:10 ago on Sat May 23 12:05:30 2020.
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

1. Log into centos 7 as root user

2. Download and install qpdf rpm from CentOS website

# wget

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.