How To Install perl-Config-General on CentOS 7
Introduction
In this tutorial we learn how to install perl-Config-General
on CentOS 7.
What is perl-Config-General
This module opens a config file and parses its contents for you. After parsing the module returns a hash structure which contains the representation of the config file. The format of config files supported by Config inspired by the well known Apache config format, in fact, this module is 100% read-compatible with Apache configs, but you can also just use simple name/value pairs in your config files. In addition to the capabilities of an Apache config file it supports some enhancements such as here-documents, C-style comments or multiline options. It is also possible to save the config back to disk, which makes the module a perfect backend for configuration interfaces. It is possible to use variables in config files and there exists also support for object oriented access to the configuration.
We can use yum
or dnf
to install perl-Config-General
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Config-General.
Install perl-Config-General on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install perl-Config-General
using yum
by running the following command:
Install perl-Config-General on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install perl-Config-General
using dnf
by running the following command:
How To Uninstall perl-Config-General on CentOS 7
To uninstall only the perl-Config-General
package we can use the following command:
References
Summary
In this tutorial we learn how to install perl-Config-General
on CentOS 7 using yum
and dnf
.