How To Install netplug on Fedora 34
Introduction
In this tutorial we learn how to install netplug
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install netplug.
Install netplug on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install netplug
using dnf
by running the following command:
sudo dnf -y install netplug
Install netplug on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the netplug
package we can use the following command:
sudo dnf remove netplug
netplug Package Contents on Fedora 34
/etc/netplug.d
/etc/netplug.d/netplug
/etc/netplug.d/netplugd.conf
/usr/lib/.build-id
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/3539d5fcf4baa4b69ea24baee827f9cf2adb33
/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 34 using yum and dnf.