How To Install netmask on Fedora 34

netmask is Utility for determining network masks

Introduction

In this tutorial we learn how to install netmask on Fedora 34.

What is netmask

This is a handy tool for generating terse netmasks in several common formats. If you’ve ever maintained a firewall with more than a few rules in it, you might use netmask to clean up and generalize sloppy rules left by the network administrator before you. It will also convert netmasks from one format to another for the day you change your firewall software.

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

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

sudo dnf -y install netmask

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

sudo yum -y install netmask

How To Uninstall netmask on Fedora 34

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

sudo dnf remove netmask

netmask Package Contents on Fedora 34

/usr/bin/netmask
/usr/lib/.build-id
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/cca3ae19572c8de9ce35bd0a8fd95d72e8d7e8
/usr/share/doc/netmask
/usr/share/doc/netmask/AUTHORS
/usr/share/doc/netmask/ChangeLog
/usr/share/doc/netmask/README
/usr/share/info/netmask.info.gz
/usr/share/licenses/netmask
/usr/share/licenses/netmask/COPYING
/usr/share/man/man1/netmask.1.gz

References

Summary

In this tutorial we learn how to install netmask on Fedora 34 using yum and dnf.