If You Want To Disable Repositories In Centos 7.9 Edit /etc/yum.repos.d/CentOS-Base.repo Add enabled=0 under each repository you wish to disable. Previous Next