How To Install batctl on Fedora 34

batctl is B.A.T.M.A.N. advanced control and management tool

Introduction

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

What is batctl

batctl offers a convenient way to configure the batman-adv kernel module as well as displaying debug information such as originator tables, translation tables and the debug log. In combination with a bat-hosts file batctl allows the use of host names instead of MAC addresses. B.A.T.M.A.N. advanced operates on layer 2. Thus all hosts participating in the virtual switched network are transparently connected together for all protocols above layer 2. Therefore the common diagnosis tools do not work as expected. To overcome these problems batctl contains the commands ping, traceroute, tcpdump which provide similar functionality to the normal ping(1), traceroute(1), tcpdump(1) commands, but modified to layer 2 behavior or using the B.A.T.M.A.N. advanced protocol.

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

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

sudo dnf -y install batctl

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

sudo yum -y install batctl

How To Uninstall batctl on Fedora 34

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

sudo dnf remove batctl

batctl Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/3fe8c8ffb57e5c551e000c66c274407f162238
/usr/sbin/batctl
/usr/share/doc/batctl
/usr/share/doc/batctl/CHANGELOG.rst
/usr/share/doc/batctl/README.rst
/usr/share/doc/batctl/bat-hosts.sample
/usr/share/man/man8/batctl.8.gz
/usr/lib/.build-id
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/02357b9d85b268149ea808a5ebae2d9b8b92dc
/usr/sbin/batctl
/usr/share/doc/batctl
/usr/share/doc/batctl/CHANGELOG.rst
/usr/share/doc/batctl/README.rst
/usr/share/doc/batctl/bat-hosts.sample
/usr/share/man/man8/batctl.8.gz

References

Summary

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