How To Install apiextractor on CentOS 7

In this tutorial we learn how to install apiextractor on CentOS 7. apiextractor is Library headers parser to extract API information

Introduction

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

What is apiextractor

The API Extractor library is used by the binding generator to parse headers of a given library and merge this data with information provided by type system (XML) files, resulting in a representation of how the API should be exported to the chosen target language. The generation of source code for the bindings is performed by specific generators using the API Extractor library.

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

Install apiextractor on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install apiextractor

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

sudo dnf -y install apiextractor

How To Uninstall apiextractor on CentOS 7

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

sudo dnf remove apiextractor

References

Summary

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