How To Install CBFlib on CentOS 7

In this tutorial we learn how to install CBFlib on CentOS 7. CBFlib is Crystallographic Binary File and Image Library

Introduction

In this tutorial we learn how to install CBFlib on CentOS 7.

What is CBFlib

CBFlib (Crystallographic Binary File library) 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. Like CIFPARSE, CBFlib does not perform any semantic integrity checks; rather it simply provides functions to create, read, modify and write CBF binary data files and imgCIF ASCII data files.

We can use yum or dnf to install CBFlib on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install CBFlib.

Install CBFlib on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install CBFlib using yum by running the following command:

sudo yum -y install CBFlib

Install CBFlib on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install CBFlib using dnf by running the following command:

sudo dnf -y install CBFlib

How To Uninstall CBFlib on CentOS 7

To uninstall only the CBFlib package we can use the following command:

sudo dnf remove CBFlib

References

Summary

In this tutorial we learn how to install CBFlib on CentOS 7 using yum and dnf.