How To Install ghc-gitrev on Fedora 36
Introduction
In this tutorial we learn how to install ghc-gitrev
on Fedora 36.
What is ghc-gitrev
Some handy Template Haskell splices for including the current git hash and branch in the code of your project. Useful for including in panic messages, ‘–version’ output, or diagnostic info for more informative bug reports.
We can use yum
or dnf
to install ghc-gitrev
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-gitrev.
Install ghc-gitrev 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-gitrev
using dnf
by running the following command:
sudo dnf -y install ghc-gitrev
Install ghc-gitrev 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-gitrev
using yum
by running the following command:
sudo yum -y install ghc-gitrev
How To Uninstall ghc-gitrev on Fedora 36
To uninstall only the ghc-gitrev
package we can use the following command:
sudo dnf remove ghc-gitrev
ghc-gitrev Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/af48060a68fedbd96c53624f32c0ee3d24b16b
/usr/lib64/libHSgitrev-1.3.1-IeAYO8QUG62LW4J3MUanQA-ghc8.10.5.so
/usr/share/licenses/ghc-gitrev
/usr/share/licenses/ghc-gitrev/LICENSE
References
Summary
In this tutorial we learn how to install ghc-gitrev
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).