How To Install dh-autoreconf on CentOS 7

In this tutorial we learn how to install dh-autoreconf on CentOS 7. dh-autoreconf is debhelper add-on to call autoreconf and clean up after the build

Introduction

In this tutorial we learn how to install dh-autoreconf on CentOS 7.

What is dh-autoreconf

dh-autoreconf provides a debhelper sequence addon named ‘autoreconf’ and two commands, dh_autoreconf and dh_autoreconf_clean. * The dh_autoreconf command creates a list of the files and their checksums, calls autoreconf and then creates a second list for the new files. * The dh_autoreconf_clean command compares these two lists and removes all files which have been added or changed (files may be excluded if needed). For CDBS users, a rule is provided to call the dh-autoreconf programs at the right time.

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

Install dh-autoreconf on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install dh-autoreconf using yum by running the following command:

sudo yum -y install dh-autoreconf

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

sudo dnf -y install dh-autoreconf

How To Uninstall dh-autoreconf on CentOS 7

To uninstall only the dh-autoreconf package we can use the following command:

sudo dnf remove dh-autoreconf

References

Summary

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