How To Install cfget on Debian 10

Learn how to install cfget on Debian 10 with this tutorial. cfget is featureful tool to read values from config files

Introduction

In this tutorial we learn how to install cfget on Debian 10.

What is cfget

cfget is:

cfget is a simple yet featureful tool to read values from configuration files. It is useful, for example, to create configurable shellscripts or makefiles.

Besides retrieving values, it can dump the information in several convenient ways, like a set of sh exports commands that can be conveniently passed to eval. It can also use the configuration values to expand template files.

It can also be configured to support virtual configuration values that, if not present in the config file, are automatically computed from the existing values. This makes it convenient, for example, to get a “duration” value from a configuration file that only contains a “start date” and an “end date”.

It is also easy to create plugins to provide custom templating systems, export styles, dynamic values and even custom configuration file parsers.

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

Install cfget Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install cfget

Install cfget Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install cfget

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

sudo aptitude -y install cfget

How To Uninstall cfget on Debian 10

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

sudo apt-get remove cfget

Uninstall cfget And Its Dependencies

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

sudo apt-get -y autoremove cfget

Remove cfget Configurations and Data

To remove cfget configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge cfget

Remove cfget configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge cfget

Dependencies

cfget have the following dependencies:

References

Summary

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