How To Install libring-defaults-clojure on Ubuntu 18.04

In this tutorial we learn how to install libring-defaults-clojure on Ubuntu 18.04. libring-defaults-clojure is Ring middleware that provides sensible defaults

Introduction

In this tutorial we learn how to install libring-defaults-clojure on Ubuntu 18.04.

What is libring-defaults-clojure

libring-defaults-clojure is:

Knowing what middleware to add to a Ring application, and in what order, can be difficult and prone to error.

This library attempts to automate the process, by providing sensible and secure default configurations of Ring middleware for both websites and HTTP APIs.

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

sudo apt-get -y install libring-defaults-clojure

Install libring-defaults-clojure Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libring-defaults-clojure

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

sudo aptitude -y install libring-defaults-clojure

How To Uninstall libring-defaults-clojure on Ubuntu 18.04

To uninstall only the libring-defaults-clojure package we can use the following command:

sudo apt-get remove libring-defaults-clojure

Uninstall libring-defaults-clojure And Its Dependencies

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

sudo apt-get -y autoremove libring-defaults-clojure

Remove libring-defaults-clojure Configurations and Data

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

sudo apt-get -y purge libring-defaults-clojure

Remove libring-defaults-clojure configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libring-defaults-clojure

References

Summary

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