How To Install ed.x86_64 on Amazon Linux 2

In this tutorial we learn how to install ed.x86_64 in Amazon Linux 2. ed.x86_64 is The GNU line editor

Introduction

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

What is ed.x86_64

Ed is a line-oriented text editor, used to create, display, and modify text files (both interactively and via shell scripts). For most purposes, ed has been replaced in normal usage by full-screen editors (emacs and vi, for example). Ed was the original UNIX editor, and may be used by some programs. In general, however, you probably don’t need to install it and you probably won’t use it.

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

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

sudo yum -y install ed.x86_64

How To Uninstall ed.x86_64 on Amazon Linux 2

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

sudo yum remove ed.x86_64

ed.x86_64 Package Contents on Amazon Linux 2

/bin/ed
/bin/red
/usr/share/doc/ed-1.9
/usr/share/doc/ed-1.9/AUTHORS
/usr/share/doc/ed-1.9/COPYING
/usr/share/doc/ed-1.9/ChangeLog
/usr/share/doc/ed-1.9/NEWS
/usr/share/doc/ed-1.9/README
/usr/share/doc/ed-1.9/TODO
/usr/share/info/ed.info.gz
/usr/share/man/man1/ed.1.gz
/usr/share/man/man1/red.1.gz

References

Summary

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