How to reconstruct yum.repos.d ?

1 post / 0 new
#1 Mon, 01/19/2015 - 19:14
unsalkorkmaz

How to reconstruct yum.repos.d ?

Hi,

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 http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
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)