How To Install rubygem-puppet-resource_api on CentOS 8

rubygem-puppet-resource_api is This library provides a simple way to write new native resources for puppet

Introduction

In this tutorial we learn how to install rubygem-puppet-resource_api on CentOS 8.

What is rubygem-puppet-resource_api

This library provides a simple way to write new native resources for puppet.

We can use yum or dnf to install rubygem-puppet-resource_api on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-puppet-resource_api.

Install rubygem-puppet-resource_api on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install rubygem-puppet-resource_api using dnf by running the following command:

sudo dnf -y install rubygem-puppet-resource_api

Install rubygem-puppet-resource_api on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install rubygem-puppet-resource_api using yum by running the following command:

sudo yum -y install rubygem-puppet-resource_api

How To Uninstall rubygem-puppet-resource_api on CentOS 8

To uninstall only the rubygem-puppet-resource_api package we can use the following command:

sudo dnf remove rubygem-puppet-resource_api

rubygem-puppet-resource_api Package Contents on CentOS 8

/usr/share/gems/gems/puppet-resource_api-1.8.13
/usr/share/gems/gems/puppet-resource_api-1.8.13/.dependency_decisions.yml
/usr/share/gems/gems/puppet-resource_api-1.8.13/.fixtures.yml
/usr/share/gems/gems/puppet-resource_api-1.8.13/LICENSE
/usr/share/gems/gems/puppet-resource_api-1.8.13/NOTICE
/usr/share/gems/gems/puppet-resource_api-1.8.13/bin
/usr/share/gems/gems/puppet-resource_api-1.8.13/bin/console
/usr/share/gems/gems/puppet-resource_api-1.8.13/bin/setup
/usr/share/gems/gems/puppet-resource_api-1.8.13/contrib
/usr/share/gems/gems/puppet-resource_api-1.8.13/contrib/README.md
/usr/share/gems/gems/puppet-resource_api-1.8.13/contrib/pre-commit
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/base_context.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/data_type_handling.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/glue.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/io_context.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/parameter.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/property.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/puppet_context.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/read_only_parameter.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/simple_provider.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/transport
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/transport.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/transport/wrapper.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/type_definition.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/value_creator.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/resource_api/version.rb
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/util
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/util/network_device
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/util/network_device/simple
/usr/share/gems/gems/puppet-resource_api-1.8.13/lib/puppet/util/network_device/simple/device.rb
/usr/share/gems/specifications/puppet-resource_api-1.8.13.gemspec

References

Summary

In this tutorial we learn how to install rubygem-puppet-resource_api on CentOS 8 using yum and dnf.