How To Install libghc-xcb-types-dev on Ubuntu 18.04

In this tutorial we learn how to install libghc-xcb-types-dev on Ubuntu 18.04. libghc-xcb-types-dev is parses XML files used by the XCB project

Introduction

In this tutorial we learn how to install libghc-xcb-types-dev on Ubuntu 18.04.

What is libghc-xcb-types-dev

libghc-xcb-types-dev is:

This package provides types which mirror the structures used in the XCB code generation XML files.

See project http://xcb.freedesktop.org/ for more information about the XCB project.

The XML files describe the data-types, events and requests used by the X Protocol, and are used to auto-generate large parts of the XCB project.

This package parses these XML files into Haskell data structures.

If you want to do something with these XML descriptions but don’t want to learn XSLT, this package should help.

This version of xcb-types is intended to fully parse the X Protocol description version 1.4.

This package provides a library for the Haskell programming language. See http://www.haskell.org/ for more information on Haskell.

There are three methods to install libghc-xcb-types-dev on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libghc-xcb-types-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libghc-xcb-types-dev using apt-get by running the following command:

sudo apt-get -y install libghc-xcb-types-dev

Install libghc-xcb-types-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libghc-xcb-types-dev using apt by running the following command:

sudo apt -y install libghc-xcb-types-dev

Install libghc-xcb-types-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libghc-xcb-types-dev using aptitude by running the following command:

sudo aptitude -y install libghc-xcb-types-dev

How To Uninstall libghc-xcb-types-dev on Ubuntu 18.04

To uninstall only the libghc-xcb-types-dev package we can use the following command:

sudo apt-get remove libghc-xcb-types-dev

Uninstall libghc-xcb-types-dev And Its Dependencies

To uninstall libghc-xcb-types-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libghc-xcb-types-dev

Remove libghc-xcb-types-dev Configurations and Data

To remove libghc-xcb-types-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libghc-xcb-types-dev

Remove libghc-xcb-types-dev configuration, data, and all of its dependencies

We can use the following command to remove libghc-xcb-types-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libghc-xcb-types-dev

References

Summary

In this tutorial we learn how to install libghc-xcb-types-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.