How To Install Emacs On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Emacs On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

emacs

The extensible, customizable, self-documenting, real-time display editor.

Maintainer: Rob Browning



Section: editors

Install emacs

  • Debian apt-get install emacs Click to copy
  • Ubuntu apt-get install emacs Click to copy
  • Alpine OS apk add emacs Click to copy
  • Arch Linux pacman -S emacs Click to copy
  • Kali Linux apt-get install emacs Click to copy
  • CentOS yum install emacs-1 Click to copy
  • Fedora dnf install emacs-1 Click to copy
  • Raspbian apt-get install emacs Click to copy
  • macOS brew install emacs Click to copy

The extensible, customizable, self-documenting, real-time display editor.

How to use emacs?

Below are few example commands for emacs that you can use in the terminal.

Open emacs in console mode (without X window):
emacs -nwClick to copy
Open a file in emacs:
emacs filenameClick to copy
Exit emacs:
C-x C-cClick to copy
Installation of latest emacs command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.