How to Install and Uninstall dwarves.x86_64 Package on Amazon Linux 2

Last updated: May 18,2024

1. Install "dwarves.x86_64" package

Please follow the steps below to install dwarves.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install dwarves.x86_64

2. Uninstall "dwarves.x86_64" package

Here is a brief guide to show you how to uninstall dwarves.x86_64 on Amazon Linux 2:

$ sudo yum remove dwarves.x86_64 $ sudo yum autoremove

3. Information about the dwarves.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : dwarves
Arch : x86_64
Version : 1.17
Release : 1.amzn2
Size : 88 k
Repo : amzn2-core/2/x86_64
Summary : Debugging Information Manipulation Tools (pahole & friends)
URL : http://acmel.wordpress.com
License : GPLv2
Description : dwarves is a set of tools that use the debugging information
: inserted in ELF binaries by compilers such as GCC, used by well
: known debuggers such as GDB, and more recent ones such as
: systemtap.
:
: Utilities in the dwarves suite include pahole, that can be used to
: find alignment holes in structs and classes in languages such as
: C, C++, but not limited to these.
:
: It also extracts other information such as CPU cacheline
: alignment, helping pack those structures to achieve more cache
: hits.
:
: These tools can also be used to encode and read the BTF type
: information format used with the Linux kernel bpf syscall, using
: 'pahole -J' and 'pahole -F btf'.
:
: A diff like tool, codiff can be used to compare the effects
: changes in source code generate on the resulting binaries.
:
: Another tool is pfunct, that can be used to find all sorts of
: information about functions, inlines, decisions made by the
: compiler about inlining, etc.