How To Install tree.x86_64 on Amazon Linux 2

In this tutorial we learn how to install tree.x86_64 in Amazon Linux 2. tree.x86_64 is File system tree viewer

Introduction

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

What is tree.x86_64

The tree utility recursively displays the contents of directories in a tree-like format. Tree is basically a UNIX port of the DOS tree utility.

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

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

sudo yum -y install tree.x86_64

How To Uninstall tree.x86_64 on Amazon Linux 2

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

sudo yum remove tree.x86_64

tree.x86_64 Package Contents on Amazon Linux 2

/usr/bin/tree
/usr/share/doc/tree-1.6.0
/usr/share/doc/tree-1.6.0/LICENSE
/usr/share/doc/tree-1.6.0/README
/usr/share/man/man1/tree.1.gz

References

Summary

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