How To Install ruby-color on Ubuntu 18.04

In this tutorial we learn how to install ruby-color on Ubuntu 18.04. ruby-color is Ruby library to provide RGB, CMYK and other colorspace support

Introduction

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

What is ruby-color

ruby-color is:

This Ruby library provides support to RGB, CMYK and other colorspaces. It offers 152 named RGB colors (184 with spelling variations) that are commonly supported and used in HTML, SVG and X11 applications. A technique for generating a monochromatic contrasting palette is also included.

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

sudo apt-get -y install ruby-color

Install ruby-color Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-color

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

sudo aptitude -y install ruby-color

How To Uninstall ruby-color on Ubuntu 18.04

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

sudo apt-get remove ruby-color

Uninstall ruby-color And Its Dependencies

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

sudo apt-get -y autoremove ruby-color

Remove ruby-color Configurations and Data

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

sudo apt-get -y purge ruby-color

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

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

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

References

Summary

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