How To Install file.x86_64 on Amazon Linux 2

In this tutorial we learn how to install file.x86_64 in Amazon Linux 2. file.x86_64 is A utility for determining file types

Introduction

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

What is file.x86_64

The file command is used to identify a particular file according to the type of data contained by the file. File can identify many different file types, including ELF binaries, system libraries, RPM packages, and different graphics formats.

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

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

sudo yum -y install file.x86_64

How To Uninstall file.x86_64 on Amazon Linux 2

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

sudo yum remove file.x86_64

file.x86_64 Package Contents on Amazon Linux 2

/etc/magic
/usr/bin/file
/usr/share/doc/file-5.11
/usr/share/doc/file-5.11/COPYING
/usr/share/doc/file-5.11/ChangeLog
/usr/share/doc/file-5.11/README
/usr/share/man/man1/file.1.gz

References

Summary

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