Is there some actions to restore all current release repositories?
Please help.
Restore CentOS Repositories
Restore CentOS Repositories
Last edited by yohahoy on 2017/09/04 13:15:57, edited 1 time in total.
Re: Restore Centos Repositories
The CentOS supplied files live under /etc/yum.repos.d and mostly should be owned by the centos-release package. Using yum reinstall centos-release should create new .rpmnew packages for any that have been modified. If you've broken it to the point where yum reinstall won't work then download the most recent centos-release rpm from one of the mirrors and use yum localinstall on the downloaded file.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Restore Centos Repositories
I removed all inside /etc/yum.repos.d
Do command
getting:
So this command is not complete, maybe we need to do something more?
Do command
Code: Select all
yum reinstall centos-release
Code: Select all
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable <repo>
To enable custom repositories:
yum-config-manager --enable <repo>
Last edited by yohahoy on 2017/09/04 13:13:52, edited 1 time in total.
Re: Restore Centos Repositories
I need to clean this folder to start all from scratch.
And its real remote server.
So maybe I need some rpm containing this data or anything related.
Thanks in advance.
And its real remote server.
So maybe I need some rpm containing this data or anything related.
Thanks in advance.
Re: Restore CentOS Repositories
But ok I found base repo file. And this command works.
Re: Restore CentOS Repositories
If you remove the contents of /etc/yum.repos.d/ *before* you use yum then it has no repos to use! This is why I suggested doing the reinstall and then using the .rpmnew files that will create.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Restore CentOS Repositories
Thank you for helping.TrevorH wrote:If you remove the contents of /etc/yum.repos.d/ *before* you use yum then it has no repos to use! This is why I suggested doing the reinstall and then using the .rpmnew files that will create.