Wkhtmltopdf version for Cloud Linux

1.1k views Asked by At

I have CloudLinux release 7.6 in my server and I used to have wkhtmltopdf linux generic version 0.12.4 previously. I am trying to upgrade wkhtmltopdf to version 0.12.5 and I noticed they no longer have generic linux version.

  1. How do I install the latest version of wkhtmltopdf in my server that uses CloudLinux?

  2. Can I safely install and use the 0.12.5 version for CentOS 7 instead or is my only option is to continue using the 0.12.4 generic linux version on CloudLinux?

2

There are 2 answers

0
Neel On

I have installed the CentOS 7 build version of Wkhtmltopdf in my CloudLinux Release 7 and its works fine. I have been using it in my production server for a week now and havent had any issues. Since CentOS and CloudLinux are RHEL compatible, it works fine.

I installed the binaries like this:

$ wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm
$ rpm -Uvh  wkhtmltox-0.12.5-1.centos7.x86_64.rpm
$ which wkhtmltopdf
/usr/local/bin/wkhtmltopdf

Thanks to @Rup in comments who helped me with this.

0
JamesA On

For those who are using Cloud Linux and need to install the latest version (now 12.6) - you might get dependancy errors using the above method.

I used:

yum install -y https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos7.x86_64.rpm

Based on suggestion by ashkulz on Github