How To Install dmtcp-dbg on Ubuntu 18.04

In this tutorial we learn how to install dmtcp-dbg on Ubuntu 18.04. dmtcp-dbg is Debug package for dmtcp

Introduction

In this tutorial we learn how to install dmtcp-dbg on Ubuntu 18.04.

What is dmtcp-dbg

dmtcp-dbg is:

DMTCP (Distributed MultiThreaded Checkpointing) is a tool to transparently checkpointing the state of an arbitrary group of programs including multi-threaded and distributed computations. It operates directly on the user binary executable, with no Linux kernel modules or other kernel mods.

Among the applications supported by DMTCP are Open MPI, MATLAB, Python, Perl, and many programming languages and shell scripting languages. DMTCP also supports GNU screen sessions, including vim/cscope and emacs. With the use of TightVNC, it can also checkpoint and restart X-Window applications, as long as they do not use extensions (e.g.: no OpenGL, no video).

This package contains debugging symbols for DMTCP.

There are three methods to install dmtcp-dbg 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 dmtcp-dbg Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install dmtcp-dbg using apt-get by running the following command:

sudo apt-get -y install dmtcp-dbg

Install dmtcp-dbg Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install dmtcp-dbg using apt by running the following command:

sudo apt -y install dmtcp-dbg

Install dmtcp-dbg 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 dmtcp-dbg using aptitude by running the following command:

sudo aptitude -y install dmtcp-dbg

How To Uninstall dmtcp-dbg on Ubuntu 18.04

To uninstall only the dmtcp-dbg package we can use the following command:

sudo apt-get remove dmtcp-dbg

Uninstall dmtcp-dbg And Its Dependencies

To uninstall dmtcp-dbg and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove dmtcp-dbg

Remove dmtcp-dbg Configurations and Data

To remove dmtcp-dbg configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge dmtcp-dbg

Remove dmtcp-dbg configuration, data, and all of its dependencies

We can use the following command to remove dmtcp-dbg configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge dmtcp-dbg

References

Summary

In this tutorial we learn how to install dmtcp-dbg package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.