How To Install libbtparse-dev on Ubuntu 18.04

In this tutorial we learn how to install libbtparse-dev on Ubuntu 18.04. libbtparse-dev is C library to parse BibTeX files - development files

Introduction

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

What is libbtparse-dev

libbtparse-dev is:

btparse is the C component of btOOL, a pair of libraries for parsing and processing BibTeX files. It is built on top of a lexical analyzer and parser constructed using PCCTS. The library provides entry points to the parser, functions to traverse and query the abstract-syntax tree that it produces, and some functions for processing strings in “the BibTeX way”.

This package contains the necessary symlinks, headers and object files needed develop applications using btparse.

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

sudo apt-get -y install libbtparse-dev

Install libbtparse-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libbtparse-dev

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

sudo aptitude -y install libbtparse-dev

How To Uninstall libbtparse-dev on Ubuntu 18.04

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

sudo apt-get remove libbtparse-dev

Uninstall libbtparse-dev And Its Dependencies

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

sudo apt-get -y autoremove libbtparse-dev

Remove libbtparse-dev Configurations and Data

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

sudo apt-get -y purge libbtparse-dev

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

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

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

References

Summary

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