How To Install debhelper on CentOS 7

In this tutorial we learn how to install debhelper on CentOS 7. debhelper is Helper programs for Debian rules

Introduction

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

What is debhelper

A collection of programs that can be used in a Debian rules file to automate common tasks related to building Debian packages. Programs are included to install various files into your package, compress files, fix file permissions, integrate your package with the Debian menu system, debconf, doc-base, etc. Most Debian packages use debhelper as part of their build process.

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

Install debhelper on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install debhelper

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

sudo dnf -y install debhelper

How To Uninstall debhelper on CentOS 7

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

sudo dnf remove debhelper

References

Summary

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