How To Install xcb-proto on CentOS 7

In this tutorial we learn how to install xcb-proto on CentOS 7. xcb-proto is XCB protocol descriptions

Introduction

In this tutorial we learn how to install xcb-proto on CentOS 7.

What is xcb-proto

XCB is a project to enable efficient language bindings to the X11 protocol. This package contains the protocol descriptions themselves. Language bindings use these protocol descriptions to generate code for marshalling the protocol.

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

Install xcb-proto on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install xcb-proto

Install xcb-proto on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install xcb-proto

How To Uninstall xcb-proto on CentOS 7

To uninstall only the xcb-proto package we can use the following command:

sudo dnf remove xcb-proto

References

Summary

In this tutorial we learn how to install xcb-proto on CentOS 7 using yum and dnf.