How To Install ghc-setenv on Fedora 36

In this tutorial we learn how to install ghc-setenv in Fedora 36. ghc-setenv is Cross-platform library for setting environment variables

Introduction

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

What is ghc-setenv

A cross-platform library for setting environment variables Note by ‘System.Environment’. ‘System.SetEnv’ merily re-exports those functions when built with ‘base >= 4.7’.

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

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

sudo dnf -y install ghc-setenv

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

sudo yum -y install ghc-setenv

How To Uninstall ghc-setenv on Fedora 36

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

sudo dnf remove ghc-setenv

ghc-setenv Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/fd0d71dd67fe19398f4777475a58eaaaf7559f
/usr/lib64/libHSsetenv-0.1.1.3-ADyKsIah1zg4WlxP7oqCU1-ghc8.10.5.so
/usr/share/licenses/ghc-setenv
/usr/share/licenses/ghc-setenv/LICENSE

References

Summary

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