How To Install dh-autoreconf on CentOS 8

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 8.

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 8. 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 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install dh-autoreconf

Install dh-autoreconf on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install dh-autoreconf

How To Uninstall dh-autoreconf on CentOS 8

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

sudo dnf remove dh-autoreconf

dh-autoreconf Package Contents on CentOS 8

/usr/bin/dh_autoreconf
/usr/bin/dh_autoreconf_clean
/usr/share/cdbs/1/rules/autoreconf.mk
/usr/share/dh-autoreconf
/usr/share/dh-autoreconf/ltmain-as-needed.diff
/usr/share/licenses/dh-autoreconf
/usr/share/licenses/dh-autoreconf/copyright
/usr/share/man/man1/dh_autoreconf.1.gz
/usr/share/man/man1/dh_autoreconf_clean.1.gz
/usr/share/man/man7/dh-autoreconf.7.gz
/usr/share/perl5/vendor_perl/Debian
/usr/share/perl5/vendor_perl/Debian/Debhelper
/usr/share/perl5/vendor_perl/Debian/Debhelper/Sequence
/usr/share/perl5/vendor_perl/Debian/Debhelper/Sequence/autoreconf.pm

References

Summary

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