How To Install emacs-dockerfile-mode on Fedora 36

In this tutorial we learn how to install emacs-dockerfile-mode in Fedora 36. emacs-dockerfile-mode is An emacs mode for handling Dockerfiles

Introduction

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

What is emacs-dockerfile-mode

This package provides a major mode dockerfile-mode' for use with the standard Dockerfile’ file format. Additional convenience functions allow images to be built easily.

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

Install emacs-dockerfile-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-dockerfile-mode using dnf by running the following command:

sudo dnf -y install emacs-dockerfile-mode

Install emacs-dockerfile-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-dockerfile-mode using yum by running the following command:

sudo yum -y install emacs-dockerfile-mode

How To Uninstall emacs-dockerfile-mode on Fedora 36

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

sudo dnf remove emacs-dockerfile-mode

emacs-dockerfile-mode Package Contents on Fedora 36

/usr/share/doc/emacs-dockerfile-mode
/usr/share/doc/emacs-dockerfile-mode/README.md
/usr/share/emacs/site-lisp/dockerfile-mode
/usr/share/emacs/site-lisp/dockerfile-mode/dockerfile-mode.el
/usr/share/emacs/site-lisp/dockerfile-mode/dockerfile-mode.elc
/usr/share/emacs/site-lisp/site-start.d/dockerfile-mode-init.el
/usr/share/licenses/emacs-dockerfile-mode
/usr/share/licenses/emacs-dockerfile-mode/LICENSE

References

Summary

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