How To Install ruby-will-paginate on Debian 10

Learn how to install ruby-will-paginate on Debian 10 with this tutorial. ruby-will-paginate is Pagination for Rails

Introduction

In this tutorial we learn how to install ruby-will-paginate on Debian 10.

What is ruby-will-paginate

ruby-will-paginate is:

The will_paginate library provides a simple, yet powerful and extensible API for pagination and rendering of pagination links in ActionView templates.

Pagination is just limiting the number of records displayed, showing a subset of them at any given view, and allowing you to move the displayed window. This plugin makes the whole process a breeze.

Although this package is aimed at being used from the Ruby on Rails framework, any Enumerable class can include WillPaginate, giving it this functionality.

There are three methods to install ruby-will-paginate on Debian 10. 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-will-paginate 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-will-paginate using apt-get by running the following command:

sudo apt-get -y install ruby-will-paginate

Install ruby-will-paginate Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-will-paginate

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

sudo aptitude -y install ruby-will-paginate

How To Uninstall ruby-will-paginate on Debian 10

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

sudo apt-get remove ruby-will-paginate

Uninstall ruby-will-paginate And Its Dependencies

To uninstall ruby-will-paginate and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove ruby-will-paginate

Remove ruby-will-paginate Configurations and Data

To remove ruby-will-paginate configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge ruby-will-paginate

Remove ruby-will-paginate configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-will-paginate

Dependencies

ruby-will-paginate have the following dependencies:

References

Summary

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