[Spacewalk-list] Disable downloading stock repos in CentOS

P.Cookson at bham.ac.uk P.Cookson at bham.ac.uk
Fri Feb 22 13:37:24 UTC 2019


Hi Paul

There are a few options to disable existing repo's really:


1.       Move existing related repo files to a different location (like you've described).

mkdir /root/Original_Repos
mv /etc/yum.repos.d/* /root/Original_Repos/
yum clean all and/or rm -rf /var/cache/yum


2.       Temporarily disable during update.

yum --disablerepo=<Repo Name> update


3.       Permanently disable.

Change the value of "enabled=" from 1 to 0 in /etc/yum.repos.d/<Repo Name>

Regards
Phil



From: spacewalk-list-bounces at redhat.com <spacewalk-list-bounces at redhat.com> On Behalf Of pdeveau at uottawa.ca
Sent: 22 February 2019 12:52
To: spacewalk-list at redhat.com
Subject: [Spacewalk-list] Disable downloading stock repos in CentOS

Hello,

I would like to disable the downloading of the stock repos like Centos-Base.repo and the rest They get in the way when I perform upgrades (unless I'm doing something wrong?) I usually move the repos to a different directory so that yum does not see them.

Thank you,

--
Paul Deveau
Analyste de systèmes principal|Senior Systems Analyst
Technologies de l'information|Information Technology
Université d'Ottawa|University of Ottawa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20190222/734ab542/attachment.htm>


More information about the Spacewalk-list mailing list