How To Install ruby-aws-sdk on Ubuntu 18.04

In this tutorial we learn how to install ruby-aws-sdk on Ubuntu 18.04. ruby-aws-sdk is Amazon Web Services SDK for Ruby

Introduction

In this tutorial we learn how to install ruby-aws-sdk on Ubuntu 18.04.

What is ruby-aws-sdk

ruby-aws-sdk is:

The AWS SDK for Ruby provides a Ruby API for AWS infrastructure services. The SDK helps take the complexity out of coding by providing Ruby classes for many AWS services including Amazon S3, Amazon EC2, DynamoDB, and more.

There are three methods to install ruby-aws-sdk on Ubuntu 18.04. 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-aws-sdk 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-aws-sdk using apt-get by running the following command:

sudo apt-get -y install ruby-aws-sdk

Install ruby-aws-sdk Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-aws-sdk

Install ruby-aws-sdk 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install ruby-aws-sdk

How To Uninstall ruby-aws-sdk on Ubuntu 18.04

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

sudo apt-get remove ruby-aws-sdk

Uninstall ruby-aws-sdk And Its Dependencies

To uninstall ruby-aws-sdk and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ruby-aws-sdk

Remove ruby-aws-sdk Configurations and Data

To remove ruby-aws-sdk configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ruby-aws-sdk

Remove ruby-aws-sdk configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-aws-sdk

References

Summary

In this tutorial we learn how to install ruby-aws-sdk package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.