How To Install ghc-pcap on Fedora 36
Introduction
In this tutorial we learn how to install ghc-pcap
on Fedora 36.
What is ghc-pcap
Haskell bindings for libpcap. Libpcap provides a portable framework for low-level network monitoring. Libpcap can provide network statistics collection, security monitoring and network debugging. Since almost every system vendor provides a different interface for packet capture, the libpcap authors created this system-independent API to ease in porting and to alleviate the need for several system-dependent packet capture modules in each application. Install libpcap if you need to do low-level network traffic monitoring on your network.
We can use yum
or dnf
to install ghc-pcap
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-pcap.
Install ghc-pcap 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-pcap
using dnf
by running the following command:
sudo dnf -y install ghc-pcap
Install ghc-pcap 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-pcap
using yum
by running the following command:
sudo yum -y install ghc-pcap
How To Uninstall ghc-pcap on Fedora 36
To uninstall only the ghc-pcap
package we can use the following command:
sudo dnf remove ghc-pcap
ghc-pcap Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/95ae31926079bf66ef497934bbb4283ca4a17d
/usr/lib64/libHSpcap-0.4.5.2-LfYMTQevFTj2Xp0fRa6cFp-ghc8.10.5.so
/usr/share/licenses/ghc-pcap
/usr/share/licenses/ghc-pcap/LICENSE
References
Summary
In this tutorial we learn how to install ghc-pcap
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).