3 ways to install Emacs text editor on Ubuntu 24.04 or 22.04 LTS

Using the command terminal and graphical user interface, there are multiple ways to install Emacs on Ubuntu 24.04 Noble or 22.04 Jammy JellyFish Linux.

GNU Emacs is a programmable text editor that is suitable for development. It is a comprehensive and platform-independent editor that can be expanded with its Lisp dialect (Emacs Lisp). GNU Emacs makes it easier to write source code through syntax highlighting and can be adapted by the user. Since its control is mainly based on keyboard shortcuts, it requires some training to use all its possibilities intensively. Thanks to many plugins, the editor can be used in almost all areas. There are, for example, extensions for file management, email and news, IRC, compilations, web surfing, and much more. Furthermore, it can also be used to create text documents based on LaTeX.

Steps to install Emacs text editor on Ubuntu 22.04 LTS Linux

1. Run system update

Use the system update command to get the latest version of the packages already on your system and refresh the repository cache.

sudo apt update

Also, See 3 Ways to install Visual studio code in Ubuntu

2. Install Emacs on Ubuntu 22.04

We don’t need to manually add any repository to our Ubuntu system to download the packages for Emacs. It is already in the default stable base repo of this Linux. Hence, run:

sudo apt install emacs
use APT to install Emacs text on Ubuntu

#2nd Method using SNAP

3. Use Snap to install Emacs

On Ubuntu 22.04 LTS, we already have SNAP pre-installed. Hence, we can use it to get the packages instantly and have this Text editor on our system.

sudo snap install emacs --classic

#3rd method uses GUI Ubuntu software 

4. Emacs GUI or Terminal from Ubuntu Software

Click on the Ubuntu software icon on the Dock of Ubuntu 22.04. Then click the Search icon at the top left side and search for “emacs.” From the results, install GUI or Terminal as per your choice.

Steps to install Emacs text editor on Ubuntu 20.04 LTS Linux

5. Start

The text editor can be used with a graphical user interface or without a GUI on the Command terminal. To start it, go to All Applications, search for Emacs, and select its icon to run it.

Alternatively, you can run the command below in the Terminal to start this Text editor.

emacs      # Start with GUI
emacs -nw  # Start in Terminal, --no-window-system

The Emacs configuration takes place exclusively in Elisp; internal package management is available to install ready-made extensions. You can save your configuration in the ~ / .emacs file or the ~ / .emacs.d folder.

6. How to update Emacs

Use the appropriate method to keep your Emacs app up to date:

For APT Users:

sudo apt update & sudo apt upgrade

For Snap:

sudo snap refresh emacs

For GUI:

Open Ubuntu Software, search Emas, open it from the results, and click the Update button (it will only show if some updates are available for the application).

7. Uninstall or Remove Emacs from Ubuntu 22.04

Here, we have shown multiple methods to install Emacs. Hence, as per the one you have used, go for the given commands to remove it as well.

For the APT method:

sudo apt autoremove --purge emacs

For Snap Method:

Those who have used the SNAP to install Emacs can use the given command to remove the same:

sudo snap remove emacs

For GUI:

Again, open the Ubuntu Software and search for Emacs. Open the app as its icon appears, and then click on the Bin icon.

Other Articles:

How to install Emacs 28 on Ubuntu 20.04 LTS Focal Fossa
How to Change file, folder, or app Icons in Gnome Linux
How To Install Discourse on Ubuntu 22.04 LTS Jammy Linux
Install Wike Wikipedia Reader on Ubuntu 22.04 or 20.04 LTS

Leave a Comment

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