How To Install ghc-magic on Fedora 36
Introduction
In this tutorial we learn how to install ghc-magic
on Fedora 36.
What is ghc-magic
This package provides a Haskell interface to the C libmagic library. With it, you can determine the type of a file by examining its contents rather than its name. The Haskell interface provides a full-featured binding.
We can use yum
or dnf
to install ghc-magic
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-magic.
Install ghc-magic 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-magic
using dnf
by running the following command:
sudo dnf -y install ghc-magic
Install ghc-magic 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-magic
using yum
by running the following command:
sudo yum -y install ghc-magic
How To Uninstall ghc-magic on Fedora 36
To uninstall only the ghc-magic
package we can use the following command:
sudo dnf remove ghc-magic
ghc-magic Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/3632f387cc3d0d9cf18fafa90e1ebd6be85ae1
/usr/lib64/libHSmagic-1.1-ACgJfsTtmRc6ULiEKeUBqR-ghc8.10.5.so
/usr/share/licenses/ghc-magic
/usr/share/licenses/ghc-magic/COPYING
References
Summary
In this tutorial we learn how to install ghc-magic
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).