How To Install attr.x86_64 on Amazon Linux 2

In this tutorial we learn how to install attr.x86_64 in Amazon Linux 2. attr.x86_64 is Utilities for managing filesystem extended attributes

Introduction

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

What is attr.x86_64

A set of tools for manipulating extended attributes on filesystem objects, in particular getfattr(1) and setfattr(1). An attr(1) command is also provided which is largely compatible with the SGI IRIX tool of the same name.

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

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

sudo yum -y install attr.x86_64

How To Uninstall attr.x86_64 on Amazon Linux 2

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

sudo yum remove attr.x86_64

attr.x86_64 Package Contents on Amazon Linux 2

/usr/bin/attr
/usr/bin/getfattr
/usr/bin/setfattr
/usr/share/doc/attr-2.4.46
/usr/share/doc/attr-2.4.46/CHANGES.gz
/usr/share/doc/attr-2.4.46/COPYING
/usr/share/doc/attr-2.4.46/PORTING
/usr/share/doc/attr-2.4.46/README
/usr/share/doc/attr-2.4.46/doc
/usr/share/doc/attr-2.4.46/doc/CHANGES
/usr/share/doc/attr-2.4.46/doc/CHANGES.gz
/usr/share/doc/attr-2.4.46/doc/COPYING
/usr/share/doc/attr-2.4.46/doc/INSTALL
/usr/share/doc/attr-2.4.46/doc/Makefile
/usr/share/doc/attr-2.4.46/doc/PORTING
/usr/share/locale/cs/LC_MESSAGES/attr.mo
/usr/share/locale/de/LC_MESSAGES/attr.mo
/usr/share/locale/es/LC_MESSAGES/attr.mo
/usr/share/locale/fr/LC_MESSAGES/attr.mo
/usr/share/locale/gl/LC_MESSAGES/attr.mo
/usr/share/locale/nl/LC_MESSAGES/attr.mo
/usr/share/locale/pl/LC_MESSAGES/attr.mo
/usr/share/locale/sv/LC_MESSAGES/attr.mo
/usr/share/man/man1/attr.1.gz
/usr/share/man/man1/getfattr.1.gz
/usr/share/man/man1/setfattr.1.gz
/usr/share/man/man5/attr.5.gz

References

Summary

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