How To Install wkhtmltopdf on Fedora 34

wkhtmltopdf is Simple shell utility to convert html to pdf Simple shell utility to convert html to pdf

Introduction

In this tutorial we learn how to install wkhtmltopdf on Fedora 34.

What is wkhtmltopdf

Simple shell utility to convert html to pdf using the webkit rendering engine, and qt. wkhtmltopdf 0.12.6 1.fc34.1 x86_64 212 k wkhtmltopdf-0.12.6-1.fc34.1.src.rpm fedora Simple shell utility to convert html to pdf http GPLv3+ Simple shell utility to convert html to pdf using the webkit rendering engine, and qt.

We can use yum or dnf to install wkhtmltopdf on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install wkhtmltopdf.

Install wkhtmltopdf on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install wkhtmltopdf using dnf by running the following command:

sudo dnf -y install wkhtmltopdf

Install wkhtmltopdf on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install wkhtmltopdf using yum by running the following command:

sudo yum -y install wkhtmltopdf

How To Uninstall wkhtmltopdf on Fedora 34

To uninstall only the wkhtmltopdf package we can use the following command:

sudo dnf remove wkhtmltopdf

wkhtmltopdf Package Contents on Fedora 34

/usr/bin/wkhtmltoimage
/usr/bin/wkhtmltopdf
/usr/lib/.build-id
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/60f33057018f2a745620de260c99e3f292e803
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/5e3b0268c9cf7536fbff6fd91330497c27f056
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/7ce2cbb0a610df89132ee45b8cf1ae524aecca
/usr/lib/libwkhtmltox.so.0
/usr/lib/libwkhtmltox.so.0.12
/usr/lib/libwkhtmltox.so.0.12.6
/usr/share/doc/wkhtmltopdf
/usr/share/doc/wkhtmltopdf/AUTHORS
/usr/share/doc/wkhtmltopdf/CHANGELOG-OLD
/usr/share/doc/wkhtmltopdf/CHANGELOG.md
/usr/share/doc/wkhtmltopdf/README.md
/usr/share/licenses/wkhtmltopdf
/usr/share/licenses/wkhtmltopdf/LICENSE
/usr/share/man/man1/wkhtmltoimage.1.gz
/usr/share/man/man1/wkhtmltopdf.1.gz
/usr/bin/wkhtmltoimage
/usr/bin/wkhtmltopdf
/usr/lib/.build-id
/usr/lib/.build-id/44
/usr/lib/.build-id/44/b8138b0d4d07e17ac8886b7a192eff594716fa
/usr/lib/.build-id/47
/usr/lib/.build-id/47/6c89d79e1029ecaae55a60788629f362a0d84e
/usr/lib/.build-id/76
/usr/lib/.build-id/76/756d3c717a5d5c636ada391a2e0539a939355a
/usr/lib64/libwkhtmltox.so.0
/usr/lib64/libwkhtmltox.so.0.12
/usr/lib64/libwkhtmltox.so.0.12.6
/usr/share/doc/wkhtmltopdf
/usr/share/doc/wkhtmltopdf/AUTHORS
/usr/share/doc/wkhtmltopdf/CHANGELOG-OLD
/usr/share/doc/wkhtmltopdf/CHANGELOG.md
/usr/share/doc/wkhtmltopdf/README.md
/usr/share/licenses/wkhtmltopdf
/usr/share/licenses/wkhtmltopdf/LICENSE
/usr/share/man/man1/wkhtmltoimage.1.gz
/usr/share/man/man1/wkhtmltopdf.1.gz

References

Summary

In this tutorial we learn how to install wkhtmltopdf on Fedora 34 using yum and dnf.