bash: ef command not found. Install ElectricFence on CentOS 7
bash: ef command not found. How to Install ElectricFence on CentOS 7 server
ElectricFence (efence malloc debugger) is a debugger which detects memory allocation violations on your Linux Server.
ElectricFence uses the virtual memory of your server to detect when software overruns the boundaries of a malloc() buffer.
Efence can be installed either by using yum command or by downloading the rpm package from CentOS repositories. Do the below steps to install ElectricFence on your CentOS 7 server.
1. Log into Linux Server as ‘root’ user
2. Run the command ‘yum install ElectricFence’ to install ElectricFence on your Linux Server
3. Enter ‘y’ and press enter, if yum ask for confirmation while installing
=====================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================
Installing:
ElectricFence x86_64 2.2.2-39.el7 base 35 k
Transaction Summary
=====================================================================================================================
Install 1 Package
Is this ok [y/d/N]: y
How to download and install ElectricFence rpm
1. You must log into CentOS 7 server as ‘root’ user
2. Search the rpm file of ElectricFence in rpmfind.net website
https://rpmfind.net/linux/rpm2html/search.php?query=ElectricFence
3. Download the rpm file using wget command
# wget https://rpmfind.net/linux/centos/7.6.1810/os/x86_64/Packages/ElectricFence-2.2.2-39.el7.i686.rpm
4. Install the rpm file downloaded
# rpm -Uvh ElectricFence-2.2.2-39.el7.i686.rpm
5. To verify, just type ‘ef’ on the terminal
# ef
/usr/bin/ef: Usage: ef [executable] [arguments].
Runs the executable under the Electric Fence malloc debugger.