How do i disable a repo on redhat?
-
man yum-config-manager: http://lightnetics.nodebb.com/post/877
man yum: http://lightnetics.nodebb.com/post/828List all repos
$ sudo yum repolist Loaded plugins: amazon-id, rhui-lb, search-disabled-repos repo id repo name status docker-main-repo Docker main Repository 45 epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 10,304 puppetlabs-pc1/x86_64 Puppet Labs PC1 Repository el 7 - x86_64 76 rhui-REGION-client-config-server-7/x86_64 Red Hat Update Infrastructure 2.0 Client Configuration 6 rhui-REGION-rhel-server-releases/7Server/x86_64 Red Hat Enterprise Linux Server 7 (RPMs) 11,057 rhui-REGION-rhel-server-rh-common/7Server/x86_64 Red Hat Enterprise Linux Server 7 RH Common (RPMs) 196 repolist: 21,684
Disable the epel repo
$ sudo yum-config-manager --disable epel
Another repo list to show it is not visible when disabled
$ sudo yum repolist Loaded plugins: amazon-id, rhui-lb, search-disabled-repos repo id repo name status docker-main-repo Docker main Repository 45 puppetlabs-pc1/x86_64 Puppet Labs PC1 Repository el 7 - x86_64 76 rhui-REGION-client-config-server-7/x86_64 Red Hat Update Infrastructure 2.0 Client Configuration 6 rhui-REGION-rhel-server-releases/7Server/x86_64 Red Hat Enterprise Linux Server 7 (RPMs) 11,057 rhui-REGION-rhel-server-rh-common/7Server/x86_64 Red Hat Enterprise Linux Server 7 RH Common (RPMs) 196 repolist: 11,380
© Lightnetics 2024