How To Install cairo on CentOS 8
Introduction
In this tutorial we learn how to install cairo
on CentOS 8.
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.15.12 3.el8 x86_64 721 k cairo-1.15.12-3.el8.src.rpm appstream 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install cairo.
Install cairo on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8
To uninstall only the cairo
package we can use the following command:
sudo dnf remove cairo
cairo Package Contents on CentOS 8
/usr/bin/cairo-sphinx
/usr/lib/.build-id
/usr/lib/.build-id/29
/usr/lib/.build-id/29/dd89bdc846e9e986d9af7b643166772615cf86
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/37f24dfa158ba0b2ed50985c21cdd5fcd3405c
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/796549bdcfedd149be57d9a6990a04aa07e19d
/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
/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/bin/cairo-sphinx
/usr/lib/.build-id
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/68876aa49ff44bba7f44df4865c7d09615fc0e
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/109f9f8780b714ec499322c69c67ee07a8cd47
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/9be24bb07fe7de54efc555599d2ebf1789f843
/usr/lib/libcairo-script-interpreter.so.2
/usr/lib/libcairo-script-interpreter.so.2.11512.0
/usr/lib/libcairo.so.2
/usr/lib/libcairo.so.2.11512.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
- [cairo website](http://cairographics.org http://cairographics.org)
Summary
In this tutorial we learn how to install cairo
on CentOS 8 using yum and dnf.