How To Install apport-valgrind on Ubuntu 20.04

In this tutorial we learn how to install apport-valgrind on Ubuntu 20.04. apport-valgrind is valgrind wrapper that first downloads debug symbols valgrind wrapper that first downloads debug symbols

Introduction

In this tutorial we learn how to install apport-valgrind on Ubuntu 20.04.

What is apport-valgrind

apport-valgrind is:

apport-valgrind is a valgrind wrapper that automatically downloads related available debug symbols and provides them to valgrind’s memcheck tool, which is executed. The output is a valgrind log file (“valgrind.log”) that contains stack traces (with as many symbols resolved as available) and that shows memory leaks.

Package: apport-valgrind Architecture: all Version: 2.20.11-0ubuntu27 Priority: optional Section: universe/devel Source: apport Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 154 Depends: python3, python3-apport (>= 2.20.11-0ubuntu27), apt, binutils, valgrind (>= 3.8.1-1ubuntu1~), dpkg-dev, libc6-dbg | libc6-dbgsym | libc-dbg Filename: pool/universe/a/apport/apport-valgrind_2.20.11-0ubuntu27_all.deb Size: 5180 MD5sum: 8e84f3b470f05628ee7f4d43df1d5987 SHA1: fd12ddb55b47217e2465b3b219ae461c2d00fa14 SHA256: 1e87699c7e0f05ae8f180115f90802cd60cce75ea1985ee6915d7702ab316060 Homepage: https://wiki.ubuntu.com/Apport Description-en: valgrind wrapper that first downloads debug symbols apport-valgrind is a valgrind wrapper that automatically downloads related available debug symbols and provides them to valgrind’s memcheck tool, which is executed. The output is a valgrind log file (“valgrind.log”) that contains stack traces (with as many symbols resolved as available) and that shows memory leaks.

There are three methods to install apport-valgrind on Ubuntu 20.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 apport-valgrind Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install apport-valgrind

Install apport-valgrind Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install apport-valgrind

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

sudo aptitude -y install apport-valgrind

How To Uninstall apport-valgrind on Ubuntu 20.04

To uninstall only the apport-valgrind package we can use the following command:

sudo apt-get remove apport-valgrind

Uninstall apport-valgrind And Its Dependencies

To uninstall apport-valgrind and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove apport-valgrind

Remove apport-valgrind Configurations and Data

To remove apport-valgrind configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge apport-valgrind

Remove apport-valgrind configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge apport-valgrind

References

Summary

In this tutorial we learn how to install apport-valgrind package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.