How To Install execstack.x86_64 on Amazon Linux 2

In this tutorial we learn how to install execstack.x86_64 in Amazon Linux 2. execstack.x86_64 is Utility to set/clear/query executable stack bit

Introduction

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

What is execstack.x86_64

This package is built from prelink sources but contains just the execstack binary. It can be used manipulate ELF binaries to run with or without executable stack.

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

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

sudo yum -y install execstack.x86_64

How To Uninstall execstack.x86_64 on Amazon Linux 2

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

sudo yum remove execstack.x86_64

execstack.x86_64 Package Contents on Amazon Linux 2

/usr/bin/execstack
/usr/share/doc/execstack-0.5.0
/usr/share/doc/execstack-0.5.0/ChangeLog
/usr/share/doc/execstack-0.5.0/NEWS
/usr/share/doc/execstack-0.5.0/README
/usr/share/doc/execstack-0.5.0/THANKS
/usr/share/doc/execstack-0.5.0/TODO
/usr/share/licenses/execstack-0.5.0
/usr/share/licenses/execstack-0.5.0/COPYING
/usr/share/man/man8/execstack.8.gz

References

Summary

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