How To Install ghc-base-compat on Fedora 36
Introduction
In this tutorial we learn how to install ghc-base-compat
on Fedora 36.
What is ghc-base-compat
Provides functions available in later versions of ‘base’ to a wider range of compilers, without requiring you to use CPP pragmas in your code. See the README for what is covered. Also see the changelog for recent changes. Note that ‘base-compat’ does not add any orphan instances. There is a separate package ‘base-orphans’ for that.
We can use yum
or dnf
to install ghc-base-compat
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-base-compat.
Install ghc-base-compat 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-base-compat
using dnf
by running the following command:
sudo dnf -y install ghc-base-compat
Install ghc-base-compat 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-base-compat
using yum
by running the following command:
sudo yum -y install ghc-base-compat
How To Uninstall ghc-base-compat on Fedora 36
To uninstall only the ghc-base-compat
package we can use the following command:
sudo dnf remove ghc-base-compat
ghc-base-compat Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/44
/usr/lib/.build-id/44/fbeead65032ff90964cfbcef23036955f50ea7
/usr/lib64/libHSbase-compat-0.11.2-Eyusxyk2CrTGloLdon9bIK-ghc8.10.5.so
/usr/share/licenses/ghc-base-compat
/usr/share/licenses/ghc-base-compat/LICENSE
References
Summary
In this tutorial we learn how to install ghc-base-compat
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).