How To Install libjs-autonumeric on Ubuntu 18.04

In this tutorial we learn how to install libjs-autonumeric on Ubuntu 18.04. libjs-autonumeric is jQuery plugin that automatically formats currency and numbers

Introduction

In this tutorial we learn how to install libjs-autonumeric on Ubuntu 18.04.

What is libjs-autonumeric

libjs-autonumeric is:

autoNumeric is a jQuery plugin that automatically formats currency and numbers as you type on form inputs. It supports most International numeric formats and currency signs including those used in Europe, North and South America, Asia and India lakhs (Lakhs values supported below 1 billion).

Any number of currency formats can reside on the same page and are configured by settings/options that can be placed as HTML5 data attribute or passed as an argument. These settings can easily be changed at any time using the new update method or via the callback feature. autoNumeric to many other elements, allowing you to place formatted numbers and currency on just about any part of the page.

Seven built in methods gives you the flexibility needed to use autoNumeric to its maximum potential. You can now easily start and stop autoNumeric, update the settings and remove the formatting from multiple inputs, preparing the values for manipulation or form submission.

There are three methods to install libjs-autonumeric 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 libjs-autonumeric Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libjs-autonumeric using apt-get by running the following command:

sudo apt-get -y install libjs-autonumeric

Install libjs-autonumeric Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjs-autonumeric

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

sudo aptitude -y install libjs-autonumeric

How To Uninstall libjs-autonumeric on Ubuntu 18.04

To uninstall only the libjs-autonumeric package we can use the following command:

sudo apt-get remove libjs-autonumeric

Uninstall libjs-autonumeric And Its Dependencies

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

sudo apt-get -y autoremove libjs-autonumeric

Remove libjs-autonumeric Configurations and Data

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

sudo apt-get -y purge libjs-autonumeric

Remove libjs-autonumeric configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libjs-autonumeric

References

Summary

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