How To Install createrepo_c on Fedora 34

createrepo_c is Creates a common metadata repository

Introduction

In this tutorial we learn how to install createrepo_c on Fedora 34.

What is createrepo_c

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 or dnf to install createrepo_c on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install createrepo_c.

Install createrepo_c on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install createrepo_c

Install createrepo_c on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install createrepo_c

How To Uninstall createrepo_c on Fedora 34

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

sudo dnf remove createrepo_c

createrepo_c Package Contents on Fedora 34

/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/lib/.build-id
/usr/lib/.build-id/20
/usr/lib/.build-id/20/d1c22282a318cfc77a010a6cd1d8758660448a
/usr/lib/.build-id/22
/usr/lib/.build-id/22/677b1dd5cda219e8d3985fde80c5e682c1751b
/usr/lib/.build-id/41
/usr/lib/.build-id/41/dd3095ce7d73cb8fbd5b866de602c188bb7770
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/056eb38f98341a381abf808c8e0fefe239f114
/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
/usr/share/doc/createrepo_c/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
/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/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/961401711dddebdf8c451fb239122105eebf09
/usr/lib/.build-id/80
/usr/lib/.build-id/80/55941dda5ef70350d3cb95cde3e0fc452b3d1c
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/19259430b00e8507e7e3f4f9b0f879a2501791
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/03801e669b9612674533bb78b08bf7eef2d397
/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
/usr/share/doc/createrepo_c/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 on Fedora 34 using yum and dnf.