How To Install ruby-simple-navigation on Ubuntu 18.04

In this tutorial we learn how to install ruby-simple-navigation on Ubuntu 18.04. ruby-simple-navigation is Library to create navigations for Ruby web applications

Introduction

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

What is ruby-simple-navigation

ruby-simple-navigation is:

Easily create multilevel navigations for your Rails, Sinatra or Padrino applications. The navigation is defined in a single configuration file. It supports automatic as well as explicit highlighting of the currently active navigation through regular expressions.

If you are implementing a Sinatra or Padrino web application, you should consider also installing ruby-sinatra-simple-navigation.

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

sudo apt-get -y install ruby-simple-navigation

Install ruby-simple-navigation Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-simple-navigation

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

sudo aptitude -y install ruby-simple-navigation

How To Uninstall ruby-simple-navigation on Ubuntu 18.04

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

sudo apt-get remove ruby-simple-navigation

Uninstall ruby-simple-navigation And Its Dependencies

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

sudo apt-get -y autoremove ruby-simple-navigation

Remove ruby-simple-navigation Configurations and Data

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

sudo apt-get -y purge ruby-simple-navigation

Remove ruby-simple-navigation configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-simple-navigation

References

Summary

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