How To Install ghc-threads on CentOS 7
Introduction
In this tutorial we learn how to install ghc-threads
on CentOS 7.
What is ghc-threads
This package provides functions to fork threads and wait for their result, whether it’s an exception or a normal value. Besides waiting for the termination of a single thread this packages also provides functions to wait for a group of threads to terminate. This package is similar to the @threadmanager@, @async@ and @spawn@ packages. The advantages of this package are * Simpler API. * More efficient in both space and time. * No space-leak when forking a large number of threads. * Correct handling of asynchronous exceptions. * GHC specific functionality like @forkOn@ and @forkIOWithUnmask@.
We can use yum
or dnf
to install ghc-threads
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-threads.
Install ghc-threads on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install ghc-threads
using yum
by running the following command:
sudo yum -y install ghc-threads
Install ghc-threads on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install ghc-threads
using dnf
by running the following command:
sudo dnf -y install ghc-threads
How To Uninstall ghc-threads on CentOS 7
To uninstall only the ghc-threads
package we can use the following command:
sudo dnf remove ghc-threads
References
Summary
In this tutorial we learn how to install ghc-threads
on CentOS 7 using yum
and dnf
.