How To Install dyninst on CentOS 8

dyninst is An API for Run-time Code Generation An API for Run-time Code Generation

Introduction

In this tutorial we learn how to install dyninst on CentOS 8.

What is dyninst

Dyninst is an Application Program Interface (API) to permit the insertion of code into a running program. The API also permits changing or removing subroutine calls from the application program. Run-time code changes are useful to support a variety of applications including debugging, performance monitoring, and to support composing applications out of existing packages. The goal of this API is to provide a machine independent interface to permit the creation of tools and applications that use run-time code patching. dyninst 10.2.1 2.el8 x86_64 3.8 M dyninst-10.2.1-2.el8.src.rpm appstream An API for Run-time Code Generation http LGPLv2+ Dyninst is an Application Program Interface (API) to permit the insertion of code into a running program. The API also permits changing or removing subroutine calls from the application program. Run-time code changes are useful to support a variety of applications including debugging, performance monitoring, and to support composing applications out of existing packages. The goal of this API is to provide a machine independent interface to permit the creation of tools and applications that use run-time code patching.

We can use yum or dnf to install dyninst on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install dyninst.

Install dyninst on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install dyninst using dnf by running the following command:

sudo dnf -y install dyninst

Install dyninst on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install dyninst using yum by running the following command:

sudo yum -y install dyninst

How To Uninstall dyninst on CentOS 8

To uninstall only the dyninst package we can use the following command:

sudo dnf remove dyninst

dyninst Package Contents on CentOS 8

