How To Install mkpasswd on Fedora 36

In this tutorial we learn how to install mkpasswd in Fedora 36. mkpasswd is Encrypt a password with crypt(3) function using a salt

Introduction

In this tutorial we learn how to install mkpasswd on Fedora 36.

What is mkpasswd

mkpasswd tool encrypts a given password with the crypt(3) libc function using a given salt.

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

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

sudo dnf -y install mkpasswd

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

sudo yum -y install mkpasswd

How To Uninstall mkpasswd on Fedora 36

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

sudo dnf remove mkpasswd

mkpasswd Package Contents on Fedora 36

/usr/bin/mkpasswd
/usr/lib/.build-id
/usr/lib/.build-id/45
/usr/lib/.build-id/45/c1a347daf555724e2f5815c07acf66c9bb2896
/usr/share/doc/mkpasswd
/usr/share/doc/mkpasswd/README
/usr/share/doc/mkpasswd/changelog
/usr/share/licenses/mkpasswd
/usr/share/licenses/mkpasswd/COPYING
/usr/share/licenses/mkpasswd/copyright
/usr/share/man/man1/mkpasswd.1.gz
/usr/bin/mkpasswd
/usr/lib/.build-id
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/345456443b8b5c3ace01d335f79257be5d5172
/usr/share/doc/mkpasswd
/usr/share/doc/mkpasswd/README
/usr/share/licenses/mkpasswd
/usr/share/licenses/mkpasswd/COPYING
/usr/share/licenses/mkpasswd/copyright
/usr/share/man/man1/mkpasswd.1.gz

References

Summary

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