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
[SOLVED] [Centos 5.6 final] Accidently deleted CentOS-Base.repo.rpmnew
Re: [Centos 5.6 final] Accidently deleted CentOS-Base.repo.rpmnew
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]
[code]
yum reinstall centos-release
[/code]
Re: [Centos 5.6 final] Accidently deleted CentOS-Base.repo.rpmnew
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.
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
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.
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.
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
[SOLVED] [Centos 5.6 final] Accidently deleted CentOS-Base.r
Thank you for reporting back.
For posterity I've marked the initial post to this thread, accordingly.
For posterity I've marked the initial post to this thread, accordingly.