How To Install ucarp on CentOS 8
Introduction
In this tutorial we learn how to install ucarp
on CentOS 8.
What is ucarp
UCARP allows a couple of hosts to share common virtual IP addresses in order to provide automatic failover. It is a portable userland implementation of the secure and patent-free Common Address Redundancy Protocol (CARP, OpenBSD’s alternative to the patents-bloated VRRP). Strong points of the CARP protocol are signed messages, interoperability between different operating systems and no need for any dedicated extra network link between redundant hosts.
We can use yum
or dnf
to install ucarp
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install ucarp.
Install ucarp on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install ucarp
using dnf
by running the following command:
sudo dnf -y install ucarp
Install ucarp on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install ucarp
using yum
by running the following command:
sudo yum -y install ucarp
How To Uninstall ucarp on CentOS 8
To uninstall only the ucarp
package we can use the following command:
sudo dnf remove ucarp
ucarp Package Contents on CentOS 8
/etc/ucarp
/etc/ucarp/vip-001.conf.example
/etc/ucarp/vip-001.pwd.example
/etc/ucarp/vip-common.conf
/usr/lib/.build-id
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/edf408cc42af6377fb732068a002d61d6f61ad
/usr/lib/systemd/system/[email protected]
/usr/libexec/ucarp
/usr/libexec/ucarp/ucarp
/usr/libexec/ucarp/vip-down
/usr/libexec/ucarp/vip-up
/usr/sbin/ucarp
/usr/share/doc/ucarp
/usr/share/doc/ucarp/AUTHORS
/usr/share/doc/ucarp/ChangeLog
/usr/share/doc/ucarp/NEWS
/usr/share/doc/ucarp/README
/usr/share/licenses/ucarp
/usr/share/licenses/ucarp/COPYING
/usr/share/locale/en@boldquot/LC_MESSAGES/ucarp.mo
/usr/share/locale/en@quot/LC_MESSAGES/ucarp.mo
References
Summary
In this tutorial we learn how to install ucarp
on CentOS 8 using yum and dnf.