How To Install ruby-eb on Ubuntu 18.04

In this tutorial we learn how to install ruby-eb on Ubuntu 18.04. ruby-eb is EB library interface for the Ruby

Introduction

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

What is ruby-eb

ruby-eb is:

Extension Library for EB Library URL:http://www.sra.co.jp/people/m-kasahr/eb/ which is for accessing CD-ROM books(EPWING/EB etc.).

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

sudo apt-get -y install ruby-eb

Install ruby-eb Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-eb

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

sudo aptitude -y install ruby-eb

How To Uninstall ruby-eb on Ubuntu 18.04

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

sudo apt-get remove ruby-eb

Uninstall ruby-eb And Its Dependencies

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

sudo apt-get -y autoremove ruby-eb

Remove ruby-eb Configurations and Data

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

sudo apt-get -y purge ruby-eb

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

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

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

References

Summary

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