/etc/ld.so.conf.d/dyninst-i386.conf
/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/95c0ac7f0f96121aed4479f13ba49393f9cacd
/usr/lib/.build-id/79
/usr/lib/.build-id/79/d5a08725b9d44873bceee483a14451aec43460
/usr/lib/.build-id/80
/usr/lib/.build-id/80/d8a942ff0ee01925cc8851969b752dc7fb0ef9
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/2c7c57d1a78be5ef85c0e09379bead9be3a1e9
/usr/lib/.build-id/91
/usr/lib/.build-id/91/49f5496286055b99c35acf9c3a53f56dff2265
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/7d34da425e2b14959d8773635f34c3a0cbcd1d
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/580f5f6d704a9a91de62eb266a14c829cfb7f2
/usr/lib/.build-id/a9/6ab6338dc9eb86f78f5238372a3275ddc8d0e2
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/652a84b2fce322f4cd82237575c2265d755e37
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/cce0c59ab9319020a8942cf8b3a8c794a5940c
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/a104bcf1bc2d53310f572819dfeef05b7b0243
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/ab5c73d8c288e5009f837ee93b084b2d3ca360
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/c1979d148ada68617349b8d181377c1153c6c0
/usr/lib/dyninst
/usr/lib/dyninst/libcommon.so.10.2
/usr/lib/dyninst/libcommon.so.10.2.1
/usr/lib/dyninst/libdynC_API.so.10.2
/usr/lib/dyninst/libdynC_API.so.10.2.1
/usr/lib/dyninst/libdynDwarf.so.10.2
/usr/lib/dyninst/libdynDwarf.so.10.2.1
/usr/lib/dyninst/libdynElf.so.10.2
/usr/lib/dyninst/libdynElf.so.10.2.1
/usr/lib/dyninst/libdyninstAPI.so.10.2
/usr/lib/dyninst/libdyninstAPI.so.10.2.1
/usr/lib/dyninst/libdyninstAPI_RT.so
/usr/lib/dyninst/libdyninstAPI_RT.so.10.2
/usr/lib/dyninst/libdyninstAPI_RT.so.10.2.1
/usr/lib/dyninst/libinstructionAPI.so.10.2
/usr/lib/dyninst/libinstructionAPI.so.10.2.1
/usr/lib/dyninst/libparseAPI.so.10.2
/usr/lib/dyninst/libparseAPI.so.10.2.1
/usr/lib/dyninst/libpatchAPI.so.10.2
/usr/lib/dyninst/libpatchAPI.so.10.2.1
/usr/lib/dyninst/libpcontrol.so.10.2
/usr/lib/dyninst/libpcontrol.so.10.2.1
/usr/lib/dyninst/libstackwalk.so.10.2
/usr/lib/dyninst/libstackwalk.so.10.2.1
/usr/lib/dyninst/libsymLite.so.10.2
/usr/lib/dyninst/libsymLite.so.10.2.1
/usr/lib/dyninst/libsymtabAPI.so.10.2
/usr/lib/dyninst/libsymtabAPI.so.10.2.1
/usr/share/doc/dyninst
/usr/share/doc/dyninst/COPYRIGHT
/usr/share/doc/dyninst/LICENSE.md
/etc/ld.so.conf.d/dyninst-x86_64.conf
/usr/lib/.build-id
/usr/lib/.build-id/35
/usr/lib/.build-id/35/ebf51c2db1f7e85e0980f42c909956a2ee4016
/usr/lib/.build-id/50
/usr/lib/.build-id/50/f6625382055bb65c36fd8f7bcbc4aa509575ba
/usr/lib/.build-id/67
/usr/lib/.build-id/67/1bfa6a341ebfbb2de492c26303a74a56403ff8
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/51e9e987bb9ac47f989e2c1bec4f516b377ce2
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/79c982be8649ea65d5472638276de34bd0d620
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/bcab009c788bd576f112648cac8cf2eb162341
/usr/lib/.build-id/80
/usr/lib/.build-id/80/219aee922383f136618e7f4adfe061b04665c5
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/89f6eb8ba92860aab234c5dc2b2fa41575aba6
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/e0e687b3091ca78289586bc16e4f48b65d1afd
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/5018d0e68eff4f0eb269ccf7149f4dfd723c77
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/567f19b595e36e5a974583ba639de2c7f3ef6d
/usr/lib/.build-id/e0/a436ac531f4fe2403a5d32f1ee8854a163b817
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/e2fb8f056a66f1614cce8c79054c749018ddd8
/usr/lib64/dyninst
/usr/lib64/dyninst/libcommon.so.10.2
/usr/lib64/dyninst/libcommon.so.10.2.1
/usr/lib64/dyninst/libdynC_API.so.10.2
/usr/lib64/dyninst/libdynC_API.so.10.2.1
/usr/lib64/dyninst/libdynDwarf.so.10.2
/usr/lib64/dyninst/libdynDwarf.so.10.2.1
/usr/lib64/dyninst/libdynElf.so.10.2
/usr/lib64/dyninst/libdynElf.so.10.2.1
/usr/lib64/dyninst/libdyninstAPI.so.10.2
/usr/lib64/dyninst/libdyninstAPI.so.10.2.1
/usr/lib64/dyninst/libdyninstAPI_RT.so
/usr/lib64/dyninst/libdyninstAPI_RT.so.10.2
/usr/lib64/dyninst/libdyninstAPI_RT.so.10.2.1
/usr/lib64/dyninst/libinstructionAPI.so.10.2
/usr/lib64/dyninst/libinstructionAPI.so.10.2.1
/usr/lib64/dyninst/libparseAPI.so.10.2
/usr/lib64/dyninst/libparseAPI.so.10.2.1
/usr/lib64/dyninst/libpatchAPI.so.10.2
/usr/lib64/dyninst/libpatchAPI.so.10.2.1
/usr/lib64/dyninst/libpcontrol.so.10.2
/usr/lib64/dyninst/libpcontrol.so.10.2.1
/usr/lib64/dyninst/libstackwalk.so.10.2
/usr/lib64/dyninst/libstackwalk.so.10.2.1
/usr/lib64/dyninst/libsymLite.so.10.2
/usr/lib64/dyninst/libsymLite.so.10.2.1
/usr/lib64/dyninst/libsymtabAPI.so.10.2
/usr/lib64/dyninst/libsymtabAPI.so.10.2.1
/usr/share/doc/dyninst
/usr/share/doc/dyninst/COPYRIGHT
/usr/share/doc/dyninst/LICENSE.md

References

Summary

In this tutorial we learn how to install dyninst on CentOS 8 using yum and dnf.