How To Install libpomegranate-clojure on Ubuntu 18.04

In this tutorial we learn how to install libpomegranate-clojure on Ubuntu 18.04. libpomegranate-clojure is dependency resolution and repository handling library for Clojure

Introduction

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

What is libpomegranate-clojure

libpomegranate-clojure is:

pomegranate provides a Clojure interface to sonatype-aether. It supports the following features from Aether:

*Dependency resolution and common dependency graph/hierarchy manipulation operations. *Local installation of artifacts. *Remote deployment. *Repository authentication. *HTTP proxy configuration. *Offline mode.

It also allows provides dynamic inclusion of libraries in the classpath whether the libraries are installed or have to be retrieved from a repository.

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

sudo apt-get -y install libpomegranate-clojure

Install libpomegranate-clojure Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libpomegranate-clojure

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

sudo aptitude -y install libpomegranate-clojure

How To Uninstall libpomegranate-clojure on Ubuntu 18.04

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

sudo apt-get remove libpomegranate-clojure

Uninstall libpomegranate-clojure And Its Dependencies

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

sudo apt-get -y autoremove libpomegranate-clojure

Remove libpomegranate-clojure Configurations and Data

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

sudo apt-get -y purge libpomegranate-clojure

Remove libpomegranate-clojure configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libpomegranate-clojure

References

Summary

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