How To Install ElectricFence on Fedora 34
Introduction
In this tutorial we learn how to install ElectricFence
on Fedora 34.
What is ElectricFence
ElectricFence is a utility for C programming and debugging. ElectricFence uses the virtual memory hardware of your system to detect when software overruns malloc() buffer boundaries, and/or to detect any accesses of memory released by free(). ElectricFence will then stop the program on the first instruction that caused a bounds violation and you can use your favorite debugger to display the offending statement. Install ElectricFence if you need a debugger to find malloc() violations. ElectricFence 2.2.2 55.fc34 x86_64 38 k ElectricFence-2.2.2-55.fc34.src.rpm fedora A debugger which detects memory allocation violations http GPLv2 ElectricFence is a utility for C programming and debugging. ElectricFence uses the virtual memory hardware of your system to detect when software overruns malloc() buffer boundaries, and/or to detect any accesses of memory released by free(). ElectricFence will then stop the program on the first instruction that caused a bounds violation and you can use your favorite debugger to display the offending statement. Install ElectricFence if you need a debugger to find malloc() violations.
We can use yum
or dnf
to install ElectricFence
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install ElectricFence.
Install ElectricFence on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install ElectricFence
using dnf
by running the following command:
sudo dnf -y install ElectricFence
Install ElectricFence on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install ElectricFence
using yum
by running the following command:
sudo yum -y install ElectricFence
How To Uninstall ElectricFence on Fedora 34
To uninstall only the ElectricFence
package we can use the following command:
sudo dnf remove ElectricFence
ElectricFence Package Contents on Fedora 34
/usr/bin/ef
/usr/lib/.build-id
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/c387944a7b83ebdfb78a0f9dadce47de37752c
/usr/lib/libefence.a
/usr/lib/libefence.so
/usr/lib/libefence.so.0
/usr/lib/libefence.so.0.0
/usr/share/doc/ElectricFence
/usr/share/doc/ElectricFence/CHANGES
/usr/share/doc/ElectricFence/COPYING
/usr/share/doc/ElectricFence/README
/usr/share/man/man1/ef.1.gz
/usr/share/man/man3/efence.3.gz
/usr/share/man/man3/libefence.3.gz
/usr/bin/ef
/usr/lib/.build-id
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/67d5b27e52d5db30a50af2bf1dbb0abf5e107d
/usr/lib64/libefence.a
/usr/lib64/libefence.so
/usr/lib64/libefence.so.0
/usr/lib64/libefence.so.0.0
/usr/share/doc/ElectricFence
/usr/share/doc/ElectricFence/CHANGES
/usr/share/doc/ElectricFence/COPYING
/usr/share/doc/ElectricFence/README
/usr/share/man/man1/ef.1.gz
/usr/share/man/man3/efence.3.gz
/usr/share/man/man3/libefence.3.gz
References
- [ElectricFence website](http://perens.com/FreeSoftware/ElectricFence/ http://perens.com/FreeSoftware/ElectricFence/)
Summary
In this tutorial we learn how to install ElectricFence
on Fedora 34 using yum and dnf.