How to install Emacs 27 text editor Ubuntu 20.04

Learn the steps to install GNU Emacs 27 on Ubuntu 20.04 Focal Fossa using the command terminal. You can also install Emacs 28/26/25 versions as well.

GNU Emacs is a programmable text editor suitable for development. Emacs makes it easier to write source code through syntax highlighting and can be customized by the user. Help is available for the tool as well as support for multiple languages. GNU Emacs can also be used to create text documents based on LaTeX.

Apart from that, it is a very comprehensive and platform-independent editor that is extensible by its own Lisp dialect (Emacs Lisp). Since its control is mainly based on keyboard shortcuts, it requires some training in order to be able to use all its possibilities intensively. Due to a high number of plugins, the editor can be used in almost all areas. For example, there are extensions for file management, email and news, IRC, compilations, web surfing, and much more.

Steps to install GNU Emacs 27 Ubuntu 20.04

The steps given here can be used for other Linux systems based on Ubuntu even version 18.04 can also be used to follow the given steps.

1. Add Emacs PPA repository

Well, we don’t need to add any PPA repository to install GNU Emacs Text editor on Ubuntu because it is available to install using the system’s default repository. However, the required Emacs 27 version would not be there on Ubuntu 20.04. Therefore, we need to add an unofficial PPA repository available for GNU Emacs’ various versions.

sudo add-apt-repository ppa:kelleyk/emacs

Add Emacs PPA repository

 

2. Update Ubuntu 20.04

After adding the repository, run the system update command once to ensure the APT package index is up to date. This will also install all the available updates of Ubuntu 20.04.

sudo apt update && sudo apt upgrade

 

3. Install Emacs27 on Ubuntu 20.04

Once we have added the repository, the installation of Emacs version 27 is super easy. We just need to use the APT package manager to set up this GNU text editor on our system.

sudo apt install emacs27

command to install emacs 27 on Ubuntu 20.04

 

4. Run the Text editor

Once the installation is completed, go to Ubuntu’s application launcher and there search for Emacs editor. As soon its icon appears click to run the same.

Run the Text editor Emacs

Install GNU Emcas 27 on Ubuntu 20.04 LTS Focal

 

4. How to update

In the future, if there are some updates available for Emacs, then we can install them using the system update command that is:

sudo apt update && sudo apt upgrade

 

5. Uninstall Emacs from Ubuntu 20.04

If you think the application is not suitable for you and want to try out some other text editor; then here is the command to completely remove GNU Emacs from Ubuntu 20.04 LTS focal fossa.

sudo apt autoremove --purge emacs27

To remove the PPA repo as well:

sudo add-apt-repository --remove ppa:kelleyk/emacs

 

Other Articles:

How to Create a file in Ubuntu Linux using command & GUI
Set root user password in Ubuntu 20.04 LTS focal fossa
How to install Octave on Ubuntu 22.04 | 20.04 LTS
3 ways to install Emacs text editor on Ubuntu 20.04

 

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.