How To Install reprepro on CentOS 7

In this tutorial we learn how to install reprepro on CentOS 7. reprepro is Tool to handle local repositories of Debian packages

Introduction

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

What is reprepro

reprepro is a tool to manage a repository of Debian packages (.deb). It stores files either being injected manually or downloaded from some other repository (partially) mirrored into one pool/ hierarchy. Managed packages and files are stored in a Berkeley DB, so no database server is needed. Checking signatures of mirrored repositories and creating signatures of the generated Package indexes is supported.

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

Install reprepro on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install reprepro

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

sudo dnf -y install reprepro

How To Uninstall reprepro on CentOS 7

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

sudo dnf remove reprepro

References

Summary

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