{"id":7569,"date":"2021-06-24T06:57:29","date_gmt":"2021-06-24T06:57:29","guid":{"rendered":"https:\/\/linuxways.net\/?p=7569"},"modified":"2021-06-24T06:57:29","modified_gmt":"2021-06-24T06:57:29","slug":"how-to-install-emacs-editor-on-centos-8","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/how-to-install-emacs-editor-on-centos-8\/","title":{"rendered":"How to Install Emacs Editor on CentOS 8"},"content":{"rendered":"<p>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.<\/p>\n<p>We will present in this article how to install the emacs editor on CentOS 8 machine.<\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<p>Use the sudo privileges or log in as administrator on your Linux system to install Emacs editor.<\/p>\n<p>The following different ways are available to install the emacs editor on CentOS 8 system. So, open the command-line application \u2018Terminal\u2019 and install the emacs editor using the following methods on your system.<\/p>\n<h2><strong>Method # 01: Installation of Emacs editor using the EPEL repository<\/strong><\/h2>\n<p>The following steps you need to implement for the installation of emacs editor using epel repository:<\/p>\n<h3><strong>Step 1: Install the Latest Epel release<\/strong><\/h3>\n<p>First, update the system\u2019s packages by using the below-mentioned command:<\/p>\n<pre>$ sudo dnf update<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1181\" height=\"760\" class=\"wp-image-7570\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-694.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-694.png 1181w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-694-300x193.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-694-1024x659.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-694-768x494.png 768w\" sizes=\"auto, (max-width: 1181px) 100vw, 1181px\" \/><\/p>\n<p>Now, use the below-mentioned command to install the latest release of the epel repository on your system:<\/p>\n<pre>$\u00a0 sudo dnf install epel-release<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1194\" height=\"746\" class=\"wp-image-7571\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-695.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-695.png 1194w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-695-300x187.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-695-1024x640.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-695-768x480.png 768w\" sizes=\"auto, (max-width: 1194px) 100vw, 1194px\" \/><\/p>\n<h3><strong>Step 2: Installation of Emacs Editor on CentOS 8<\/strong><\/h3>\n<p>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:<\/p>\n<pre>$ sudo dnf install emacs<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1196\" height=\"738\" class=\"wp-image-7572\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-696.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-696.png 1196w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-696-300x185.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-696-1024x632.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-696-768x474.png 768w\" sizes=\"auto, (max-width: 1196px) 100vw, 1196px\" \/><\/p>\n<h3><strong>Step 3: Access Emacs editor\u00a0<\/strong><\/h3>\n<p>The final step is to launch the emacs editor on your system. So, go into the \u2019Activities\u2019 and search the \u2018emacs\u2019 in the displayed search bar. The following output shows on the terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"362\" class=\"wp-image-7573\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-697.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-697.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-697-300x148.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p>Click on the Emacs editor icon to open the application.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1197\" height=\"828\" class=\"wp-image-7574\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-698.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-698.png 1197w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-698-300x208.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-698-1024x708.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-698-768x531.png 768w\" sizes=\"auto, (max-width: 1197px) 100vw, 1197px\" \/><\/p>\n<h2><strong>Method # 02: Install Emacs editor from the official repository<\/strong><\/h2>\n<p>To install the emacs editor through this method, use the below-mentioned command to download the all packages and then install them.<\/p>\n<pre>$ wget <a href=\"https:\/\/ftp.gnu.org\/pub\/gnu\/emacs\/emacs-27.2.tar.gz\">https:\/\/ftp.gnu.org\/pub\/gnu\/emacs\/emacs-27.2.tar.gz<\/a><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"357\" class=\"wp-image-7575\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-699.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-699.png 1190w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-699-300x90.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-699-1024x307.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-699-768x230.png 768w\" sizes=\"auto, (max-width: 1190px) 100vw, 1190px\" \/><\/p>\n<p>Extract downloaded tar file by running the following command:<\/p>\n<pre>$ tar -zxvf emacs-27.2.tar.gz<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1151\" height=\"663\" class=\"wp-image-7576\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-700.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-700.png 1151w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-700-300x173.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-700-1024x590.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-700-768x442.png 768w\" sizes=\"auto, (max-width: 1151px) 100vw, 1151px\" \/><\/p>\n<p>Now, navigate into the emacs folder and install the configuration file by using the following command:<\/p>\n<pre>$ cd emacs-27.2<\/pre>\n<pre>$ .\/configure<\/pre>\n<pre>$ make<\/pre>\n<pre>$ make install<\/pre>\n<h2><strong>Method # 03: Install Emacs editor using snap\u00a0<\/strong><\/h2>\n<p>An alternative method using the snap application is also available for the installation of the emacs editor. Install the snapd application by running the below-given command:<\/p>\n<pre>$ sudo dnf install snapd<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1102\" height=\"653\" class=\"wp-image-7577\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-701.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-701.png 1102w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-701-300x178.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-701-1024x607.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-701-768x455.png 768w\" sizes=\"auto, (max-width: 1102px) 100vw, 1102px\" \/><\/p>\n<p>Enable snap and create a link b using the below mentioned commands:<\/p>\n<pre>$ sudo systemctl enable --now snapd.socket<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1093\" height=\"137\" class=\"wp-image-7578\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-702.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-702.png 1093w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-702-300x38.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-702-1024x128.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-702-768x96.png 768w\" sizes=\"auto, (max-width: 1093px) 100vw, 1093px\" \/><\/p>\n<pre>$ sudo ln -s \/var\/lib\/snapd\/snap \/snap<\/pre>\n<p>Now, install emacs editor through snap application by using the following command:<\/p>\n<pre>$ sudo snap install emacs \u2013classic<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1032\" height=\"62\" class=\"wp-image-7579\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-703.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-703.png 1032w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-703-300x18.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-703-1024x62.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-703-768x46.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-703-1020x62.png 1020w\" sizes=\"auto, (max-width: 1032px) 100vw, 1032px\" \/><\/p>\n<p>It will take few seconds to install the emacs editor using the snap.<\/p>\n<h2><strong>Uninstall Emacs Editor from CentOS 8<\/strong><\/h2>\n<p>To remove or uninstall the Emacs editor from CentOS 8 system, use the below-mentioned command:<\/p>\n<pre>$ sudo dnf remove emacs<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1195\" height=\"745\" class=\"wp-image-7580\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-704.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-704.png 1195w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-704-300x187.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-704-1024x638.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-704-768x479.png 768w\" sizes=\"auto, (max-width: 1195px) 100vw, 1195px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>We have seen in this tutorial different ways to install the emacs editor on CentOS 8 system. You can follow any method from all based on your requirements. Install the emacs editor and enjoy its extensible features on your Linux system.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>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.&hellip;<\/p>","protected":false},"author":1,"featured_media":7662,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[93,143],"class_list":["post-7569","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos-8","tag-emacs-editor"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/7569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=7569"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/7569\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/7662"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=7569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=7569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=7569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}