Instantly share code, notes, and snippets.

Embed
What would you like to do?
yum install -y libpng
yum install -y libjpeg
yum install -y openssl
yum install -y icu
yum install -y libX11
yum install -y libXext
yum install -y libXrender
yum install -y xorg-x11-fonts-Type1
yum install -y xorg-x11-fonts-75dpi
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2/wkhtmltox-0.12.2_linux-centos7-amd64.rpm
rpm -Uvh wkhtmltox-0.12.2_linux-centos7-amd64.rpm
---- or ----
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
unxz wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar
mv wkhtmltox/bin/* /usr/local/bin/
rm -rf wkhtmltox
rm -f wkhtmltox-0.12.4_linux-generic-amd64.tar
@smash-wp

This comment has been minimized.

smash-wp commented Apr 24, 2017

Thank you very much!

@sagrawal31

This comment has been minimized.

sagrawal31 commented Apr 29, 2017

Awesome. The 2nd option worked for headless server.

@ishenkoyv

This comment has been minimized.

ishenkoyv commented Aug 2, 2017

Maybe update this gist with https://downloads.wkhtmltopdf.org/ as download.gna.org have been closed

@adamasantares

This comment has been minimized.

adamasantares commented Oct 24, 2017

@paulsturgess please update URL of rpm...

@kacimimoghite

This comment has been minimized.

kacimimoghite commented Oct 31, 2017

The 2nd option worked for me. Thank you

@AndreasFurster

This comment has been minimized.

AndreasFurster commented Nov 27, 2017

@Buy-Now-Depot

This comment has been minimized.

Buy-Now-Depot commented Jan 15, 2018

I thought the directions were flawless except instead of the package noted I used https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz instead
The download.gna.org seem to get stuck on connection from root

@saruman

This comment has been minimized.

saruman commented Apr 26, 2018

Thank you so much for this.
The second option worked for me.

@zellkz

This comment has been minimized.

zellkz commented Sep 25, 2018

Updated links to RPM located on official website:
https://wkhtmltopdf.org/downloads.html

@harinathebc

This comment has been minimized.

harinathebc commented Oct 3, 2018

Thank you...second option is working for me but the url is updated to wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment