How To Install createrepo_c.x86_64 on Amazon Linux 2

In this tutorial we learn how to install createrepo_c.x86_64 in Amazon Linux 2. createrepo_c.x86_64 is Creates a common metadata repository

Introduction

In this tutorial we learn how to install createrepo_c.x86_64 on Amazon Linux 2.

What is createrepo_c.x86_64

C implementation of Createrepo. A set of utilities (createrepo_c, mergerepo_c, modifyrepo_c) for generating a common metadata repository from a directory of rpm packages and maintaining it.

We can use yum to install createrepo_c.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install createrepo_c.x86_64.

Install createrepo_c.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install createrepo_c.x86_64 using yum by running the following command:

sudo yum -y install createrepo_c.x86_64

How To Uninstall createrepo_c.x86_64 on Amazon Linux 2

To uninstall only the createrepo_c.x86_64 package we can use the following command:

sudo yum remove createrepo_c.x86_64

createrepo_c.x86_64 Package Contents on Amazon Linux 2

/usr/bin/createrepo
/usr/bin/createrepo_c
/usr/bin/mergerepo
/usr/bin/mergerepo_c
/usr/bin/modifyrepo
/usr/bin/modifyrepo_c
/usr/bin/sqliterepo_c
/usr/share/bash-completion/completions/createrepo_c
/usr/share/bash-completion/completions/mergerepo_c
/usr/share/bash-completion/completions/modifyrepo_c
/usr/share/bash-completion/completions/sqliterepo_c
/usr/share/doc/createrepo_c-0.12.2
/usr/share/doc/createrepo_c-0.12.2/README.md
/usr/share/man/man8/createrepo_c.8.gz
/usr/share/man/man8/mergerepo_c.8.gz
/usr/share/man/man8/modifyrepo_c.8.gz
/usr/share/man/man8/sqliterepo_c.8.gz

References

Summary

In this tutorial we learn how to install createrepo_c.x86_64 on Amazon Linux 2 using yum.