How To Install libjs-jquery-timepicker on Ubuntu 18.04

In this tutorial we learn how to install libjs-jquery-timepicker on Ubuntu 18.04. libjs-jquery-timepicker is timepicker addon for jQuery UI datepicker

Introduction

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

What is libjs-jquery-timepicker

libjs-jquery-timepicker is:

Web pages that use the jQuery UI datepicker on its own can only select timestamps with a resolution of 1 day. Using this timepicker allows the user to specify timestamps with a resolution of 1 minute.

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

sudo apt-get -y install libjs-jquery-timepicker

Install libjs-jquery-timepicker Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjs-jquery-timepicker

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

sudo aptitude -y install libjs-jquery-timepicker

How To Uninstall libjs-jquery-timepicker on Ubuntu 18.04

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

sudo apt-get remove libjs-jquery-timepicker

Uninstall libjs-jquery-timepicker And Its Dependencies

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

sudo apt-get -y autoremove libjs-jquery-timepicker

Remove libjs-jquery-timepicker Configurations and Data

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

sudo apt-get -y purge libjs-jquery-timepicker

Remove libjs-jquery-timepicker configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libjs-jquery-timepicker

References

Summary

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