How To Install oddjob-mkhomedir on Rocky Linux 8

In this tutorial we learn how to install oddjob-mkhomedir on Rocky Linux 8. oddjob-mkhomedir is An oddjob helper which creates and populates home directories

Introduction

In this tutorial we learn how to install oddjob-mkhomedir on Rocky Linux 8.

What is oddjob-mkhomedir

This package contains the oddjob helper which can be used by the pam_oddjob_mkhomedir module to create a home directory for a user at login-time.

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

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

sudo dnf -y install oddjob-mkhomedir

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

sudo yum -y install oddjob-mkhomedir

How To Uninstall oddjob-mkhomedir on Rocky Linux 8

To uninstall only the oddjob-mkhomedir package we can use the following command:

sudo dnf remove oddjob-mkhomedir

oddjob-mkhomedir Package Contents on Rocky Linux 8

/etc/dbus-1/system.d/oddjob-mkhomedir.conf
/etc/oddjobd.conf.d/oddjobd-mkhomedir.conf
/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/aa89511296115025cf34d5fc61f23f7c26c129
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/d116d464c8fc6ea706604309e8bf9b73a1c706
/usr/lib64/security/pam_oddjob_mkhomedir.so
/usr/libexec/oddjob
/usr/libexec/oddjob/mkhomedir
/usr/share/doc/oddjob-mkhomedir
/usr/share/doc/oddjob-mkhomedir/mkhomedirfor
/usr/share/doc/oddjob-mkhomedir/mkmyhomedir
/usr/share/man/man5/oddjob-mkhomedir.conf.5.gz
/usr/share/man/man5/oddjobd-mkhomedir.conf.5.gz
/usr/share/man/man8/pam_oddjob_mkhomedir.8.gz

References

Summary

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