How To Install libcore-cache-clojure on Ubuntu 18.04

In this tutorial we learn how to install libcore-cache-clojure on Ubuntu 18.04. libcore-cache-clojure is cache abstraction library for Clojure

Introduction

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

What is libcore-cache-clojure

libcore-cache-clojure is:

core.cache is a Clojure library that provides implementations of basic caching strategies such as:

  • First-in-first-out (FIFOCache)
  • Least-recently-used (LRUCache)
  • Least-used (LUCache – sometimes called Least Frequently Used)
  • Time-to-live (TTLCache)
  • Naïve cache (BasicCache)
  • Naïve cache backed with soft references (SoftCache)
  • Low inter-reference recency set algorithm (LIRSCache)

All implementation use a common base abstraction (CacheProtocol) which, in combination with suitable macros, allows for the easy integration of user defined caching strategies that hook into the Clojure associative data capabilities.

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

sudo apt-get -y install libcore-cache-clojure

Install libcore-cache-clojure Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcore-cache-clojure

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

sudo aptitude -y install libcore-cache-clojure

How To Uninstall libcore-cache-clojure on Ubuntu 18.04

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

sudo apt-get remove libcore-cache-clojure

Uninstall libcore-cache-clojure And Its Dependencies

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

sudo apt-get -y autoremove libcore-cache-clojure

Remove libcore-cache-clojure Configurations and Data

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

sudo apt-get -y purge libcore-cache-clojure

Remove libcore-cache-clojure configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcore-cache-clojure

References

Summary

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