How To Install oddjob-mkhomedir on Ubuntu 20.04
Introduction
In this tutorial we learn how to install oddjob-mkhomedir
on Ubuntu 20.04.
What is oddjob-mkhomedir
oddjob-mkhomedir is:
Oddjob is a D-Bus service which performs particular tasks for clients which connect to it and issue requests using the system-wide message bus.
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.
There are three methods to install oddjob-mkhomedir
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install oddjob-mkhomedir Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install oddjob-mkhomedir
using apt-get
by running the following command:
sudo apt-get -y install oddjob-mkhomedir
Install oddjob-mkhomedir Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install oddjob-mkhomedir
using apt
by running the following command:
sudo apt -y install oddjob-mkhomedir
Install oddjob-mkhomedir Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install oddjob-mkhomedir
using aptitude
by running the following command:
sudo aptitude -y install oddjob-mkhomedir
How To Uninstall oddjob-mkhomedir on Ubuntu 20.04
To uninstall only the oddjob-mkhomedir
package we can use the following command:
sudo apt-get remove oddjob-mkhomedir
Uninstall oddjob-mkhomedir And Its Dependencies
To uninstall oddjob-mkhomedir
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove oddjob-mkhomedir
Remove oddjob-mkhomedir Configurations and Data
To remove oddjob-mkhomedir
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge oddjob-mkhomedir
Remove oddjob-mkhomedir configuration, data, and all of its dependencies
We can use the following command to remove oddjob-mkhomedir
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge oddjob-mkhomedir
References
Summary
In this tutorial we learn how to install oddjob-mkhomedir
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.