How To Install ruby-ace-rails-ap on Ubuntu 20.04

In this tutorial we learn how to install ruby-ace-rails-ap on Ubuntu 20.04. ruby-ace-rails-ap is ajax.org Cloud9 Editor (Ace) for the Rails asset pipeline

Introduction

In this tutorial we learn how to install ruby-ace-rails-ap on Ubuntu 20.04.

What is ruby-ace-rails-ap

ruby-ace-rails-ap is:

This library provides the Ajax.org Cloud9 Editor (Ace) for the Rails applications via asset pipeline.

Ace is an embeddable code editor written in JavaScript. It matches the features and performance of native editors such as Sublime, Vim and TextMate. It can be easily embedded in any web page and JavaScript application. Ace is maintained as the primary editor for Cloud9 IDE and is the successor of the Mozilla Skywriter (Bespin) project. Ruby-Versions: all

There are three methods to install ruby-ace-rails-ap on Ubuntu 20.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-ace-rails-ap 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-ace-rails-ap using apt-get by running the following command:

sudo apt-get -y install ruby-ace-rails-ap

Install ruby-ace-rails-ap Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-ace-rails-ap

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

sudo aptitude -y install ruby-ace-rails-ap

How To Uninstall ruby-ace-rails-ap on Ubuntu 20.04

To uninstall only the ruby-ace-rails-ap package we can use the following command:

sudo apt-get remove ruby-ace-rails-ap

Uninstall ruby-ace-rails-ap And Its Dependencies

To uninstall ruby-ace-rails-ap and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove ruby-ace-rails-ap

Remove ruby-ace-rails-ap Configurations and Data

To remove ruby-ace-rails-ap configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge ruby-ace-rails-ap

Remove ruby-ace-rails-ap configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-ace-rails-ap

References

Summary

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