How To Install pesign on Fedora 34

pesign is Signing utility for UEFI binaries

Introduction

In this tutorial we learn how to install pesign on Fedora 34.

What is pesign

This package contains the pesign utility for signing UEFI binaries as well as other associated tools.

We can use yum or dnf to install pesign on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install pesign.

Install pesign on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install pesign

Install pesign on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install pesign

How To Uninstall pesign on Fedora 34

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

sudo dnf remove pesign

pesign Package Contents on Fedora 34

/etc/pesign/groups
/etc/pesign/users
/etc/pki/pesign
/etc/pki/pesign-rh-test
/etc/pki/pesign-rh-test/cert9.db
/etc/pki/pesign-rh-test/key4.db
/etc/pki/pesign-rh-test/pkcs11.txt
/etc/pki/pesign/cert9.db
/etc/pki/pesign/key4.db
/etc/pki/pesign/pkcs11.txt
/etc/popt.d/pesign.popt
/run/pesign
/run/pesign/pesign.pid
/run/pesign/socket
/usr/bin/authvar
/usr/bin/efikeygen
/usr/bin/efisiglist
/usr/bin/pesigcheck
/usr/bin/pesign
/usr/bin/pesign-client
/usr/lib/.build-id
/usr/lib/.build-id/62
/usr/lib/.build-id/62/a924a28537d5ec9038621b28eaf46961867c18
/usr/lib/.build-id/79
/usr/lib/.build-id/79/b04228fa37dd35cd883d8d960a9f59369b677c
/usr/lib/.build-id/90
/usr/lib/.build-id/90/cc1578e73c15b91e1d1980c26f195324a41a18
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/b161ce599e74b243cdafee014dbdb2bf64f424
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/472ee7f7f4d07919ca6a98cb79f9023d28a2ac
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/436b2983632e6a495f384e25983a9dc109cd62
/usr/lib/python3.9/site-packages/mockbuild/plugins/__pycache__/pesign.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/mockbuild/plugins/__pycache__/pesign.cpython-39.pyc
/usr/lib/python3.9/site-packages/mockbuild/plugins/pesign.py
/usr/lib/rpm/macros.d/macros.pesign
/usr/lib/systemd/system/pesign.service
/usr/lib/tmpfiles.d/pesign.conf
/usr/libexec/pesign
/usr/libexec/pesign/pesign-authorize
/usr/libexec/pesign/pesign-rpmbuild-helper
/usr/share/doc/pesign
/usr/share/doc/pesign/README
/usr/share/doc/pesign/TODO
/usr/share/licenses/pesign
/usr/share/licenses/pesign/COPYING
/usr/share/man/man1/authvar.1.gz
/usr/share/man/man1/efikeygen.1.gz
/usr/share/man/man1/efisiglist.1.gz
/usr/share/man/man1/pesigcheck.1.gz
/usr/share/man/man1/pesign-client.1.gz
/usr/share/man/man1/pesign.1.gz

References

Summary

In this tutorial we learn how to install pesign on Fedora 34 using yum and dnf.