Link to home
Start Free TrialLog in
Avatar of Josh Rogalski
Josh RogalskiFlag for United States of America

asked on

CentOS YUM broken

I have a CentOS 7.7-1908 clean install on a sever.  I was having trouble with YUM updating packages and I attempted to clear out the broken YUM records and start fresh.  I made it worse, and now the server isn't working at all.  I keep getting a message:

[root@localhost ~]# yum update
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>


Only there are no repositories in the list when I try to run the suggest commands.  Is there any way to get this back without wiping the server and starting over?  Tried some research but nothing seems to work.
Avatar of arnold
arnold
Flag of United States of America image

If not mistaken, /etc/repos.d


See if the following helps you.
https://wiki.centos.org/AdditionalResources/Repositories
Avatar of Josh Rogalski

ASKER

I tried this command, but it keeps sending back "404 Not Found".  Maybe it will be easier to wipe and reinstall the system?  

rpm -Uvh http://mirror.centos.org/centos/7/os/x86_64/packages/centos-release-7-7.1908.0.el7.centos.x86_64.rpm
You may gave to annually add repos
See what you are currently there
You could retarget, http://mirror.centos.org/centos/7/os/x86_64/
Repos within. Once you have the initial reference.
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you everyone for writing in.  I did end up wiping the server and doing a clean install as I got frustrated with it.  This time everything is working properly with YUM.  I went with CentOS 7.7 only to keep feature parity with my other server at my main campus that houses the same product.  I will get them both on CentOS 8 if the update process allows.  Thank you all for your help!
You're welcome!

Glad everything worked out smoothly!
I really appreciate everyone who reached out.  It meant a great deal since I tend to have a bit of trouble with Linux.