How to Install and Uninstall electric-fence Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 20,2024

1. Install "electric-fence" package

This tutorial shows how to install electric-fence on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install electric-fence

2. Uninstall "electric-fence" package

Please follow the guidance below to uninstall electric-fence on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove electric-fence $ sudo apt autoclean && sudo apt autoremove

3. Information about the electric-fence package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: electric-fence
Priority: extra
Section: universe/devel
Installed-Size: 96
Maintainer: Ubuntu Developers
Original-Maintainer: Matthew Vernon
Architecture: amd64
Version: 2.2.4
Depends: libc6 (>= 2.14)
Filename: pool/universe/e/electric-fence/electric-fence_2.2.4_amd64.deb
Size: 22028
MD5sum: cbd9184fcf61c5125a4815358923a411
SHA1: c2cef5be7e1075347919fa81ef4e1309b55c34b2
SHA256: 6012dd249d2f85c8eca7c55ed1e1cca494d3faa81f0e00f6f7bd2c3c33ffcc00
Description-en: A malloc(3) debugger
Electric Fence is a debugger that uses virtual memory hardware to detect
illegal memory accesses. It can detect two common programming bugs: software
that overruns or underruns the boundaries of a malloc() memory allocation,
and software that touches a memory allocation that has been released by
free().
.
Unlike other malloc() debuggers, Electric Fence will detect read accesses as
well as writes, and it will stop and pinpoint the exact instruction that
causes an error. It is not as thorough as Purify, however.
.
In order to debug a program it needs to be linked with Electric Fence's
library or dynamic linking needs to be used; README.Debian explains that in
detail.
Description-md5: 81225779998561422a8be51affd47171
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu