• Contact Us
  • copyright
  • About Us
  • Privacy Policy
  • Devops
  • Linux
Globedrill

bash: ef command not found. Install ElectricFence on CentOS 7

Linux/15 Apr, 19/1968/0
Linux

bash: ef command not found. How to Install ElectricFence on CentOS 7 server

 

I got the error ‘ef command not found’ on my CentOS 7 server. ef command on centOS server is provided by ElectricFence package.

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

 

[root@server /]# yum install ElectricFence -q

=====================================================================================================================
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.

Leave a Reply Cancel reply

.

About Us

Globedrill.com is a website that publishes articles related to Linux and Devops. Globedrill was started on April 2016.

Contact Us

Email : globedrill.c@gmail.com

Globedrill

Copyright © 2016 Globedrill. All Rights Reserved. The content in this website is copyrighted to Globedrill.com and may not be republished either online or offline.

  • About Us
  • Privacy Policy
  • Contact Us
  • copyright