How To Install ghc-containers on AlmaLinux 8

In this tutorial we learn how to install ghc-containers in AlmaLinux 8. ghc-containers is Haskell containers library

Introduction

In this tutorial we learn how to install ghc-containers on AlmaLinux 8.

What is ghc-containers

This package provides the Haskell containers library.

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

Install ghc-containers on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install ghc-containers

Install ghc-containers on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install ghc-containers

How To Uninstall ghc-containers on AlmaLinux 8

To uninstall only the ghc-containers package we can use the following command:

sudo dnf remove ghc-containers

References

Summary

In this tutorial we learn how to install ghc-containers on AlmaLinux 8 using yum and dnf.