How To Install perl-Cairo on Rocky Linux 8

In this tutorial we learn how to install perl-Cairo on Rocky Linux 8. perl-Cairo is Perl interface to the cairo library

Introduction

In this tutorial we learn how to install perl-Cairo on Rocky Linux 8.

What is perl-Cairo

Cairo provides Perl bindings for the vector graphics library cairo. It supports multiple output targets, including the X Window Systems, PDF, and PNG. Cairo produces identical output on all those targets and makes use of hardware acceleration wherever possible.

We can use yum or dnf to install perl-Cairo on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Cairo.

Install perl-Cairo on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-Cairo

Install perl-Cairo on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Cairo using yum by running the following command:

sudo yum -y install perl-Cairo

How To Uninstall perl-Cairo on Rocky Linux 8

To uninstall only the perl-Cairo package we can use the following command:

sudo dnf remove perl-Cairo

perl-Cairo Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/43
/usr/lib/.build-id/43/c1af047c89522b6fb910eff783a9e0305d5b81
/usr/lib64/perl5/vendor_perl/Cairo
/usr/lib64/perl5/vendor_perl/Cairo.pm
/usr/lib64/perl5/vendor_perl/Cairo/Install
/usr/lib64/perl5/vendor_perl/Cairo/Install/Files.pm
/usr/lib64/perl5/vendor_perl/Cairo/Install/cairo-perl-auto.h
/usr/lib64/perl5/vendor_perl/Cairo/Install/cairo-perl-auto.typemap
/usr/lib64/perl5/vendor_perl/Cairo/Install/cairo-perl.h
/usr/lib64/perl5/vendor_perl/Cairo/Install/cairo-perl.typemap
/usr/lib64/perl5/vendor_perl/Cairo/Install/doctypes
/usr/lib64/perl5/vendor_perl/auto/Cairo
/usr/lib64/perl5/vendor_perl/auto/Cairo/Cairo.so
/usr/share/doc/perl-Cairo
/usr/share/doc/perl-Cairo/ChangeLog.pre-git
/usr/share/doc/perl-Cairo/LICENSE
/usr/share/doc/perl-Cairo/NEWS
/usr/share/doc/perl-Cairo/README
/usr/share/doc/perl-Cairo/TODO
/usr/share/doc/perl-Cairo/examples
/usr/share/doc/perl-Cairo/examples/freetype-font.pl
/usr/share/doc/perl-Cairo/examples/glyph-text.pl
/usr/share/doc/perl-Cairo/examples/png
/usr/share/doc/perl-Cairo/examples/png-streams.pl
/usr/share/doc/perl-Cairo/examples/png/README
/usr/share/doc/perl-Cairo/examples/png/bevels.pl
/usr/share/doc/perl-Cairo/examples/png/caps_joins.pl
/usr/share/doc/perl-Cairo/examples/png/hering.pl
/usr/share/doc/perl-Cairo/examples/png/outline.pl
/usr/share/doc/perl-Cairo/examples/png/snapping.pl
/usr/share/doc/perl-Cairo/examples/png/spiral.pl
/usr/share/doc/perl-Cairo/examples/png/spline-pipeline.pl
/usr/share/doc/perl-Cairo/examples/png/splines_tolerance.pl
/usr/share/doc/perl-Cairo/examples/png/star_and_ring.pl
/usr/share/doc/perl-Cairo/examples/png/stars.pl
/usr/share/doc/perl-Cairo/examples/png/text-rotate.pl
/usr/share/doc/perl-Cairo/examples/png/text.pl
/usr/share/doc/perl-Cairo/examples/simple.pl
/usr/share/doc/perl-Cairo/examples/subclassing.pl
/usr/share/doc/perl-Cairo/examples/twisted-text.pl
/usr/share/man/man3/Cairo.3pm.gz

References

Summary

In this tutorial we learn how to install perl-Cairo on Rocky Linux 8 using yum and dnf.