How To Install libcbf-dev on Debian 9

In this tutorial we learn how to install libcbf-dev on Debian 9. libcbf-dev is development files for CBFlib

Introduction

In this tutorial we learn how to install libcbf-dev on Debian 9.

What is libcbf-dev

libcbf-dev is:

CBFLIB is a library of ANSI-C functions providing a simple mechanism for accessing Crystallographic Binary Files (CBF files) and Image-supporting CIF (imgCIF) files. The CBFLIB API is loosely based on the CIFPARSE API for mmCIF files. CBFLIB does not perform any semantic integrity checks and simply provides functions to create, read, modify and write CBF binary data files and imgCIF ASCII data files.

This package contains libraries and header files for program development.

There are three methods to install libcbf-dev on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libcbf-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 libcbf-dev using apt-get by running the following command:

sudo apt-get -y install libcbf-dev

Install libcbf-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcbf-dev

Install libcbf-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libcbf-dev

How To Uninstall libcbf-dev on Debian 9

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

sudo apt-get remove libcbf-dev

Uninstall libcbf-dev And Its Dependencies

To uninstall libcbf-dev and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libcbf-dev

Remove libcbf-dev Configurations and Data

To remove libcbf-dev configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libcbf-dev

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

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

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

Dependencies

libcbf-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libcbf-dev package on Debian 9 using different package management tools: apt, apt-get and aptitude.