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 savannah.gnu.org

git clone -b master git://git.sv.gnu.org/emacs.git

Compiling

Navigate to the emacs folder cd emacs and execute the following steps:

./autogen.sh
./configure
make -j$(nproc)
sudo make install
After verify version with ./emacs --version, it should be equal or higher than 28.0.50.