How To Install perl-ExtUtils-XSBuilder on AlmaLinux 8

In this tutorial we learn how to install perl-ExtUtils-XSBuilder in AlmaLinux 8. perl-ExtUtils-XSBuilder is Modules that parse C header files and create XS glue code

Introduction

In this tutorial we learn how to install perl-ExtUtils-XSBuilder on AlmaLinux 8.

What is perl-ExtUtils-XSBuilder

ExtUtils XS glue code and documentation out of it. Ideally this allows one to “write” an interface to a C library without coding a line. Since no C-API is ideal, some adjustments are necessary most of the time. So to use this module you must still be familiar with C and XS programming, but it removes a lot of stupid work and copy&paste from you. Also when the C API changes, most of the time you only have to rerun XSBuilder to get your new Perl API.

We can use yum or dnf to install perl-ExtUtils-XSBuilder on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-ExtUtils-XSBuilder.

Install perl-ExtUtils-XSBuilder on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-ExtUtils-XSBuilder using dnf by running the following command:

sudo dnf -y install perl-ExtUtils-XSBuilder

Install perl-ExtUtils-XSBuilder on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-ExtUtils-XSBuilder using yum by running the following command:

sudo yum -y install perl-ExtUtils-XSBuilder

How To Uninstall perl-ExtUtils-XSBuilder on AlmaLinux 8

To uninstall only the perl-ExtUtils-XSBuilder package we can use the following command:

sudo dnf remove perl-ExtUtils-XSBuilder

References

Summary

In this tutorial we learn how to install perl-ExtUtils-XSBuilder on AlmaLinux 8 using yum and dnf.