Compiling emacs from source code on Fedora

Compiling emacs from source and installing on fedora.

Installing Packages

Install the following packages:

sudo dnf install git autoconf make gcc texinfo \
    gnutls-devel giflib-devel ncurses-devel \
    libjpeg-turbo-devel giflib-devel gtk3-devel \
    libXpm-devel libtiff-devel libxml2-devel -y

Cloning Repository

Clone repository

git clone -b master git://


Navigate to emacs folder (cd emacs) and run the following steps

make -j$(nproc)
sudo make install

After verify version with emacs --version, it should be equal or higher than 28.0.50.