How To Install batctl on AlmaLinux 8

In this tutorial we learn how to install batctl in AlmaLinux 8. batctl is B.A.T.M.A.N. advanced control and management tool

Introduction

In this tutorial we learn how to install batctl on AlmaLinux 8.

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 AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install batctl.

Install batctl on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install batctl using dnf by running the following command:

sudo dnf -y install batctl

Install batctl on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 AlmaLinux 8

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

sudo dnf remove batctl

References

Summary

In this tutorial we learn how to install batctl on AlmaLinux 8 using yum and dnf.