How To Install facter on CentOS 7
Introduction
In this tutorial we learn how to install facter
on CentOS 7.
What is facter
Facter is a lightweight program that gathers basic node information about the hardware and operating system. Facter is especially useful for retrieving things like operating system names, hardware characteristics, IP addresses, MAC addresses, and SSH keys. Facter is extensible and allows gathering of node information that may be custom or site specific. It is easy to extend by including your own custom facts. Facter can also be used to create conditional expressions in Puppet that key off the values returned by facts.
We can use yum
or dnf
to install facter
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install facter.
Install facter on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install facter
using yum
by running the following command:
Install facter 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 facter
using dnf
by running the following command:
How To Uninstall facter on CentOS 7
To uninstall only the facter
package we can use the following command:
References
Summary
In this tutorial we learn how to install facter
on CentOS 7 using yum
and dnf
.