How To Install libcsv on CentOS 7

In this tutorial we learn how to install libcsv on CentOS 7. libcsv is Small, simple and fast CSV library

Introduction

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

What is libcsv

libcsv is a small, simple and fast CSV library written in pure ANSI C89 that can read and write CSV data. It provides a straight-forward interface using callback functions to handle parsed fields and rows and can parse improperly formatted CSV files.

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

Install libcsv on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libcsv

Install libcsv 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 libcsv using dnf by running the following command:

sudo dnf -y install libcsv

How To Uninstall libcsv on CentOS 7

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

sudo dnf remove libcsv

References

Summary

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