How To Install addrwatch on Fedora 34

addrwatch is Monitoring IPv4/IPv6 and Ethernet address pairings

Introduction

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

What is addrwatch

It main purpose is to monitor network and log discovered Ethernet/IP pairings. Main features of addrwatch * IPv4 and IPv6 address monitoring * Monitoring multiple network interfaces with one daemon * Monitoring of VLAN tagged (802.1Q) packets. * Output to std-out, plain text file, syslog, sqlite3 db, MySQL db * IP address usage history preserving output/logging Addrwatch is extremely useful in networks with IPv6 auto configuration (RFC4862) enabled. It allows to track IPv6 addresses of hosts using IPv6 privacy extensions (RFC4941).

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

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

sudo dnf -y install addrwatch

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

sudo yum -y install addrwatch

How To Uninstall addrwatch on Fedora 34

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

sudo dnf remove addrwatch

addrwatch Package Contents on Fedora 34

/etc/sysconfig/addrwatch
/usr/bin/addrwatch
/usr/bin/addrwatch_mysql
/usr/bin/addrwatch_stdout
/usr/bin/addrwatch_syslog
/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/0c480e559fedcede10d5e814d64cda01d68c74
/usr/lib/.build-id/33
/usr/lib/.build-id/33/38d8832c1479818d3a0786905adef2049ceed7
/usr/lib/.build-id/74
/usr/lib/.build-id/74/ad6a91bdcdbb0a9ec31739211d3ca623a0ab7d
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/b334ee8936e55e351e421fe9cdb8f14800f477
/usr/lib/systemd/system/addrwatch.service
/usr/share/licenses/addrwatch
/usr/share/licenses/addrwatch/COPYING
/usr/share/man/man8/addrwatch.8.gz
/var/lib/addrwatch

References

Summary

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