Skip to content

Instantly share code, notes, and snippets.

@Dreameh
Created October 2, 2019 19:37
Show Gist options
  • Save Dreameh/86562b83410db6151e871d811a70c470 to your computer and use it in GitHub Desktop.
Save Dreameh/86562b83410db6151e871d811a70c470 to your computer and use it in GitHub Desktop.
Installing emacs on fedora

Install Emacs on Fedora

As a Fedora user, I sometimes have to withstand the urge to get the latest version of something, simply because it doesn’t exist in the main repositories, nor in copr or anything, so I set out to fix that little urge by installing the source directly onto the system.

# Dependencies for development
sudo dnf group install "Development Tools"
# Dependencies specific to emacs
sudo dnf builddep emacs

# Download the latest stable release from emacs website
wget http://mirrors.kernel.org/gnu/emacs/emacs-26.3.tar.xz
wget http://mirrors.kernel.org/gnu/emacs/emacs-26.3.tar.xz.sig

# Verify the tar.xz file
gpg --verify emacs-26.3.tar.xz.sig emacs-26.3.tar.xz

# Once that has been taken care of, extract the tar.xz archive.
tar -xvf emacs-26.3.tar.xz

# Go into the newly made folder
cd emacs-26.3

# Configure the source
./configure

# Compile the source
make

# Check the binary to see that it runs smoothly
src/emacs -Q

# Install the binary
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment