How To Install emacs-nox.x86_64 on Amazon Linux 2

In this tutorial we learn how to install emacs-nox.x86_64 in Amazon Linux 2. emacs-nox.x86_64 is GNU Emacs text editor without X support

Introduction

In this tutorial we learn how to install emacs-nox.x86_64 on Amazon Linux 2.

What is emacs-nox.x86_64

Emacs is a powerful, customizable, self-documenting, modeless text editor. Emacs contains special code editing features, a scripting language (elisp), and the capability to read mail, news, and more without leaving the editor. This package provides an emacs binary with no X windows support for running on a terminal.

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

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

sudo yum -y install emacs-nox.x86_64

How To Uninstall emacs-nox.x86_64 on Amazon Linux 2

To uninstall only the emacs-nox.x86_64 package we can use the following command:

sudo yum remove emacs-nox.x86_64

emacs-nox.x86_64 Package Contents on Amazon Linux 2

/usr/bin/emacs
/usr/bin/emacs-27.2-nox
/usr/bin/emacs-27.2-nox.pdmp
/usr/bin/emacs-nox

References

Summary

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