How to reconstruct yum.repos.d ?


Long story short, i messed up repos when i was super sleepy. I am not sure why i did but i executed rpm --rebuilddb command and yum started to fail. After lots of trying things, i deleted yum.repos.d and executed yum clean all and now there is no repo recorded.

When i try to add repo, getting this error:

[root@server ~]# rpm -Uvh
error: /var/tmp/rpm-tmp.KiX8Tm: Header V3 RSA/SHA256 Signature, key ID 0608b895: BAD
error: /var/tmp/rpm-tmp.KiX8Tm cannot be installed

How can i fix this? Thanks for your time.

(Btw, i have to reinstall centos and virtualmin repos too which i need to know how too)