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

If it doesn't fit in another category, ask it here.
Post Reply
pawel81
Posts: 3
Joined: 2011/05/11 11:03:52

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

Post by pawel81 » 2011/05/11 11:10:04

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

User avatar
TrevorH
Forum Moderator
Posts: 29166
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2011/05/11 11:19:34

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]

pawel81
Posts: 3
Joined: 2011/05/11 11:03:52

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

Post by pawel81 » 2011/05/11 11:45:52

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.

pawel81
Posts: 3
Joined: 2011/05/11 11:03:52

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

Post by pawel81 » 2011/05/11 14:32:38

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.

User avatar
AlanBartlett
Forum Moderator
Posts: 9324
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

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

Post by AlanBartlett » 2011/05/11 17:51:57

Thank you for reporting back.

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

Post Reply

Return to “CentOS 5 - Miscellaneous Questions”