How To Install valgrind.x86_64 on Amazon Linux 2

In this tutorial we learn how to install valgrind.x86_64 in Amazon Linux 2. valgrind.x86_64 is Tool for finding memory management bugs in programs

Introduction

In this tutorial we learn how to install valgrind.x86_64 on Amazon Linux 2.

What is valgrind.x86_64

Valgrind is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail. You can also use Valgrind to build new tools. The Valgrind distribution currently includes six production-quality tools default tool), two thread error detectors (helgrind and drd), a cache and branch-prediction profiler (cachegrind), a call-graph generating cache and branch-prediction profiler (callgrind), and a heap profiler (massif).

We can use yum to install valgrind.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install valgrind.x86_64.

Install valgrind.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install valgrind.x86_64 using yum by running the following command:

sudo yum -y install valgrind.x86_64

How To Uninstall valgrind.x86_64 on Amazon Linux 2

To uninstall only the valgrind.x86_64 package we can use the following command:

sudo yum remove valgrind.x86_64

valgrind.x86_64 Package Contents on Amazon Linux 2

/usr/bin/callgrind_annotate
/usr/bin/callgrind_control
/usr/bin/cg_annotate
/usr/bin/cg_diff
/usr/bin/cg_merge
/usr/bin/ms_print
/usr/bin/valgrind
/usr/bin/valgrind-di-server
/usr/bin/valgrind-listener
/usr/bin/vgdb
/usr/lib64/valgrind
/usr/lib64/valgrind/32bit-core-valgrind-s1.xml
/usr/lib64/valgrind/32bit-core-valgrind-s2.xml
/usr/lib64/valgrind/32bit-core.xml
/usr/lib64/valgrind/32bit-linux-valgrind-s1.xml
/usr/lib64/valgrind/32bit-linux-valgrind-s2.xml
/usr/lib64/valgrind/32bit-linux.xml
/usr/lib64/valgrind/32bit-sse-valgrind-s1.xml
/usr/lib64/valgrind/32bit-sse-valgrind-s2.xml
/usr/lib64/valgrind/32bit-sse.xml
/usr/lib64/valgrind/64bit-avx-valgrind-s1.xml
/usr/lib64/valgrind/64bit-avx-valgrind-s2.xml
/usr/lib64/valgrind/64bit-avx.xml
/usr/lib64/valgrind/64bit-core-valgrind-s1.xml
/usr/lib64/valgrind/64bit-core-valgrind-s2.xml
/usr/lib64/valgrind/64bit-core.xml
/usr/lib64/valgrind/64bit-linux-valgrind-s1.xml
/usr/lib64/valgrind/64bit-linux-valgrind-s2.xml
/usr/lib64/valgrind/64bit-linux.xml
/usr/lib64/valgrind/64bit-sse-valgrind-s1.xml
/usr/lib64/valgrind/64bit-sse-valgrind-s2.xml
/usr/lib64/valgrind/64bit-sse.xml
/usr/lib64/valgrind/amd64-avx-coresse-valgrind.xml
/usr/lib64/valgrind/amd64-avx-coresse.xml
/usr/lib64/valgrind/amd64-avx-linux-valgrind.xml
/usr/lib64/valgrind/amd64-avx-linux.xml
/usr/lib64/valgrind/amd64-coresse-valgrind.xml
/usr/lib64/valgrind/amd64-linux-valgrind.xml
/usr/lib64/valgrind/arm-core-valgrind-s1.xml
/usr/lib64/valgrind/arm-core-valgrind-s2.xml
/usr/lib64/valgrind/arm-core.xml
/usr/lib64/valgrind/arm-vfpv3-valgrind-s1.xml
/usr/lib64/valgrind/arm-vfpv3-valgrind-s2.xml
/usr/lib64/valgrind/arm-vfpv3.xml
/usr/lib64/valgrind/arm-with-vfpv3-valgrind.xml
/usr/lib64/valgrind/arm-with-vfpv3.xml
/usr/lib64/valgrind/cachegrind-amd64-linux
/usr/lib64/valgrind/cachegrind-x86-linux
/usr/lib64/valgrind/callgrind-amd64-linux
/usr/lib64/valgrind/callgrind-x86-linux
/usr/lib64/valgrind/default.supp
/usr/lib64/valgrind/drd-amd64-linux
/usr/lib64/valgrind/drd-x86-linux
/usr/lib64/valgrind/exp-bbv-amd64-linux
/usr/lib64/valgrind/exp-bbv-x86-linux
/usr/lib64/valgrind/exp-dhat-amd64-linux
/usr/lib64/valgrind/exp-dhat-x86-linux
/usr/lib64/valgrind/exp-sgcheck-amd64-linux
/usr/lib64/valgrind/exp-sgcheck-x86-linux
/usr/lib64/valgrind/getoff-amd64-linux
/usr/lib64/valgrind/getoff-x86-linux
/usr/lib64/valgrind/helgrind-amd64-linux
/usr/lib64/valgrind/helgrind-x86-linux
/usr/lib64/valgrind/i386-coresse-valgrind.xml
/usr/lib64/valgrind/i386-linux-valgrind.xml
/usr/lib64/valgrind/lackey-amd64-linux
/usr/lib64/valgrind/lackey-x86-linux
/usr/lib64/valgrind/massif-amd64-linux
/usr/lib64/valgrind/massif-x86-linux
/usr/lib64/valgrind/memcheck-amd64-linux
/usr/lib64/valgrind/memcheck-x86-linux
/usr/lib64/valgrind/mips-cp0-valgrind-s1.xml
/usr/lib64/valgrind/mips-cp0-valgrind-s2.xml
/usr/lib64/valgrind/mips-cp0.xml
/usr/lib64/valgrind/mips-cpu-valgrind-s1.xml
/usr/lib64/valgrind/mips-cpu-valgrind-s2.xml
/usr/lib64/valgrind/mips-cpu.xml
/usr/lib64/valgrind/mips-fpu-valgrind-s1.xml
/usr/lib64/valgrind/mips-fpu-valgrind-s2.xml
/usr/lib64/valgrind/mips-fpu.xml
/usr/lib64/valgrind/mips-linux-valgrind.xml
/usr/lib64/valgrind/mips-linux.xml
/usr/lib64/valgrind/mips64-cp0-valgrind-s1.xml
/usr/lib64/valgrind/mips64-cp0-valgrind-s2.xml
/usr/lib64/valgrind/mips64-cp0.xml
/usr/lib64/valgrind/mips64-cpu-valgrind-s1.xml
/usr/lib64/valgrind/mips64-cpu-valgrind-s2.xml
/usr/lib64/valgrind/mips64-cpu.xml
/usr/lib64/valgrind/mips64-fpu-valgrind-s1.xml
/usr/lib64/valgrind/mips64-fpu-valgrind-s2.xml
/usr/lib64/valgrind/mips64-fpu.xml
/usr/lib64/valgrind/mips64-linux-valgrind.xml
/usr/lib64/valgrind/mips64-linux.xml
/usr/lib64/valgrind/none-amd64-linux
/usr/lib64/valgrind/none-x86-linux
/usr/lib64/valgrind/power-altivec-valgrind-s1.xml
/usr/lib64/valgrind/power-altivec-valgrind-s2.xml
/usr/lib64/valgrind/power-altivec.xml
/usr/lib64/valgrind/power-core-valgrind-s1.xml
/usr/lib64/valgrind/power-core-valgrind-s2.xml
/usr/lib64/valgrind/power-core.xml
/usr/lib64/valgrind/power-fpu-valgrind-s1.xml
/usr/lib64/valgrind/power-fpu-valgrind-s2.xml
/usr/lib64/valgrind/power-fpu.xml
/usr/lib64/valgrind/power-linux-valgrind-s1.xml
/usr/lib64/valgrind/power-linux-valgrind-s2.xml
/usr/lib64/valgrind/power-linux.xml
/usr/lib64/valgrind/power-vsx-valgrind-s1.xml
/usr/lib64/valgrind/power-vsx-valgrind-s2.xml
/usr/lib64/valgrind/power-vsx.xml
/usr/lib64/valgrind/power64-core-valgrind-s1.xml
/usr/lib64/valgrind/power64-core-valgrind-s2.xml
/usr/lib64/valgrind/power64-core.xml
/usr/lib64/valgrind/power64-core2-valgrind-s1.xml
/usr/lib64/valgrind/power64-core2-valgrind-s2.xml
/usr/lib64/valgrind/power64-linux-valgrind-s1.xml
/usr/lib64/valgrind/power64-linux-valgrind-s2.xml
/usr/lib64/valgrind/power64-linux.xml
/usr/lib64/valgrind/powerpc-altivec32l-valgrind.xml
/usr/lib64/valgrind/powerpc-altivec32l.xml
/usr/lib64/valgrind/powerpc-altivec64l-valgrind.xml
/usr/lib64/valgrind/powerpc-altivec64l.xml
/usr/lib64/valgrind/s390-acr-valgrind-s1.xml
/usr/lib64/valgrind/s390-acr-valgrind-s2.xml
/usr/lib64/valgrind/s390-acr.xml
/usr/lib64/valgrind/s390-fpr-valgrind-s1.xml
/usr/lib64/valgrind/s390-fpr-valgrind-s2.xml
/usr/lib64/valgrind/s390-fpr.xml
/usr/lib64/valgrind/s390x-core64-valgrind-s1.xml
/usr/lib64/valgrind/s390x-core64-valgrind-s2.xml
/usr/lib64/valgrind/s390x-core64.xml
/usr/lib64/valgrind/s390x-generic-valgrind.xml
/usr/lib64/valgrind/s390x-generic.xml
/usr/lib64/valgrind/s390x-linux64-valgrind-s1.xml
/usr/lib64/valgrind/s390x-linux64-valgrind-s2.xml
/usr/lib64/valgrind/s390x-linux64.xml
/usr/lib64/valgrind/vgpreload_core-amd64-linux.so
/usr/lib64/valgrind/vgpreload_core-x86-linux.so
/usr/lib64/valgrind/vgpreload_drd-amd64-linux.so
/usr/lib64/valgrind/vgpreload_drd-x86-linux.so
/usr/lib64/valgrind/vgpreload_exp-dhat-amd64-linux.so
/usr/lib64/valgrind/vgpreload_exp-dhat-x86-linux.so
/usr/lib64/valgrind/vgpreload_exp-sgcheck-amd64-linux.so
/usr/lib64/valgrind/vgpreload_exp-sgcheck-x86-linux.so
/usr/lib64/valgrind/vgpreload_helgrind-amd64-linux.so
/usr/lib64/valgrind/vgpreload_helgrind-x86-linux.so
/usr/lib64/valgrind/vgpreload_massif-amd64-linux.so
/usr/lib64/valgrind/vgpreload_massif-x86-linux.so
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so
/usr/share/doc/valgrind-3.13.0
/usr/share/doc/valgrind-3.13.0/COPYING
/usr/share/doc/valgrind-3.13.0/NEWS
/usr/share/doc/valgrind-3.13.0/README_DEVELOPERS
/usr/share/doc/valgrind-3.13.0/README_MISSING_SYSCALL_OR_IOCTL
/usr/share/doc/valgrind-3.13.0/README_PACKAGERS
/usr/share/doc/valgrind-3.13.0/html
/usr/share/doc/valgrind-3.13.0/html/FAQ.html
/usr/share/doc/valgrind-3.13.0/html/QuickStart.html
/usr/share/doc/valgrind-3.13.0/html/bbv-manual.html
/usr/share/doc/valgrind-3.13.0/html/cg-manual.html
/usr/share/doc/valgrind-3.13.0/html/cl-format.html
/usr/share/doc/valgrind-3.13.0/html/cl-manual.html
/usr/share/doc/valgrind-3.13.0/html/design-impl.html
/usr/share/doc/valgrind-3.13.0/html/dh-manual.html
/usr/share/doc/valgrind-3.13.0/html/dist.authors.html
/usr/share/doc/valgrind-3.13.0/html/dist.html
/usr/share/doc/valgrind-3.13.0/html/dist.news.html
/usr/share/doc/valgrind-3.13.0/html/dist.news.old.html
/usr/share/doc/valgrind-3.13.0/html/dist.readme-android.html
/usr/share/doc/valgrind-3.13.0/html/dist.readme-android_emulator.html
/usr/share/doc/valgrind-3.13.0/html/dist.readme-developers.html
/usr/share/doc/valgrind-3.13.0/html/dist.readme-mips.html
/usr/share/doc/valgrind-3.13.0/html/dist.readme-missing.html
/usr/share/doc/valgrind-3.13.0/html/dist.readme-packagers.html
/usr/share/doc/valgrind-3.13.0/html/dist.readme-s390.html
/usr/share/doc/valgrind-3.13.0/html/dist.readme-solaris.html
/usr/share/doc/valgrind-3.13.0/html/dist.readme.html
/usr/share/doc/valgrind-3.13.0/html/drd-manual.html
/usr/share/doc/valgrind-3.13.0/html/faq.html
/usr/share/doc/valgrind-3.13.0/html/hg-manual.html
/usr/share/doc/valgrind-3.13.0/html/images
/usr/share/doc/valgrind-3.13.0/html/images/home.png
/usr/share/doc/valgrind-3.13.0/html/images/kcachegrind_xtree.png
/usr/share/doc/valgrind-3.13.0/html/images/next.png
/usr/share/doc/valgrind-3.13.0/html/images/prev.png
/usr/share/doc/valgrind-3.13.0/html/images/up.png
/usr/share/doc/valgrind-3.13.0/html/index.html
/usr/share/doc/valgrind-3.13.0/html/license.gfdl.html
/usr/share/doc/valgrind-3.13.0/html/license.gpl.html
/usr/share/doc/valgrind-3.13.0/html/licenses.html
/usr/share/doc/valgrind-3.13.0/html/lk-manual.html
/usr/share/doc/valgrind-3.13.0/html/manual-core-adv.html
/usr/share/doc/valgrind-3.13.0/html/manual-core.html
/usr/share/doc/valgrind-3.13.0/html/manual-intro.html
/usr/share/doc/valgrind-3.13.0/html/manual-writing-tools.html
/usr/share/doc/valgrind-3.13.0/html/manual.html
/usr/share/doc/valgrind-3.13.0/html/mc-manual.html
/usr/share/doc/valgrind-3.13.0/html/ms-manual.html
/usr/share/doc/valgrind-3.13.0/html/nl-manual.html
/usr/share/doc/valgrind-3.13.0/html/quick-start.html
/usr/share/doc/valgrind-3.13.0/html/sg-manual.html
/usr/share/doc/valgrind-3.13.0/html/tech-docs.html
/usr/share/doc/valgrind-3.13.0/html/vg_basic.css
/usr/share/doc/valgrind-3.13.0/valgrind_manual.pdf
/usr/share/man/man1/callgrind_annotate.1.gz
/usr/share/man/man1/callgrind_control.1.gz
/usr/share/man/man1/cg_annotate.1.gz
/usr/share/man/man1/cg_diff.1.gz
/usr/share/man/man1/cg_merge.1.gz
/usr/share/man/man1/ms_print.1.gz
/usr/share/man/man1/valgrind-listener.1.gz
/usr/share/man/man1/valgrind.1.gz
/usr/share/man/man1/vgdb.1.gz

References

Summary

In this tutorial we learn how to install valgrind.x86_64 on Amazon Linux 2 using yum.