How To Install keepalived on Kali Linux
Introduction
In this tutorial we learn how to install keepalived on Kali Linux.
What is keepalived
keepalived is:
keepalived is used for monitoring real servers within a Linux Virtual Server (LVS) cluster. keepalived can be configured to remove real servers from the cluster pool if it stops responding, as well as send a notification email to make the admin aware of the service failure.
In addition, keepalived implements an independent Virtual Router Redundancy Protocol (VRRPv2; see rfc2338 for additional info) framework for director failover.
You need a kernel >= 2.4.28 or >= 2.6.11 for keepalived. See README.Debian for more information.
There are three methods to install keepalived on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install keepalived Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install keepalived using apt-get by running the following command:
sudo apt-get -y install keepalivedInstall keepalived Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install keepalived using apt by running the following command:
sudo apt -y install keepalivedInstall keepalived Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install keepalived using aptitude by running the following command:
sudo aptitude -y install keepalivedHow To Uninstall keepalived on Kali Linux
To uninstall only the keepalived package we can use the following command:
sudo apt-get remove keepalivedUninstall keepalived And Its Dependencies
To uninstall keepalived and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove keepalivedRemove keepalived Configurations and Data
To remove keepalived configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge keepalivedRemove keepalived configuration, data, and all of its dependencies
We can use the following command to remove keepalived configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge keepalivedDependencies
keepalived have the following dependencies:
- init-system-helpers
- iproute2
- libc6
- libglib2.0-0
- libmnl0
- libnftnl11
- libnl-3-200
- libnl-genl-3-200
- libpcre2-8-0
- libsnmp40
- libssl1.1
References
Summary
In this tutorial we learn how to install keepalived package on Kali Linux using different package management tools: apt, apt-get and aptitude.