How To Install ruby-ridley on Debian 9

In this tutorial we learn how to install ruby-ridley on Debian 9. ruby-ridley is Ruby library that provides a full featured Chef API client

Introduction

In this tutorial we learn how to install ruby-ridley on Debian 9.

What is ruby-ridley

ruby-ridley is:

Ridley is a reliable and very convenient Chef client. Among its key features, it exposes a number of functions that return resources which they can be used to retrieve or create objects on a Chef server.

Ridley provides CRUD operations and search feature for the following Chef resources:

  • Clients
  • Cookbooks
  • Data bags.
  • Environments.
  • Nodes.
  • Roles.
  • Sandboxes.
  • Users.

There are three methods to install ruby-ridley on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ruby-ridley Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ruby-ridley using apt-get by running the following command:

sudo apt-get -y install ruby-ridley

Install ruby-ridley Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ruby-ridley using apt by running the following command:

sudo apt -y install ruby-ridley

Install ruby-ridley Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ruby-ridley using aptitude by running the following command:

sudo aptitude -y install ruby-ridley

How To Uninstall ruby-ridley on Debian 9

To uninstall only the ruby-ridley package we can use the following command:

sudo apt-get remove ruby-ridley

Uninstall ruby-ridley And Its Dependencies

To uninstall ruby-ridley and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove ruby-ridley

Remove ruby-ridley Configurations and Data

To remove ruby-ridley configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge ruby-ridley

Remove ruby-ridley configuration, data, and all of its dependencies

We can use the following command to remove ruby-ridley configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ruby-ridley

Dependencies

ruby-ridley have the following dependencies:

References

Summary

In this tutorial we learn how to install ruby-ridley package on Debian 9 using different package management tools: apt, apt-get and aptitude.