How To Install chrpath.x86_64 on Amazon Linux 2

In this tutorial we learn how to install chrpath.x86_64 in Amazon Linux 2. chrpath.x86_64 is Modify rpath of compiled programs

Introduction

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

What is chrpath.x86_64

chrpath allows you to modify the dynamic library load path (rpath) of compiled programs. Currently, only removing and modifying the rpath is supported.

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

Install chrpath.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 chrpath.x86_64 using yum by running the following command:

sudo yum -y install chrpath.x86_64

How To Uninstall chrpath.x86_64 on Amazon Linux 2

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

sudo yum remove chrpath.x86_64

chrpath.x86_64 Package Contents on Amazon Linux 2

/usr/bin/chrpath
/usr/share/doc/chrpath-0.16
/usr/share/doc/chrpath-0.16/AUTHORS
/usr/share/doc/chrpath-0.16/COPYING
/usr/share/doc/chrpath-0.16/ChangeLog
/usr/share/doc/chrpath-0.16/NEWS
/usr/share/doc/chrpath-0.16/README
/usr/share/man/man1/chrpath.1.gz

References

Summary

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