How To Install libprismatic-schema-clojure on Ubuntu 18.04

In this tutorial we learn how to install libprismatic-schema-clojure on Ubuntu 18.04. libprismatic-schema-clojure is Clojure(Script) library for declarative data description and validation

Introduction

In this tutorial we learn how to install libprismatic-schema-clojure on Ubuntu 18.04.

What is libprismatic-schema-clojure

libprismatic-schema-clojure is:

Schema is a rich language for describing data shapes, with a variety of features:

  • Data validation, with descriptive error messages of failures (targeted at programmers)
  • Annotation of function arguments and return values, with optional runtime validation
  • Schema-driven data coercion, which can automatically, succinctly, and safely convert complex data types.

There are three methods to install libprismatic-schema-clojure 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 libprismatic-schema-clojure Using apt-get

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

sudo apt-get update

After updating apt database, We can install libprismatic-schema-clojure using apt-get by running the following command:

sudo apt-get -y install libprismatic-schema-clojure

Install libprismatic-schema-clojure Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libprismatic-schema-clojure using apt by running the following command:

sudo apt -y install libprismatic-schema-clojure

Install libprismatic-schema-clojure 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 libprismatic-schema-clojure using aptitude by running the following command:

sudo aptitude -y install libprismatic-schema-clojure

How To Uninstall libprismatic-schema-clojure on Ubuntu 18.04

To uninstall only the libprismatic-schema-clojure package we can use the following command:

sudo apt-get remove libprismatic-schema-clojure

Uninstall libprismatic-schema-clojure And Its Dependencies

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

sudo apt-get -y autoremove libprismatic-schema-clojure

Remove libprismatic-schema-clojure Configurations and Data

To remove libprismatic-schema-clojure configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libprismatic-schema-clojure

Remove libprismatic-schema-clojure configuration, data, and all of its dependencies

We can use the following command to remove libprismatic-schema-clojure configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libprismatic-schema-clojure

References

Summary

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