How To Install mokutil on Rocky Linux 8

In this tutorial we learn how to install mokutil on Rocky Linux 8. mokutil is Tool to manage UEFI Secure Boot MoK Keys

Introduction

In this tutorial we learn how to install mokutil on Rocky Linux 8.

What is mokutil

mokutil provides a tool to manage keys for Secure Boot through the MoK (“Machine’s Own Keys”) mechanism.

We can use yum or dnf to install mokutil on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mokutil.

Install mokutil on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install mokutil using dnf by running the following command:

sudo dnf -y install mokutil

Install mokutil on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mokutil using yum by running the following command:

sudo yum -y install mokutil

How To Uninstall mokutil on Rocky Linux 8

To uninstall only the mokutil package we can use the following command:

sudo dnf remove mokutil

mokutil Package Contents on Rocky Linux 8

/usr/bin/mokutil
/usr/lib/.build-id
/usr/lib/.build-id/74
/usr/lib/.build-id/74/ef975cd4386cee8387c3c9f10143a2042a0783
/usr/share/bash-completion/completions/mokutil
/usr/share/doc/mokutil
/usr/share/doc/mokutil/README
/usr/share/licenses/mokutil
/usr/share/licenses/mokutil/COPYING
/usr/share/man/man1/mokutil.1.gz

References

Summary

In this tutorial we learn how to install mokutil on Rocky Linux 8 using yum and dnf.