How To Install which.x86_64 on Amazon Linux 2

In this tutorial we learn how to install which.x86_64 in Amazon Linux 2. which.x86_64 is Displays where a particular program in your path is located

Introduction

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

What is which.x86_64

The which command shows the full pathname of a specified program, if the specified program is in your PATH.

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

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

sudo yum -y install which.x86_64

How To Uninstall which.x86_64 on Amazon Linux 2

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

sudo yum remove which.x86_64

which.x86_64 Package Contents on Amazon Linux 2

/etc/profile.d/which2.csh
/etc/profile.d/which2.sh
/usr/bin/which
/usr/share/doc/which-2.20
/usr/share/doc/which-2.20/AUTHORS
/usr/share/doc/which-2.20/COPYING
/usr/share/doc/which-2.20/EXAMPLES
/usr/share/doc/which-2.20/NEWS
/usr/share/doc/which-2.20/README
/usr/share/info/which.info.gz
/usr/share/man/man1/which.1.gz

References

Summary

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