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

From WikEmacs
Jump to navigation Jump to search
 
(18 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 
Check if your distribution already provides an Emacs version of interest to you.  
 
Check if your distribution already provides an Emacs version of interest to you.  
  
If you are interested in daily builds or latest binaries, try building from [https://github.com/emacsmirror/emacs source] or try one of the following unofficial repositories based on your distribution.
+
For a more recent build, try installing GNU Guix, Distrobox, building from [https://git.savannah.gnu.org/cgit/emacs.git source] or one of the following unofficial repositories for your distribution.
 
 
 
 
'''Source(s):'''  [http://www.downloadranking.com  Emacs solutions]
 
 
 
  
 
= Debian =
 
= Debian =
  
== Emacs 23 ==
+
== Emacs 29.4 (on [https://backports.debian.org/ bookworm-backports]) ==
  
 
<source lang="bash">
 
<source lang="bash">
$ sudo apt-get install emacs
+
# As root (doas, sudo or su)
 +
apt install emacs
 
</source>
 
</source>
  
 +
== Emacs 28.2 (on Debian Bookworm) ==
  
'''Source(s):'''  [http://www.downloadranking.com  Emacs solutions]
+
Debian bookworm is (as of 2024-10-08) Debian stable, released on 2023-06-10.
  
 
== Emacs 24 ==
 
See [http://emacs.naquadah.org/ emacs-snapshot APT repo]. The page contains installation instructions. High quality, highly recommended builds! After adding the repo according to the instructions linked to above, install with the following command:
 
 
<source lang="bash">
 
<source lang="bash">
$ sudo apt-get install emacs-snapshot
+
# As root (doas, sudo or su)
 +
apt install emacs
 
</source>
 
</source>
  
 +
<!-- == Emacs 24 == -->
  
'''Source(s):'''  [http://www.downloadranking.com  Emacs solutions]
+
<!-- See [http://emacs.naquadah.org/ emacs-snapshot APT repo]. The page contains installation instructions. High quality, highly recommended builds! After adding the repo according to the instructions linked to above, install with the following command: -->
 
+
<!-- <source lang="bash"> -->
 +
<!-- $ sudo apt-get install emacs-snapshot -->
 +
<!-- </source> -->
  
 
= 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 Daily ==
  
'''Source(s):'''  [http://www.downloadranking.com  Emacs solutions]
+
First read the disclaimer on the [https://launchpad.net/~ubuntu-elisp/+archive/ubuntu/ppa#edit-description Ubuntu Emacs Lisp PPA description]
  
 
== Emacs 24 ==
 
 
<source lang="bash">
 
<source lang="bash">
$ sudo apt-add-repository ppa:cassou/emacs
+
# As root (doas, sudo or su)
$ sudo apt-get install emacs24
+
apt-add-repository ppa:ubuntu-elisp/ppa
 +
apt-get install emacs-snapshot emacs-snapshot-el
 
</source>
 
</source>
 
 
'''Source(s):'''  [http://www.downloadranking.com  Emacs solutions]
 
 
  
 
= Gentoo =
 
= Gentoo =
See [http://www.gentoo.org/proj/en/lisp/emacs/emacs.xml Emacs on Gentoo page].
+
See [https://wiki.gentoo.org/wiki/GNU_Emacs GNU Emacs - Gentoo wiki] and [https://wiki.gentoo.org/wiki/Project:GNU_Emacs/Developer_guide Project:GNU Emacs/Developer guide - Gentoo wiki].
 
 
 
 
'''Source(s):'''  [http://www.downloadranking.com  Emacs solutions]
 
 
 
  
 
= Arch Linux =
 
= Arch Linux =
  
== Emacs 23 ==
+
== Emacs 29.4 ==
  
 
<source lang="bash">
 
<source lang="bash">
$ sudo pacman -S emacs
+
# As root (doas, sudo or su)
 +
pacman -S emacs
 
</source>
 
</source>
  
 +
== Emacs-git ==
  
'''Source(s):'''  [http://www.downloadranking.com  Emacs solutions]
+
Compile and Install bleeding edge using [https://aur.archlinux.org/packages/emacs-git/ AUR]:
 
+
<source lang="bash">
 
+
$ yaourt -S emacs-git
== Emacs 24 ==
+
</source>
 
 
See  [http://aur.archlinux.org/packages.php?ID=33337 emacs-bzr] package from [http://aur.archlinux.org/index.php AUR]
 
  
 
= Slackware =
 
= Slackware =
 
Compile and Install using [http://github.com/cycojesus/slackbuilds/tree/master/e/emacs emacs.SlackBuild (unofficial)].
 
Compile and Install using [http://github.com/cycojesus/slackbuilds/tree/master/e/emacs emacs.SlackBuild (unofficial)].
 
 
'''Source(s):'''  [http://www.downloadranking.com  Emacs solutions]
 
 
  
 
= Fedora =
 
= Fedora =
  
== Emacs 23 ==
+
== Emacs 29.4 ==
Available up to Fedora 16
+
Available since at least Fedora 39.
 
<source lang="bash">
 
<source lang="bash">
$ sudo yum install emacs
+
# As root (with doas, sudo or su)
 +
dnf install emacs
 
</source>
 
</source>
  
== Emacs 24 ==
+
= openSUSE =
Available from Fedora 17+
 
<source lang="bash">
 
$ sudo yum install emacs
 
</source>
 
  
 
+
== Emacs 27.2 (openSUSE Leap 15.6) ==
'''Source(s):'''  [http://www.downloadranking.com  Emacs solutions]
 
 
 
 
 
= SUsE =
 
 
 
== Emacs 23 ==
 
 
 
Available in 12.1 and 12.2. Before that? not sure.
 
  
 
<source lang="bash">
 
<source lang="bash">
$ sudo zypper install emacs
+
# As root (with doas, sudo or su)
 +
zypper install emacs
 
</source>
 
</source>
  
 +
== Emacs 29.4 (openSUSE Tumbleweed) ==
  
'''Source(s):'''  [http://www.downloadranking.com  Emacs solutions]
+
Recent Emacs is available on openSUSE Tumbleweed (tested rolling release distribution) and possibly also on openSUSE Leap from [https://en.opensuse.org/Portal:Factory Factory repo].
 
 
 
 
== Emacs 24 ==
 
 
 
Not available till 12.2, but available from Factory repo. Add factory repo and then,
 
  
 
<source lang="bash">
 
<source lang="bash">
$ sudo zypper install emacs
+
# As root (with doas, sudo or su)
 +
zypper install emacs
 
</source>
 
</source>
 
 
'''Source(s):'''  [http://www.downloadranking.com  Emacs solutions]
 
 
 
= Mandriva =
 
No pre-built packages.
 
  
 
[[Category:GNU/Linux]][[Category:Beginner]][[Category:Install Or Upgrade]]
 
[[Category:GNU/Linux]][[Category:Beginner]][[Category:Install Or Upgrade]]

Latest revision as of 16:45, 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

Emacs 29.4 (on bookworm-backports)

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

Emacs 28.2 (on Debian Bookworm)

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

# As root (doas, sudo or su)
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

First read the disclaimer on the Ubuntu Emacs Lisp 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 GNU Emacs - Gentoo wiki and Project:GNU Emacs/Developer guide - Gentoo wiki.

Arch Linux

Emacs 29.4

# As root (doas, sudo or su)
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 29.4

Available since at least Fedora 39.

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

openSUSE

Emacs 27.2 (openSUSE Leap 15.6)

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

Emacs 29.4 (openSUSE Tumbleweed)

Recent Emacs is available on openSUSE Tumbleweed (tested rolling release distribution) and possibly also on openSUSE Leap from Factory repo.

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