How To Install ruby-twitter-stream on Debian 9

In this tutorial we learn how to install ruby-twitter-stream on Debian 9. ruby-twitter-stream is Twitter realtime API client for Ruby

Introduction

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

What is ruby-twitter-stream

ruby-twitter-stream is:

This package provides a simple Ruby client library for Twitter’s streaming API. The library uses EventMachine to handle connections and adheres to Twitter’s reconnection guidelines. The library can only use the JSON format.

There are three methods to install ruby-twitter-stream 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-twitter-stream 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-twitter-stream using apt-get by running the following command:

sudo apt-get -y install ruby-twitter-stream

Install ruby-twitter-stream Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-twitter-stream

Install ruby-twitter-stream 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-twitter-stream using aptitude by running the following command:

sudo aptitude -y install ruby-twitter-stream

How To Uninstall ruby-twitter-stream on Debian 9

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

sudo apt-get remove ruby-twitter-stream

Uninstall ruby-twitter-stream And Its Dependencies

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

sudo apt-get -y autoremove ruby-twitter-stream

Remove ruby-twitter-stream Configurations and Data

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

sudo apt-get -y purge ruby-twitter-stream

Remove ruby-twitter-stream configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-twitter-stream

Dependencies

ruby-twitter-stream have the following dependencies:

References

Summary

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