How To Install libhoel-dev on Ubuntu 18.04

In this tutorial we learn how to install libhoel-dev on Ubuntu 18.04. libhoel-dev is database abstraction library written in C - development

Introduction

In this tutorial we learn how to install libhoel-dev on Ubuntu 18.04.

What is libhoel-dev

libhoel-dev is:

Simple and easy to use database access library. Works with SQLite 3, MariaDB/Mysql and (barely) PostgreSQL databases. Uses a json-based language with jansson to execute simples queries based on one table.

This package contains the development files.

There are three methods to install libhoel-dev 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 libhoel-dev Using apt-get

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

sudo apt-get update

After updating apt database, We can install libhoel-dev using apt-get by running the following command:

sudo apt-get -y install libhoel-dev

Install libhoel-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libhoel-dev

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

sudo aptitude -y install libhoel-dev

How To Uninstall libhoel-dev on Ubuntu 18.04

To uninstall only the libhoel-dev package we can use the following command:

sudo apt-get remove libhoel-dev

Uninstall libhoel-dev And Its Dependencies

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

sudo apt-get -y autoremove libhoel-dev

Remove libhoel-dev Configurations and Data

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

sudo apt-get -y purge libhoel-dev

Remove libhoel-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libhoel-dev

References

Summary

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