Compiling emacs from source and installing on fedora.
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
Clone repository savannah.gnu.org
git clone -b master git://git.sv.gnu.org/emacs.git
  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.