How To Install cairo on Fedora 34

cairo is A 2D graphics library A 2D graphics library

Introduction

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

What is cairo

Cairo is a 2D graphics library designed to provide high-quality display and print output. Currently supported output targets include the X Window System, in-memory image buffers, and image files (PDF, PostScript, and SVG). Cairo is designed to produce consistent output on all output media while taking advantage of display hardware acceleration when available. cairo 1.17.4 3.fc34 x86_64 671 k cairo-1.17.4-3.fc34.src.rpm fedora A 2D graphics library http LGPLv2 or MPLv1.1 Cairo is a 2D graphics library designed to provide high-quality display and print output. Currently supported output targets include the X Window System, in-memory image buffers, and image files (PDF, PostScript, and SVG). Cairo is designed to produce consistent output on all output media while taking advantage of display hardware acceleration when available.

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

Install cairo 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 cairo using dnf by running the following command:

sudo dnf -y install cairo

Install cairo 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 cairo using yum by running the following command:

sudo yum -y install cairo

How To Uninstall cairo on Fedora 34

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

sudo dnf remove cairo

cairo Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/f72b46cfadeb66d8b32f12829d7bf529ecad5b
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/29597c1931f13790fe9f07db89faebecc9b763
/usr/lib/libcairo-script-interpreter.so.2
/usr/lib/libcairo-script-interpreter.so.2.11704.0
/usr/lib/libcairo.so.2
/usr/lib/libcairo.so.2.11704.0
/usr/share/doc/cairo
/usr/share/doc/cairo/AUTHORS
/usr/share/doc/cairo/BIBLIOGRAPHY
/usr/share/doc/cairo/BUGS
/usr/share/doc/cairo/NEWS
/usr/share/doc/cairo/README
/usr/share/licenses/cairo
/usr/share/licenses/cairo/COPYING
/usr/share/licenses/cairo/COPYING-LGPL-2.1
/usr/share/licenses/cairo/COPYING-MPL-1.1
/usr/lib/.build-id
/usr/lib/.build-id/27
/usr/lib/.build-id/27/94c3138f990e6082e341898f1b8e6a471189f7
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/366b408035fcccca362ca9e7a5d43758e7e2c6
/usr/lib64/libcairo-script-interpreter.so.2
/usr/lib64/libcairo-script-interpreter.so.2.11704.0
/usr/lib64/libcairo.so.2
/usr/lib64/libcairo.so.2.11704.0
/usr/share/doc/cairo
/usr/share/doc/cairo/AUTHORS
/usr/share/doc/cairo/BIBLIOGRAPHY
/usr/share/doc/cairo/BUGS
/usr/share/doc/cairo/NEWS
/usr/share/doc/cairo/README
/usr/share/licenses/cairo
/usr/share/licenses/cairo/COPYING
/usr/share/licenses/cairo/COPYING-LGPL-2.1
/usr/share/licenses/cairo/COPYING-MPL-1.1

References

Summary

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