How To Install memleax on Ubuntu 18.04
Introduction
In this tutorial we learn how to install memleax
on Ubuntu 18.04.
What is memleax
memleax is:
Memleax helps debug memory leaks by attaching to a process that is already running. Memleax then tracks changes to allocated memory, reports memory leaks, and “maybe memory leaks” in real-time.
Where Valgrind excels at formal profiling, Memleax excels at catching difficult to reproduce memory leaks the times when one wasn’t prepared for them to occur. Memleax will track new threads, but not forked processes. To debug multiple processes, just run multiple instances of memleax!
It is very convenient to use, and is suitable for production environments.
There are three methods to install memleax
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install memleax Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install memleax
using apt-get
by running the following command:
sudo apt-get -y install memleax
Install memleax Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install memleax
using apt
by running the following command:
sudo apt -y install memleax
Install memleax Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install memleax
using aptitude
by running the following command:
sudo aptitude -y install memleax
How To Uninstall memleax on Ubuntu 18.04
To uninstall only the memleax
package we can use the following command:
sudo apt-get remove memleax
Uninstall memleax And Its Dependencies
To uninstall memleax
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove memleax
Remove memleax Configurations and Data
To remove memleax
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge memleax
Remove memleax configuration, data, and all of its dependencies
We can use the following command to remove memleax
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge memleax
References
Summary
In this tutorial we learn how to install memleax
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.