Emacs is a cross-platform, feature-rich source code and text editor that can be installed almost on every Linux distribution. Users can write different programming codes in this editor. So, most of the programmers and developers prefer to use the emacs editor due to its extensible features. It has built-in commands and attractive user interfaces through which you can easily combine these commands in your project.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related Software Installation tasks on Debian Linux System.
In this context, we shall look into how to install the emacs editor on CentOS 8 machine.
Before proceeding with this Installation procedure, ensure that you are using a user with sudo privileges or basically log in as administrator on your Linux system to install Emacs editor.
Then use any of the methods discussed below.
To install emacs editor using epel repository do the following steps:
i. First, update the system's packages by using the below-mentioned command:
$ sudo dnf update
Then, use the below-mentioned command to install the latest release of the epel repository on your system:
$ sudo dnf install epel-release
ii. Install Emacs editor
You can install the Emacs editor directly using the epel repository on CentOS 8 system. So, use the below-given command to install the emacs editor:
$ sudo dnf install emacs
iii. Access Emacs editor
The final step is to launch the emacs editor on your system. So, go into the 'Activities' and search the 'emacs' in the displayed search bar. Then, Click on the Emacs editor icon to open the application.
To install the emacs editor through this method, use the below-mentioned command to download the all packages and then install them:
$ wget https://ftp.gnu.org/pub/gnu/emacs/emacs-27.2.tar.gz
Next, Extract downloaded tar file by running the following command:
$ tar -zxvf emacs-27.2.tar.gz
Now, navigate into the emacs folder and install the configuration file by using the following command:
$ cd emacs-27.2
$ ./configure
$ make
$ make install
Another method of installing Emacs Editor is via snap application.
To Install the snapd application, simply execute the below-given command:
$ sudo dnf install snapd
Then, Enable snap and create a link b using the below mentioned commands:
$ sudo systemctl enable --now snapd.socket
$ sudo ln -s /var/lib/snapd/snap /snap
Now, install emacs editor through snap application by using the following command:
$ sudo snap install emacs –classic
To remove or uninstall the Emacs editor from CentOS 8 system, use the below-mentioned command:
$ sudo dnf remove emacs
This article covers different methods to install the emacs editor on CentOS 8 system. Emacs is one of the oldest and most versatile text editors available for Linux and UNIX-based systems. It's been around for a long time (more than twenty years for GNU emacs) and is well known for its powerful and rich editing features. Emacs is also more than just a text editor; it can be customized and extended with different "modes", enabling it to be used like an Integrated Development Environment (IDE) for programming languages like Java, C or Python.
To Install Emacs via EPEL repository, Run the following command:
$ sudo dnf update
$ sudo dnf install epel-release
$ sudo dnf install emacs