Install createrepo by entering the following commands in the terminal:
sudo apt update sudo apt install createrepo
tool to generate the metadata for a yum repository
The createrepo tool generates the repodata directory and XML metadata that makes up a repository of RPM packages. This repository format is supported by apt-rpm, red-carpet(zen), smartpm, up2date, yast, and yum. . This package is similar to the apt-ftparchive or reprepro commands, but for working with RPM repositories.