Page 1 of 1

[SOLVED] [Centos 5.6 final] Accidently deleted CentOS-Base.repo.rpmnew

Posted: 2011/05/11 11:10:04
by pawel81
Hi

After recent update I've accidently deleted /etc/yum.repos.d/CentOS-Base.repo.rpmnew for Centos 5.6 final.
Could somebody give me the content of the default /etc/yum.repos.d/CentOS-Base.repo for Centos5.6 Please.

Regards
Pawel

Re: [Centos 5.6 final] Accidently deleted CentOS-Base.repo.rpmnew

Posted: 2011/05/11 11:19:34
by TrevorH
If you deleted the rpmnew version then that's the version that the latest centos-release package provided but did not install because the original copy had been modified. Easiest way to get it back is to run

[code]
yum reinstall centos-release
[/code]

Re: [Centos 5.6 final] Accidently deleted CentOS-Base.repo.rpmnew

Posted: 2011/05/11 11:45:52
by pawel81
Thanks for your answer.

However even after runing "yum reinstall centos-release" It still keeps my old CentOS-Base.repo (with my old modifications )
and /etc/yum.repos.d/CentOS-Base.repo.rpmnew hasn't been generated.

The .rpmnew was previously generated during yum update hovewer I lost that file but still need to merge old config with the new one.

Re:[SOLVED] [Centos 5.6 final] Accidently deleted CentOS-Base.repo.rpmnew

Posted: 2011/05/11 14:32:38
by pawel81
I've solved my problem by manually downloading
http://mir1.ovh.net/ftp.centos.org/5.6/os/x86_64/CentOS/centos-release-5-6.el5.centos.1.x86_64.rpm
and then used rpm2cpio to extract it.

[SOLVED] [Centos 5.6 final] Accidently deleted CentOS-Base.r

Posted: 2011/05/11 17:51:57
by AlanBartlett
Thank you for reporting back.

For posterity I've marked the initial post to this thread, accordingly.