How To Install dphys-config on Ubuntu 18.04

In this tutorial we learn how to install dphys-config on Ubuntu 18.04. dphys-config is Tool to distribute config files by fetching them

Introduction

In this tutorial we learn how to install dphys-config on Ubuntu 18.04.

What is dphys-config

dphys-config is:

This project is aimed at automatically installing (and keeping update) site specific config files on many hosts, after preprocessing them (conditional content and include files and include sections).

It’s installed on the client receiving the configuration files and fetches them regularly via cron-jobs or on demand from the commandline.

It also triggers postinstall scripts whenever their associated config file has been changed. It can also remove config files, including running an preremove script before doing so. All this is driven by an simple config file list.

dphys-config is capable of reporting update failure or success to a Xymon (formerly Hobbit) monitoring server.

dphys-config features an interactive mode and a non-interactive diff mode to check what would be updated.

There are three methods to install dphys-config on Ubuntu 18.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 dphys-config Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install dphys-config

Install dphys-config Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dphys-config

Install dphys-config 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 dphys-config using aptitude by running the following command:

sudo aptitude -y install dphys-config

How To Uninstall dphys-config on Ubuntu 18.04

To uninstall only the dphys-config package we can use the following command:

sudo apt-get remove dphys-config

Uninstall dphys-config And Its Dependencies

To uninstall dphys-config and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove dphys-config

Remove dphys-config Configurations and Data

To remove dphys-config configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge dphys-config

Remove dphys-config configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge dphys-config

References

Summary

In this tutorial we learn how to install dphys-config package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.