How To Install puppetlabs-stdlib on CentOS 7

In this tutorial we learn how to install puppetlabs-stdlib on CentOS 7. puppetlabs-stdlib is Puppet Labs Standard Library

Introduction

In this tutorial we learn how to install puppetlabs-stdlib on CentOS 7.

What is puppetlabs-stdlib

Puppet Labs Standard Library module.

We can use yum or dnf to install puppetlabs-stdlib on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install puppetlabs-stdlib.

Install puppetlabs-stdlib on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install puppetlabs-stdlib using yum by running the following command:

sudo yum -y install puppetlabs-stdlib

Install puppetlabs-stdlib 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.

sudo dnf makecache

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

sudo dnf -y install puppetlabs-stdlib

How To Uninstall puppetlabs-stdlib on CentOS 7

To uninstall only the puppetlabs-stdlib package we can use the following command:

sudo dnf remove puppetlabs-stdlib

References

Summary

In this tutorial we learn how to install puppetlabs-stdlib on CentOS 7 using yum and dnf.