How To Install ghc-wcwidth on Fedora 36

In this tutorial we learn how to install ghc-wcwidth in Fedora 36. ghc-wcwidth is Haskell wcwidth library

Introduction

In this tutorial we learn how to install ghc-wcwidth on Fedora 36.

What is ghc-wcwidth

This package provides the Haskell wcwidth library.

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

Install ghc-wcwidth on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install ghc-wcwidth

Install ghc-wcwidth on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install ghc-wcwidth

How To Uninstall ghc-wcwidth on Fedora 36

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

sudo dnf remove ghc-wcwidth

ghc-wcwidth Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/20
/usr/lib/.build-id/20/2f0fe775fa64bfce258c228f2edad5d550a1af
/usr/lib64/libHSwcwidth-0.0.2-45vc1V32rdt9NOjwsS0tDw-ghc8.10.5.so
/usr/share/licenses/ghc-wcwidth
/usr/share/licenses/ghc-wcwidth/LICENSE

References

Summary

In this tutorial we learn how to install ghc-wcwidth on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).