How To Install facter on Fedora 34

facter is Command and ruby library for gathering system information Command and ruby library for gathering system information

Introduction

In this tutorial we learn how to install facter on Fedora 34.

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. facter 3.14.7 7.fc34 x86_64 506 k facter-3.14.7-7.fc34.src.rpm fedora Command and ruby library for gathering system information https ASL 2.0 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install facter.

Install facter on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install facter using dnf by running the following command:

sudo dnf -y install facter

Install facter on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install facter using yum by running the following command:

sudo yum -y install facter

How To Uninstall facter on Fedora 34

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

sudo dnf remove facter

facter Package Contents on Fedora 34

/usr/bin/facter
/usr/lib/.build-id
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/53a65bfe5924fe0f65064abdfa7a8537c91770
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/2c3690eee71854d941e6df33cfe7b958459ddc
/usr/lib/libfacter.so
/usr/lib/libfacter.so.3.14.7
/usr/share/doc/facter
/usr/share/doc/facter/README.md
/usr/share/licenses/facter
/usr/share/licenses/facter/LICENSE
/usr/share/man/man8/facter.8.gz
/usr/bin/facter
/usr/lib/.build-id
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/01450b17a83686f126ac23d0855f86070c7f19
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/540c00411ec5750f959af92f88ea6763f02123
/usr/lib64/libfacter.so
/usr/lib64/libfacter.so.3.14.7
/usr/share/doc/facter
/usr/share/doc/facter/README.md
/usr/share/licenses/facter
/usr/share/licenses/facter/LICENSE
/usr/share/man/man8/facter.8.gz

References

Summary

In this tutorial we learn how to install facter on Fedora 34 using yum and dnf.