M
M
Maxim2014-12-19 19:36:04
linux
Maxim, 2014-12-19 19:36:04

How to revert Centos 6.5 repositories to default?

On the server, someone before me deleted the repositories.
I copied the /etc/yum.repos.d folder from a known good machine.
tried to install gcc-c++ and got 404 error from some left repository.
On a working machine, everything is fine.
How would I restore the repositories on the first machine?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FactorX, 2015-01-29
@maxpointn2point

execute sequentially under root:

yum clean all
yum makecache

this will clear the current caches and rebuild them using /etc/yum.repos.d

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question