How To Install autodir on Debian 9

In this tutorial we learn how to install autodir on Debian 9. autodir is Automatically creates home and group directories for LDAP/NIS/SQL/local accounts

Introduction

In this tutorial we learn how to install autodir on Debian 9.

What is autodir

autodir is:

A modular and thread-enabled tool to create and/or mounting and managing automagically and transparently user/group home directories, on demand.

It can work with any authentication framework (e.g. system files, NIS, LDAP or SQL) and does not require PAM, which is a required feature for session-less service such as smtp servers.

Automounter version 4 (autofs4) has to be enabled when compiling the kernel. Debian packaged kernels have it enabled as module.

There are three methods to install autodir on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install autodir Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install autodir using apt-get by running the following command:

sudo apt-get -y install autodir

Install autodir Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install autodir using apt by running the following command:

sudo apt -y install autodir

Install autodir 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install autodir using aptitude by running the following command:

sudo aptitude -y install autodir

How To Uninstall autodir on Debian 9

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

sudo apt-get remove autodir

Uninstall autodir And Its Dependencies

To uninstall autodir and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove autodir

Remove autodir Configurations and Data

To remove autodir configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge autodir

Remove autodir configuration, data, and all of its dependencies

We can use the following command to remove autodir configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge autodir

Dependencies

autodir have the following dependencies:

References

Summary

In this tutorial we learn how to install autodir package on Debian 9 using different package management tools: apt, apt-get and aptitude.