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.
How to Install Emacs Editor on CentOS ?
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.
1. Emacs editor Installation using the EPEL repository
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.
2. Emacs editor Installation via the official repository
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
$ make install
3. Emacs editor Installation using snap
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
How to Uninstall Emacs Editor from CentOS 8
To remove or uninstall the Emacs editor from CentOS 8 system, use the below-mentioned command:
$ sudo dnf remove emacs
[Need assistance in Installing Software Packages on Ubuntu Linux System? We can help you. ]