How To Install emacs-rpm-spec-mode on Fedora 36

In this tutorial we learn how to install emacs-rpm-spec-mode in Fedora 36. emacs-rpm-spec-mode is Major GNU Emacs mode for editing RPM spec files

Introduction

In this tutorial we learn how to install emacs-rpm-spec-mode on Fedora 36.

What is emacs-rpm-spec-mode

Major GNU Emacs mode for editing RPM spec files.

We can use yum or dnf to install emacs-rpm-spec-mode on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install emacs-rpm-spec-mode.

Install emacs-rpm-spec-mode on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install emacs-rpm-spec-mode using dnf by running the following command:

sudo dnf -y install emacs-rpm-spec-mode

Install emacs-rpm-spec-mode on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install emacs-rpm-spec-mode using yum by running the following command:

sudo yum -y install emacs-rpm-spec-mode

How To Uninstall emacs-rpm-spec-mode on Fedora 36

To uninstall only the emacs-rpm-spec-mode package we can use the following command:

sudo dnf remove emacs-rpm-spec-mode

emacs-rpm-spec-mode Package Contents on Fedora 36

/usr/share/emacs/site-lisp/rpm-spec-mode/rpm-spec-mode.el
/usr/share/emacs/site-lisp/rpm-spec-mode/rpm-spec-mode.elc
/usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el

References

Summary

In this tutorial we learn how to install emacs-rpm-spec-mode on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).