yum.repos.d

General support questions
Post Reply
nmrdukeman
Posts: 50
Joined: 2016/02/24 19:11:41

yum.repos.d

Post by nmrdukeman » 2019/06/29 14:49:00

Hi,
I accidentally removed all the *. repo files in /etc/yum.repos.d. on my laptop computer. I don't know whether it had something to do with it. Now the network of the laptop is not working. Can I just copy these files from another Centos computer and put them in my laptop directory. If yes, what repo files do I need to copy?

Thanks for your help in advance.

Best

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum.repos.d

Post by TrevorH » 2019/06/29 15:09:15

The correct repo files can be found by running rpm -Va \*release\* and seeing which files that reports as missing from /etc/yum.repos.d. The CentOS supplied ones are all part of the centos-release package and you'll have to download a copy of that from a mirror and then use yum reinstall /path/to/downloaded/centos-release...rpm

The other missing ones will also be part of -release files and you'll need to download and reinstall those too.
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

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: yum.repos.d

Post by lightman47 » 2019/06/29 18:51:16

Now the network of the laptop is not working.
Hopefully you meant that the network UPDATES no longer work instead of that your laptop networking no longer works.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum.repos.d

Post by TrevorH » 2019/06/29 18:52:19

Indeed, /etc/yum.repos.d has zero to do with networking and cannot affect it in any way.
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

Post Reply