How To Install cairo.x86_64 on Amazon Linux 2

In this tutorial we learn how to install cairo.x86_64 in Amazon Linux 2. cairo.x86_64 is A 2D graphics library

Introduction

In this tutorial we learn how to install cairo.x86_64 on Amazon Linux 2.

What is cairo.x86_64

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 to install cairo.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install cairo.x86_64.

Install cairo.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install cairo.x86_64 using yum by running the following command:

sudo yum -y install cairo.x86_64

How To Uninstall cairo.x86_64 on Amazon Linux 2

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

sudo yum remove cairo.x86_64

cairo.x86_64 Package Contents on Amazon Linux 2

/usr/bin/cairo-sphinx
/usr/lib64/libcairo-script-interpreter.so.2
/usr/lib64/libcairo-script-interpreter.so.2.11512.0
/usr/lib64/libcairo.so.2
/usr/lib64/libcairo.so.2.11512.0
/usr/share/doc/cairo-1.15.12
/usr/share/doc/cairo-1.15.12/AUTHORS
/usr/share/doc/cairo-1.15.12/BIBLIOGRAPHY
/usr/share/doc/cairo-1.15.12/BUGS
/usr/share/doc/cairo-1.15.12/NEWS
/usr/share/doc/cairo-1.15.12/README
/usr/share/licenses/cairo-1.15.12
/usr/share/licenses/cairo-1.15.12/COPYING
/usr/share/licenses/cairo-1.15.12/COPYING-LGPL-2.1
/usr/share/licenses/cairo-1.15.12/COPYING-MPL-1.1

References

Summary

In this tutorial we learn how to install cairo.x86_64 on Amazon Linux 2 using yum.