For openSUSE Tumbleweed run the following as root:
zypper addrepo https://download.opensuse.org/repositories/system:packagemanager/openSUSE_Tumbleweed/system:packagemanager.repo
zypper refresh
zypper install createrepo_c
For openSUSE Factory ARM run the following as root:
zypper addrepo https://download.opensuse.org/repositories/system:packagemanager/openSUSE_Factory_ARM/system:packagemanager.repo
zypper refresh
zypper install createrepo_c
For 15.6 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/system:packagemanager/15.6/system:packagemanager.repo
zypper refresh
zypper install createrepo_c
For 15.5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/system:packagemanager/15.5/system:packagemanager.repo
zypper refresh
zypper install createrepo_c
For 15.4 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/system:packagemanager/15.4/system:packagemanager.repo
zypper refresh
zypper install createrepo_c