{"id":3470,"date":"2021-01-15T16:35:04","date_gmt":"2021-01-15T16:35:04","guid":{"rendered":"https:\/\/linuxways.net\/?p=3470"},"modified":"2021-01-15T16:38:33","modified_gmt":"2021-01-15T16:38:33","slug":"how-to-install-emacs-editor-in-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-emacs-editor-in-ubuntu-20-04\/","title":{"rendered":"How to Install Emacs Editor in Ubuntu 20.04"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>Emacs is a very useful and feature-rich text editor that can be used across multiple different platforms. Because of its extensive support for writing code in different languages, it is preferred by most of the programmers. Today, we aim to teach you the different methods of installing the Emacs editor in Ubuntu 20.04.<\/p>\n<h2>Methods of Installing the Emacs Editor in Ubuntu 20.04:<\/h2>\n<p>For installing the Emacs editor in Ubuntu 20.04, you can use either of the two methods shared over here.<\/p>\n<h3>Method # 1: Using the Snap Package Manager:<\/h3>\n<p>For using the Snap package manager to install the Emacs editor in Ubuntu 20.04, you will have to perform these steps:<\/p>\n<h4>Step # 1: Install the Emacs Editor through the Snap Package Manager in Ubuntu 20.04:<\/h4>\n<p>The Emacs editor can be installed on Ubuntu 20.04 by using the Snap package manager with the following command:<\/p>\n<pre><strong>sudo snap install emacs --classic<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"575\" height=\"29\" class=\"wp-image-3471\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-212.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-212.png 575w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-212-300x15.png 300w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/p>\n<p>Once the Emacs editor will be successfully installed, you will receive the success message shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"639\" height=\"82\" class=\"wp-image-3472\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-213.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-213.png 639w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-213-300x38.png 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/p>\n<h4>Step # 2: Check the Installed Version of Emacs Editor in Ubuntu 20.04:<\/h4>\n<p>We can also check the installed version of Emacs editor through this method by running the following command:<\/p>\n<pre><strong>\/snap\/bin\/emacs --version<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"508\" height=\"26\" class=\"wp-image-3473\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-214.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-214.png 508w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-214-300x15.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-214-501x26.png 501w\" sizes=\"auto, (max-width: 508px) 100vw, 508px\" \/><\/p>\n<p>The version of the Emacs editor installed on our Ubuntu 20.04 system is shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"154\" class=\"wp-image-3474\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-215.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-215.png 640w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-215-300x72.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<h3>Method # 2: Using the PPA Repository:<\/h3>\n<p>For using the PPA repository to install the Emacs editor in Ubuntu 20.04, you will have to perform these steps:<\/p>\n<h4>Step # 1: Add the Emacs PPA Repository to your Ubuntu 20.04 System:<\/h4>\n<p>First, we will add the Emacs PPA repository to our Ubuntu 20.04 system with the following command:<\/p>\n<pre><strong>sudo add-apt-repository ppa:kelleyk\/emacs<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"31\" class=\"wp-image-3475\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-216.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-216.png 649w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-216-300x14.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/strong><\/p>\n<p>When the Emacs PPA repository will be added successfully to your Ubuntu 20.04 system, you will see these messages on your screen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"533\" class=\"wp-image-3476\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-217.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-217.png 728w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-217-300x220.png 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/p>\n<h4>Step # 2: Update your Ubuntu 20.04 System:<\/h4>\n<p>After adding the Emacs PPA repository to our system, we will update it with the following command for the new changes to take effect.<\/p>\n<pre><strong>sudo apt-get update<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"29\" class=\"wp-image-3477\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-218.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-218.png 450w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-218-300x19.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/strong><\/p>\n<p>The state of the updated Ubuntu 20.04 system is shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"172\" class=\"wp-image-3478\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-219.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-219.png 661w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-219-300x78.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/p>\n<h4>Step # 3: Install the Desired Version of Emacs on your Ubuntu 20.04 System:<\/h4>\n<p>Now, we will install the desired version of the Emacs editor on our Ubuntu 20.04 system with the following command:<\/p>\n<pre><strong>sudo apt install emacs26<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"28\" class=\"wp-image-3479\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-220.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-220.png 500w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-220-300x17.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/strong><\/p>\n<p>When the Emacs editor will be successfully installed, we will be able to see these messages on the terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"493\" class=\"wp-image-3480\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-221.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-221.png 720w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-221-300x205.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<h4>Step # 4: Check the Installed Version of Emacs Editor in Ubuntu 20.04:<\/h4>\n<p>We can also check the installed version of Emacs editor through this method by running the following command:<\/p>\n<pre><strong>emacs --version<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"414\" height=\"28\" class=\"wp-image-3481\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-222.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-222.png 414w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-222-300x20.png 300w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/p>\n<p>The version of the Emacs editor installed on our Ubuntu 20.04 system is shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"639\" height=\"157\" class=\"wp-image-3482\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-223.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-223.png 639w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-223-300x74.png 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/p>\n<h4>Step # 5: Search for the Emacs Editor via the Activities Search Bar in Ubuntu 20.04:<\/h4>\n<p>We can also look for the Emacs editor by typing its name in the Activities search bar as shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"387\" height=\"222\" class=\"wp-image-3483\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-224.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-224.png 387w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-224-300x172.png 300w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/p>\n<h2>Method of Removing the Emacs Editor from Ubuntu 20.04:<\/h2>\n<p>Whenever you are done with using the Emacs editor in Ubuntu 20.04 and you do not need this editor any longer, you can remove it along with its configuration files with the command shown below:<\/p>\n<pre><strong>sudo apt-get purge emacs26<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"514\" height=\"29\" class=\"wp-image-3484\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-225.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-225.png 514w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-225-300x17.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-225-501x29.png 501w\" sizes=\"auto, (max-width: 514px) 100vw, 514px\" \/><\/strong><\/p>\n<p>This operation will render these messages on the terminal upon successful completion:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"713\" height=\"282\" class=\"wp-image-3485\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-226.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-226.png 713w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-226-300x119.png 300w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/p>\n<p>Now, we can even remove all the dependent packages that were installed along with the Emacs editor by running the following command:<\/p>\n<pre><strong>sudo apt-get autoremove<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"489\" height=\"26\" class=\"wp-image-3486\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-227.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-227.png 489w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-227-300x16.png 300w\" sizes=\"auto, (max-width: 489px) 100vw, 489px\" \/><\/strong><\/p>\n<p>This command will render these messages on the terminal upon successful completion and the Emacs editor and all of its dependent packages will no longer exist on your Ubuntu 20.04 system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"673\" height=\"405\" class=\"wp-image-3487\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-228.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-228.png 673w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-228-300x181.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-228-501x300.png 501w\" sizes=\"auto, (max-width: 673px) 100vw, 673px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>This article was based on the methods of installing the Emacs editor in the Ubuntu 20.04 system. We taught you two different methods of achieving the same goal and then wrapped up the article by explaining to you the method of removing this text editor from your Ubuntu 20.04 system.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction: Emacs is a very useful and feature-rich text editor that can be used across multiple different platforms. Because of its extensive support for writing code in different&hellip;<\/p>","protected":false},"author":3,"featured_media":3491,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[143,100],"class_list":["post-3470","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-emacs-editor","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/3470","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=3470"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/3470\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/3491"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=3470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=3470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=3470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}