{"id":44191,"date":"2023-08-02T15:25:21","date_gmt":"2023-08-02T15:25:21","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=44191"},"modified":"2025-08-18T08:28:41","modified_gmt":"2025-08-18T08:28:41","slug":"gnu-emacs-29-1-ubuntu-ppa","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2023\/08\/gnu-emacs-29-1-ubuntu-ppa\/","title":{"rendered":"How to Install GNU Emacs 30.2 in Ubuntu 24.04, 22.04 via PPA"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/emacs-icon.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-36513\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/emacs-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/emacs-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/emacs-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/emacs-icon-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/emacs-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/emacs-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>GNU Emacs text editor released new major 30.2 release few days ago. Here&#8217;s how to install it in Ubuntu 24.04, Ubuntu 25.04, Ubuntu 20.04, and Linux Mint 21\/22 through PPA.<\/p>\n<p>Emacs 30.1 is a new major release that features Android port, improved touch-screen support, as well as following new features:<\/p>\n<ul>\n<li>New <code>trusted-content<\/code> option, defines list of files and directories whose content that Emacs trusts.<\/li>\n<li>New <code>which-key<\/code> package, implements the global minor mode <code>which-key-mode<\/code>.<\/li>\n<li>Native JSON support without needing external libjansson library.<\/li>\n<li>Update <code>emacsclient.desktop<\/code> to be default app for <code>org-protocol<\/code>.<\/li>\n<li>New <code>tool-bar-position<\/code> parameter to set tool bar to bottom.<\/li>\n<li>Default to ossaudio for sound on NetBSD and OpenBSD.<\/li>\n<li>New package <code>Compat<\/code>, <code>EditorConfig<\/code>, and <code>Window-Tool-Bar<\/code>.<\/li>\n<li>New library Track-Changes and PEG.<\/li>\n<li>New major mode &#8216;elixir-ts-mode&#8217;, &#8216;heex-ts-mode&#8217;, &#8216;html-ts-mode&#8217;, &#8216;lua-ts-mode&#8217;, and &#8216;php-ts-mode&#8217;.<\/li>\n<li>Support for styled underline face attributes.<\/li>\n<li>Support for underline colors on TTY frames.<\/li>\n<li>Support Unicode Standard v15.1.<\/li>\n<li>Modeline elements can be right-aligned.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/02\/emacs301.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-48199\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/02\/emacs301-700x694.webp\" alt=\"\" width=\"610\" height=\"605\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/02\/emacs301-700x694.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/02\/emacs301-300x298.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/02\/emacs301.webp 752w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h3>How to install Emacs (30.2 Updated) in Ubuntu:<\/h3>\n<p>GNU Emacs editor is easy to install in Ubuntu Linux with few different ways. Choose any one that you prefer!<\/p>\n<h4>Option 1: Snap package<\/h4>\n<p>For <b>Ubuntu 20.04<\/b>, <b>Ubuntu 22.04<\/b>, <strong>Ubuntu 24.04<\/strong>, and higher, simply launch Ubuntu Software (or App Center for 24.04), then search and install GNU Emacs from Snap Store. Though, it&#8217;s a Snap package runs in sandbox environment.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/emacs31-appcenter.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-48225\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/emacs31-appcenter-700x415.webp\" alt=\"\" width=\"610\" height=\"362\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/emacs31-appcenter-700x415.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/emacs31-appcenter-300x178.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/emacs31-appcenter-768x455.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/emacs31-appcenter.webp 1101w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><br \/>\nThe snap package so far provides version 30.2 for <code>amd64<\/code>, <code>arm64<\/code>, <code>ppc64el<\/code>, <code>armhf<\/code>, and <code>s390x<\/code>.<\/p>\n<p>For choice, user can run command in terminal (Ctrl+Alt+T) instead to install from command line:<\/p>\n<pre>snap install emacs --classic<\/pre>\n<p>The snap package installs updates automatically. To check updates manually, use command:<\/p>\n<pre>snap refresh emacs<\/pre>\n<h4>Option 2: Ubuntu PPA<\/h4>\n<p>For those prefer the classic <code>.deb<\/code> package format, <a href=\"https:\/\/launchpad.net\/debian\/+source\/emacs\" target=\"_blank\" rel=\"noopener\">Debian upstream<\/a> has built the new release package. And, I backported it into <a href=\"https:\/\/launchpad.net\/~ubuntuhandbook1\/+archive\/ubuntu\/emacs\" target=\"_blank\" rel=\"noopener\">this PPA<\/a> with support for for Ubuntu 22.04, Ubuntu 20.04, Ubuntu 25.04 and Ubuntu 24.04 on <code>amd64<\/code>, <del datetime=\"2025-08-18T08:26:20+00:00\"><code>arm64<\/code> and <code>armhf<\/code><\/del> platforms.<\/p>\n<p><b>NOTE: The PPA package is just no-change backport from Debian upstream without testing! It seems working good in my case, but may or may not work in your case!<\/b><\/p>\n<p>First, press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal. When it opens, run command to add the PPA:<\/p>\n<pre>sudo add-apt-repository ppa:ubuntuhandbook1\/emacs<\/pre>\n<p><i>Type user password (no asterisk feedback) when it asks and hit Enter to continue.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/emacs291-ppa-jammy.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44197\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/emacs291-ppa-jammy-600x388.webp\" alt=\"\" width=\"600\" height=\"388\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/emacs291-ppa-jammy-600x388.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/emacs291-ppa-jammy-300x194.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/emacs291-ppa-jammy.webp 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Then, either open <b>Software Updater<\/b> (Update Manager) to upgrade the package if an old version was installed.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/upgrade-emacs291.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44193\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/upgrade-emacs291-600x546.webp\" alt=\"\" width=\"600\" height=\"546\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/upgrade-emacs291-600x546.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/upgrade-emacs291-300x273.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/upgrade-emacs291.webp 690w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Or, run the command below instead to install\/update the Emacs package:<\/p>\n<pre>sudo apt install emacs emacs-common<\/pre>\n<p><i>Linux Mint user needs to run <code>sudo apt update<\/code> first to manually refresh package cache. And, there are few GUI for choice:\u00a0<\/i><\/p>\n<ul>\n<li><code>emacs-gtk<\/code> &#8211; GTK GUI.<\/li>\n<li><code>emacs-pgtk<\/code> &#8211; GTK + Wayland GUI.<\/li>\n<li><code>emacs-lucid<\/code> &#8211; Lucid GUI.<\/li>\n<li><code>emacs-nox<\/code> &#8211; without GUI support.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-emacs.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44194\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-emacs-600x421.webp\" alt=\"\" width=\"600\" height=\"421\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-emacs-600x421.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-emacs-300x211.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-emacs.webp 759w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h4>Option 3: Flatpak package<\/h4>\n<p>Emacs is also available to install as <a href=\"https:\/\/flathub.org\/apps\/org.gnu.emacs\" target=\"_blank\" rel=\"noopener\">Flatpak package<\/a>, which also runs in sandbox environment and supports <code>amd64<\/code> and <code>arm64<\/code> platforms.<\/p>\n<p>Linux Mint 21\/22 (need to enable unverified Flatpaks) and Fedora Workstation (with 3rd party repository enabled) users can search for and install the package from either Software Manager or GNOME Software.<\/p>\n<p>While Ubuntu users can run the 2 commands below one by one to get the package:<\/p>\n<ul>\n<li>First, run command to enable Flatpak support:\n<pre>sudo apt install flatpak<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-39141\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy-600x229.webp\" alt=\"\" width=\"600\" height=\"229\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy-600x229.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy-300x115.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy-768x294.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy.webp 777w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/li>\n<li>Then, run command to install Emacs Flatpak package:\n<pre>flatpak install https:\/\/dl.flathub.org\/repo\/appstream\/org.gnu.emacs.flatpakref<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/flatpak-emacs.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46117\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/flatpak-emacs-700x475.webp\" alt=\"\" width=\"610\" height=\"414\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/flatpak-emacs-700x475.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/flatpak-emacs-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/flatpak-emacs-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/flatpak-emacs.webp 786w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/li>\n<\/ul>\n<p>If this is the first Flatpak package you installed on the system, then you may need a log out and back in to make app icon visible in system menu.<\/p>\n<p>And, to update the Flatpak package, use command:<\/p>\n<pre>flatpak update org.gnu.emacs<\/pre>\n<h3>Uninstall Emacs 30.2<\/h3>\n<p>For the snap package, also use Ubuntu Software to remove it. Or, run command in terminal:<\/p>\n<pre>sudo snap remove --purge emacs<\/pre>\n<p>For the package installed from Ubuntu PPA, open terminal (Ctrl+Alt+T) and run command:<\/p>\n<ul>\n<li>purge the PPA as well as downgrade Emacs to stock version:\n<pre>sudo apt install ppa-purge &amp;&amp; sudo ppa-purge ppa:ubuntuhandbook1\/emacs<\/pre>\n<\/li>\n<li>Or, simply remove Emacs by running command:\n<pre>sudo apt remove --autoremove emacs emacs-common<\/pre>\n<p>As well, remove the PPA either from &#8220;Software &amp; Updates -&gt; Other Software&#8221; or by running command:<\/p>\n<pre>sudo add-apt-repository --remove ppa:ubuntuhandbook1\/emacs<\/pre>\n<\/li>\n<\/ul>\n<p>To uninstall the Emacs Flatpak package, run command in terminal:<\/p>\n<pre>flatpak uninstall --delete-data org.gnu.emacs<\/pre>\n<p>Also run <code>flatpak uninstall --unused<\/code> to clear useless run-time libraries.<\/p>","protected":false},"excerpt":{"rendered":"<p>GNU Emacs text editor released new major 30.2 release few days ago. Here&#8217;s how to install it in Ubuntu 24.04, Ubuntu 25.04, Ubuntu 20.04, and Linux Mint 21\/22 through PPA. Emacs 30.1 is a new major release that features Android port, improved touch-screen support, as well as following new features: New trusted-content option, defines list [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":36513,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[596],"class_list":["post-44191","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-emacs"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=44191"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44191\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/36513"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=44191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=44191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=44191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}