How To Install libjs-magic-search on Ubuntu 18.04

In this tutorial we learn how to install libjs-magic-search on Ubuntu 18.04. libjs-magic-search is AngularJS widget that provides a UI for faceted and text search

Introduction

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

libjs-magic-search is:

MagicSearch is an AngularJS directive that provides a UI for both faceted filtering and as-you-type filtering. It is intended for filtering tables, such as an AngularJS smart-table, but it can be used in any situation where you can provide it with facets/options and consume its events.

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

sudo apt-get -y install libjs-magic-search

Install libjs-magic-search Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjs-magic-search

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

sudo aptitude -y install libjs-magic-search

How To Uninstall libjs-magic-search on Ubuntu 18.04

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

sudo apt-get remove libjs-magic-search

Uninstall libjs-magic-search And Its Dependencies

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

sudo apt-get -y autoremove libjs-magic-search

Remove libjs-magic-search Configurations and Data

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

sudo apt-get -y purge libjs-magic-search

Remove libjs-magic-search configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libjs-magic-search

References

Summary

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