Difference between revisions of "Installing Emacs on GNU/Linux"

From WikEmacs
Jump to navigation Jump to search
(Mention Distrobox and Debian backports; update Debian release; mention su and doas as alternatives for sudo; point to GNU Savannah for Emacs git repository)
(→‎Ubuntu: Updated Ubuntu version and removed obsolete PPAs)
Line 30: Line 30:
 
= Ubuntu =
 
= Ubuntu =
  
== Emacs 23 ==
+
== Emacs 29.3 on Ubuntu 24.04 LTS (Noble Numbat)==
  
 
<source lang="bash">
 
<source lang="bash">
$ sudo apt-get install emacs
+
# As root (doas, sudo or su)
 +
apt-get install emacs
 
</source>
 
</source>
  
== Emacs 24 ==
+
== Emacs Daily ==
The following PPA is no longer maintained and currently features Emacs 24.3.
 
 
 
<source lang="bash">
 
$ sudo apt-add-repository ppa:cassou/emacs
 
 
 
$ sudo apt-get install emacs24 emacs24-el emacs24-common-non-dfsg
 
</source>
 
 
 
== Emacs 25 ==
 
  
<source lang="bash">
+
Read the disclaimer on the [https://launchpad.net/~ubuntu-elisp/+archive/ubuntu/ppa#edit-description PPA description]
sudo apt-add-repository -y ppa:adrozdoff/emacs
 
sudo apt update
 
sudo apt install emacs25
 
</source>
 
 
 
== Emacs Daily ==
 
  
 
<source lang="bash">
 
<source lang="bash">
$ sudo apt-add-repository ppa:ubuntu-elisp/ppa
+
# As root (doas, sudo or su)
 
+
apt-add-repository ppa:ubuntu-elisp/ppa
$ sudo apt-get install emacs-snapshot emacs-snapshot-el
+
apt-get install emacs-snapshot emacs-snapshot-el
 
</source>
 
</source>
  

Revision as of 16:01, 8 October 2024

Check if your distribution already provides an Emacs version of interest to you.

For a more recent build, try installing GNU Guix, Distrobox, building from source or one of the following unofficial repositories for your distribution.

Debian (bookworm)

Debian bookworm is (as of 2024-10-08) Debian stable, released on 2023-06-10.

Emacs 29.4 (on bookworm-backports)

# As root (su, doas or sudo)
apt install emacs

Emacs 28.2

# As root (su, doas or sudo)
apt install emacs


Ubuntu

Emacs 29.3 on Ubuntu 24.04 LTS (Noble Numbat)

# As root (doas, sudo or su)
apt-get install emacs

Emacs Daily

Read the disclaimer on the PPA description

# As root (doas, sudo or su)
apt-add-repository ppa:ubuntu-elisp/ppa
apt-get install emacs-snapshot emacs-snapshot-el

Gentoo

See Emacs on Gentoo page.

Arch Linux

Emacs 24

$ sudo pacman -S emacs

Emacs-git

Compile and Install bleeding edge using AUR:

$ yaourt -S emacs-git

Slackware

Compile and Install using emacs.SlackBuild (unofficial).

Fedora

Emacs 23

Available up to Fedora 16

$ sudo yum install emacs

Emacs 24

Available from Fedora 17+

$ sudo yum install emacs

SUSE

Emacs 23

Available in 12.1 and 12.2. Before that? not sure.

$ sudo zypper install emacs

Emacs 24

Not available till 12.2, but available from Factory repo. Add factory repo and then,

$ sudo zypper install emacs

Mandriva

No pre-built packages.