How to set up default repositories in centos 7?

to use standard mirror.centos.org

contents of the /etc/yum.conf file

[main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log distroverpkg=redhat-release tolerant=1 exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 # Note: yum-RHN-plugin doesn't honor this. metadata_expire=1h # Default. # installonly_limit = 3 

the lines with the repository were deleted from there, there was a non-working repository mirror2.nashirnet.com

    1 answer 1

    Files with repository addresses are stored in files that are in /etc/yum.repos.d/ . Search and change there.

    • I know that they are stored there, the addresses are listed normal mirror.centos.org - cppbuild
    • The yum update command issues. Loaded plugins: fastestmirror, langpacks mirror.centos.org/centos/7.0/os/x86_64/repodata/repomd.xml : [Errno 14] HTTP Error 404 - Not Found Trying other mirror. - cppbuild
    • and if sed -i 's/mirror.centos.org/mirror.yandex.ru/' /etc/yum.repos.d/* ? - don Rumata