How To Install ghc-auto-update on Fedora 36
Introduction
In this tutorial we learn how to install ghc-auto-update
on Fedora 36.
What is ghc-auto-update
A common problem is the desire to have an action run at a scheduled interval, but only if it is needed. For example, instead of having every web request result in a new getCurrentTime call, we’d like to have a single worker thread run every second, updating an IORef. However, if the request frequency is less than once per second, this is a pessimization, and worse, kills idle GC. This library allows you to define actions which will either be performed by a dedicated thread or, in times of low volume, will be executed by the calling thread.
We can use yum
or dnf
to install ghc-auto-update
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-auto-update.
Install ghc-auto-update 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-auto-update
using dnf
by running the following command:
sudo dnf -y install ghc-auto-update
Install ghc-auto-update 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-auto-update
using yum
by running the following command:
sudo yum -y install ghc-auto-update
How To Uninstall ghc-auto-update on Fedora 36
To uninstall only the ghc-auto-update
package we can use the following command:
sudo dnf remove ghc-auto-update
ghc-auto-update Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/72
/usr/lib/.build-id/72/23a639a824fd8b9b4b42726b0fdf7ca443abad
/usr/lib64/libHSauto-update-0.1.6-EqPjhkKSyRmF54FhBf3SmR-ghc8.10.5.so
/usr/share/licenses/ghc-auto-update
/usr/share/licenses/ghc-auto-update/LICENSE
References
Summary
In this tutorial we learn how to install ghc-auto-update
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).