How To Install libnet on Fedora 36
Introduction
In this tutorial we learn how to install libnet
on Fedora 36.
What is libnet
Libnet is an API to help with the construction and handling of network packets. It provides a portable framework for low-level network packet writing and handling (use libnet in conjunction with libpcap and you can write some really cool stuff). Libnet includes packet creation at the IP layer and at the link layer as well as a host of supplementary and complementary functionality.
We can use yum
or dnf
to install libnet
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libnet.
Install libnet 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 libnet
using dnf
by running the following command:
sudo dnf -y install libnet
Install libnet 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 libnet
using yum
by running the following command:
sudo yum -y install libnet
How To Uninstall libnet on Fedora 36
To uninstall only the libnet
package we can use the following command:
sudo dnf remove libnet
libnet Package Contents on Fedora 36
---
title: "How To Install libnet on Fedora 36"
linkTitle: "libnet"
type: "docs"
description: "In this tutorial we learn how to install libnet in Fedora 36. libnet is C library for portable packet creation and injection"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/libnet-featured.png
---
## Introduction
In this tutorial we learn how to install `libnet` on Fedora 36.
### What is `libnet`
> Libnet is an API to help with the construction and handling of network packets. It provides a portable framework for low-level network packet writing and handling (use libnet in conjunction with libpcap and you can write some really cool stuff). Libnet includes packet creation at the IP layer and at the link layer as well as a host of supplementary and complementary functionality.
We can use `yum` or `dnf` to install `libnet` on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libnet.
## Install libnet on Fedora 36 Using dnf
Update yum database with `dnf` using the following command.
```bash
sudo dnf makecache --refresh
After updating yum database, We can install libnet
using dnf
by running the following command:
sudo dnf -y install libnet
Install libnet 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 libnet
using yum
by running the following command:
sudo yum -y install libnet
How To Uninstall libnet on Fedora 36
To uninstall only the libnet
package we can use the following command:
sudo dnf remove libnet
libnet Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/65
/usr/lib/.build-id/65/0ce89974cdfc54955bcc30abf7fe277500825e
/usr/lib64/libnet.so.1
/usr/lib64/libnet.so.1.8.0
/usr/share/doc/libnet
/usr/share/doc/libnet/ChangeLog.md
/usr/share/doc/libnet/README.md
/usr/share/licenses/libnet
/usr/share/licenses/libnet/LICENSE
References
Summary
In this tutorial we learn how to install libnet
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).
/usr/lib/.build-id /usr/lib/.build-id/9d /usr/lib/.build-id/9d/616f1442c989b6bf3fdf928ef6ead464af9e8e /usr/lib/libnet.so.1 /usr/lib/libnet.so.1.8.0 /usr/share/doc/libnet /usr/share/doc/libnet/ChangeLog.md /usr/share/doc/libnet/README.md /usr/share/licenses/libnet /usr/share/licenses/libnet/LICENSE
## References
* [libnet website](https://github.com/libnet/libnet)
## Summary
In this tutorial we learn how to install `libnet` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).