How To Install cogl on CentOS 8

cogl is A library for using 3D graphics hardware to draw pretty pictures A library for using 3D graphics hardware to draw pretty pictures

Introduction

In this tutorial we learn how to install cogl on CentOS 8.

What is cogl

Cogl is a small open source library for using 3D graphics hardware to draw pretty pictures. The API departs from the flat state machine style of OpenGL and is designed to make it easy to write orthogonal components that can render without stepping on each others toes. As well aiming for a nice API, we think having a single library as opposed to an API specification like OpenGL has a few advantages too; like being able to paper over the inconsistencies/bugs of different OpenGL implementations in a centralized place, not to mention the myriad of OpenGL extensions. It also means we are in a better position to provide utility APIs that help software developers since they only need to be implemented once and there is no risk of inconsistency between implementations. Having other backends, besides OpenGL, such as drm, Gallium or D3D are options we are interested in for the future. cogl 1.22.2 10.el8 x86_64 478 k cogl-1.22.2-10.el8.src.rpm appstream A library for using 3D graphics hardware to draw pretty pictures http LGPLv2+ Cogl is a small open source library for using 3D graphics hardware to draw pretty pictures. The API departs from the flat state machine style of OpenGL and is designed to make it easy to write orthogonal components that can render without stepping on each others toes. As well aiming for a nice API, we think having a single library as opposed to an API specification like OpenGL has a few advantages too; like being able to paper over the inconsistencies/bugs of different OpenGL implementations in a centralized place, not to mention the myriad of OpenGL extensions. It also means we are in a better position to provide utility APIs that help software developers since they only need to be implemented once and there is no risk of inconsistency between implementations. Having other backends, besides OpenGL, such as drm, Gallium or D3D are options we are interested in for the future.

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

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

sudo dnf -y install cogl

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

sudo yum -y install cogl

How To Uninstall cogl on CentOS 8

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

sudo dnf remove cogl

