How To Install netplug on Fedora 36

In this tutorial we learn how to install netplug in Fedora 36. netplug is Daemon that responds to network cables being plugged in and out

Introduction

In this tutorial we learn how to install netplug on Fedora 36.

What is netplug

Netplug is a daemon that manages network interfaces in response to link-level events such as cables being plugged in and out. When a cable is plugged into an interface, the netplug daemon brings that interface up. When the cable is unplugged, the daemon brings that interface back down. This is extremely useful for systems such as laptops, which are constantly being unplugged from one network and plugged into another, and for moving systems in a machine room from one switch to another without a need for manual intervention.

We can use yum or dnf to install netplug on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install netplug.

Install netplug 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 netplug using dnf by running the following command:

sudo dnf -y install netplug

Install netplug 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 netplug using yum by running the following command:

sudo yum -y install netplug

How To Uninstall netplug on Fedora 36

To uninstall only the netplug package we can use the following command:

sudo dnf remove netplug

netplug Package Contents on Fedora 36

/etc/netplug.d
/etc/netplug.d/netplug
/etc/netplug.d/netplugd.conf
/usr/lib/.build-id
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/1b5c4959a5a6810a54ffc73fd5c5fd43d4a800
/usr/lib/systemd/system/netplugd.service
/usr/sbin/netplugd
/usr/share/doc/netplug
/usr/share/doc/netplug/COPYING
/usr/share/doc/netplug/README
/usr/share/doc/netplug/TODO
/usr/share/man/man5/netplug.5.gz
/usr/share/man/man5/netplug.d.5.gz
/usr/share/man/man5/netplugd.conf.5.gz
/usr/share/man/man8/netplugd.8.gz

References

Summary

In this tutorial we learn how to install netplug on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).