cogl Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/36
/usr/lib/.build-id/36/188676aeef2df67be783322dd129185eff46cb
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/708359850ad42b15e221e4e556725cacb3dbc0
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/39c38ca62f484da4644986bdf9056fec4cf99f
/usr/lib64/girepository-1.0/Cogl-1.0.typelib
/usr/lib64/girepository-1.0/Cogl-2.0.typelib
/usr/lib64/girepository-1.0/CoglPango-1.0.typelib
/usr/lib64/girepository-1.0/CoglPango-2.0.typelib
/usr/lib64/libcogl-pango.so.20
/usr/lib64/libcogl-pango.so.20.4.2
/usr/lib64/libcogl-path.so.20
/usr/lib64/libcogl-path.so.20.4.2
/usr/lib64/libcogl.so.20
/usr/lib64/libcogl.so.20.4.2
/usr/share/doc/cogl
/usr/share/doc/cogl/NEWS
/usr/share/doc/cogl/README
/usr/share/licenses/cogl
/usr/share/licenses/cogl/COPYING
/usr/share/locale/an/LC_MESSAGES/cogl.mo
/usr/share/locale/ar/LC_MESSAGES/cogl.mo
/usr/share/locale/as/LC_MESSAGES/cogl.mo
/usr/share/locale/ast/LC_MESSAGES/cogl.mo
/usr/share/locale/be/LC_MESSAGES/cogl.mo
/usr/share/locale/bg/LC_MESSAGES/cogl.mo
/usr/share/locale/bs/LC_MESSAGES/cogl.mo
/usr/share/locale/ca/LC_MESSAGES/cogl.mo
/usr/share/locale/ca@valencia/LC_MESSAGES/cogl.mo
/usr/share/locale/cs/LC_MESSAGES/cogl.mo
/usr/share/locale/da/LC_MESSAGES/cogl.mo
/usr/share/locale/de/LC_MESSAGES/cogl.mo
/usr/share/locale/el/LC_MESSAGES/cogl.mo
/usr/share/locale/en_CA/LC_MESSAGES/cogl.mo
/usr/share/locale/en_GB/LC_MESSAGES/cogl.mo
/usr/share/locale/eo/LC_MESSAGES/cogl.mo
/usr/share/locale/es/LC_MESSAGES/cogl.mo
/usr/share/locale/eu/LC_MESSAGES/cogl.mo
/usr/share/locale/fa/LC_MESSAGES/cogl.mo
/usr/share/locale/fr/LC_MESSAGES/cogl.mo
/usr/share/locale/gl/LC_MESSAGES/cogl.mo
/usr/share/locale/he/LC_MESSAGES/cogl.mo
/usr/share/locale/hi/LC_MESSAGES/cogl.mo
/usr/share/locale/hu/LC_MESSAGES/cogl.mo
/usr/share/locale/id/LC_MESSAGES/cogl.mo
/usr/share/locale/it/LC_MESSAGES/cogl.mo
/usr/share/locale/ja/LC_MESSAGES/cogl.mo
/usr/share/locale/km/LC_MESSAGES/cogl.mo
/usr/share/locale/kn/LC_MESSAGES/cogl.mo
/usr/share/locale/ko/LC_MESSAGES/cogl.mo
/usr/share/locale/lt/LC_MESSAGES/cogl.mo
/usr/share/locale/lv/LC_MESSAGES/cogl.mo
/usr/share/locale/ml/LC_MESSAGES/cogl.mo
/usr/share/locale/nb/LC_MESSAGES/cogl.mo
/usr/share/locale/nl/LC_MESSAGES/cogl.mo
/usr/share/locale/oc/LC_MESSAGES/cogl.mo
/usr/share/locale/or/LC_MESSAGES/cogl.mo
/usr/share/locale/pa/LC_MESSAGES/cogl.mo
/usr/share/locale/pl/LC_MESSAGES/cogl.mo
/usr/share/locale/pt/LC_MESSAGES/cogl.mo
/usr/share/locale/pt_BR/LC_MESSAGES/cogl.mo
/usr/share/locale/ru/LC_MESSAGES/cogl.mo
/usr/share/locale/sk/LC_MESSAGES/cogl.mo
/usr/share/locale/sl/LC_MESSAGES/cogl.mo
/usr/share/locale/sr/LC_MESSAGES/cogl.mo
/usr/share/locale/sr@latin/LC_MESSAGES/cogl.mo
/usr/share/locale/sv/LC_MESSAGES/cogl.mo
/usr/share/locale/ta/LC_MESSAGES/cogl.mo
/usr/share/locale/te/LC_MESSAGES/cogl.mo
/usr/share/locale/th/LC_MESSAGES/cogl.mo
/usr/share/locale/tr/LC_MESSAGES/cogl.mo
/usr/share/locale/ug/LC_MESSAGES/cogl.mo
/usr/share/locale/uk/LC_MESSAGES/cogl.mo
/usr/share/locale/vi/LC_MESSAGES/cogl.mo
/usr/share/locale/zh_CN/LC_MESSAGES/cogl.mo
/usr/share/locale/zh_HK/LC_MESSAGES/cogl.mo
/usr/share/locale/zh_TW/LC_MESSAGES/cogl.mo
/usr/lib/.build-id
/usr/lib/.build-id/56
/usr/lib/.build-id/56/b48cdb1ff2415c68b8a145271b03a128ffdd2b
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/34a602a8ea0bcb0ef1e009eb15bdeb972e4cbb
/usr/lib/.build-id/93
/usr/lib/.build-id/93/cea8cdefa831f306dc4efb894a20730f079634
/usr/lib/girepository-1.0/Cogl-1.0.typelib
/usr/lib/girepository-1.0/Cogl-2.0.typelib
/usr/lib/girepository-1.0/CoglPango-1.0.typelib
/usr/lib/girepository-1.0/CoglPango-2.0.typelib
/usr/lib/libcogl-pango.so.20
/usr/lib/libcogl-pango.so.20.4.2
/usr/lib/libcogl-path.so.20
/usr/lib/libcogl-path.so.20.4.2
/usr/lib/libcogl.so.20
/usr/lib/libcogl.so.20.4.2
/usr/share/doc/cogl
/usr/share/doc/cogl/NEWS
/usr/share/doc/cogl/README
/usr/share/licenses/cogl
/usr/share/licenses/cogl/COPYING
/usr/share/locale/an/LC_MESSAGES/cogl.mo
/usr/share/locale/ar/LC_MESSAGES/cogl.mo
/usr/share/locale/as/LC_MESSAGES/cogl.mo
/usr/share/locale/ast/LC_MESSAGES/cogl.mo
/usr/share/locale/be/LC_MESSAGES/cogl.mo
/usr/share/locale/bg/LC_MESSAGES/cogl.mo
/usr/share/locale/bs/LC_MESSAGES/cogl.mo
/usr/share/locale/ca/LC_MESSAGES/cogl.mo
/usr/share/locale/ca@valencia/LC_MESSAGES/cogl.mo
/usr/share/locale/cs/LC_MESSAGES/cogl.mo
/usr/share/locale/da/LC_MESSAGES/cogl.mo
/usr/share/locale/de/LC_MESSAGES/cogl.mo
/usr/share/locale/el/LC_MESSAGES/cogl.mo
/usr/share/locale/en_CA/LC_MESSAGES/cogl.mo
/usr/share/locale/en_GB/LC_MESSAGES/cogl.mo
/usr/share/locale/eo/LC_MESSAGES/cogl.mo
/usr/share/locale/es/LC_MESSAGES/cogl.mo
/usr/share/locale/eu/LC_MESSAGES/cogl.mo
/usr/share/locale/fa/LC_MESSAGES/cogl.mo
/usr/share/locale/fr/LC_MESSAGES/cogl.mo
/usr/share/locale/gl/LC_MESSAGES/cogl.mo
/usr/share/locale/he/LC_MESSAGES/cogl.mo
/usr/share/locale/hi/LC_MESSAGES/cogl.mo
/usr/share/locale/hu/LC_MESSAGES/cogl.mo
/usr/share/locale/id/LC_MESSAGES/cogl.mo
/usr/share/locale/it/LC_MESSAGES/cogl.mo
/usr/share/locale/ja/LC_MESSAGES/cogl.mo
/usr/share/locale/km/LC_MESSAGES/cogl.mo
/usr/share/locale/kn/LC_MESSAGES/cogl.mo
/usr/share/locale/ko/LC_MESSAGES/cogl.mo
/usr/share/locale/lt/LC_MESSAGES/cogl.mo
/usr/share/locale/lv/LC_MESSAGES/cogl.mo
/usr/share/locale/ml/LC_MESSAGES/cogl.mo
/usr/share/locale/nb/LC_MESSAGES/cogl.mo
/usr/share/locale/nl/LC_MESSAGES/cogl.mo
/usr/share/locale/oc/LC_MESSAGES/cogl.mo
/usr/share/locale/or/LC_MESSAGES/cogl.mo
/usr/share/locale/pa/LC_MESSAGES/cogl.mo
/usr/share/locale/pl/LC_MESSAGES/cogl.mo
/usr/share/locale/pt/LC_MESSAGES/cogl.mo
/usr/share/locale/pt_BR/LC_MESSAGES/cogl.mo
/usr/share/locale/ru/LC_MESSAGES/cogl.mo
/usr/share/locale/sk/LC_MESSAGES/cogl.mo
/usr/share/locale/sl/LC_MESSAGES/cogl.mo
/usr/share/locale/sr/LC_MESSAGES/cogl.mo
/usr/share/locale/sr@latin/LC_MESSAGES/cogl.mo
/usr/share/locale/sv/LC_MESSAGES/cogl.mo
/usr/share/locale/ta/LC_MESSAGES/cogl.mo
/usr/share/locale/te/LC_MESSAGES/cogl.mo
/usr/share/locale/th/LC_MESSAGES/cogl.mo
/usr/share/locale/tr/LC_MESSAGES/cogl.mo
/usr/share/locale/ug/LC_MESSAGES/cogl.mo
/usr/share/locale/uk/LC_MESSAGES/cogl.mo
/usr/share/locale/vi/LC_MESSAGES/cogl.mo
/usr/share/locale/zh_CN/LC_MESSAGES/cogl.mo
/usr/share/locale/zh_HK/LC_MESSAGES/cogl.mo
/usr/share/locale/zh_TW/LC_MESSAGES/cogl.mo

References

Summary

In this tutorial we learn how to install cogl on CentOS 8 using yum and dnf.