[Spacewalk-list] FW: Disable downloading stock repos in CentOS

Jérôme Meyer Jerome.Meyer at lcsystems.ch
Tue Feb 26 15:32:37 UTC 2019


Dear Paul,

Do you have found a solution to your repo?
From my side I’ve moved all my repos to an old directory but spacewalk will be re-create them.
Before creating a crontab job to removing of these files automatically, I wanted to know if another solution exists.

Best regards,
Jérôme

From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of William H. ten Bensel
Sent: Samstag, 23. Februar 2019 00:02
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Disable downloading stock repos in CentOS

There is another option mentioned in the archive, about updating /etc/yum.conf with a new reposdir=.  This avoids updating/creating the repositories when the CentOS release rpm is updated with the next kernel release.   Oracle and Redhat do not include the repository information in the primary release rpm, but provide optional rpms or methods to install the repositories.  By separating the functionality of the rpm, this avoids these issues.  I wish CentOS would follow the same process as well.

https://www.redhat.com/archives/spacewalk-list/2018-February/msg00033.html

# rpm -ql centos-release-7-5.1804.5.el7.centos.x86_64 |grep repo

/etc/yum.repos.d/CentOS-Base.repo
/etc/yum.repos.d/CentOS-CR.repo
/etc/yum.repos.d/CentOS-Debuginfo.repo
/etc/yum.repos.d/CentOS-Media.repo
/etc/yum.repos.d/CentOS-Sources.repo
/etc/yum.repos.d/CentOS-Vault.repo
/etc/yum.repos.d/CentOS-fasttrack.repo

# rpm -ql oraclelinux-release-7.5-1.0.5.el7.x86_64 |grep repo
#

- Thanks and good luck



From:        "P.Cookson at bham.ac.uk<mailto:P.Cookson at bham.ac.uk>" <P.Cookson at bham.ac.uk<mailto:P.Cookson at bham.ac.uk>>
To:        "spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>" <spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>>
Date:        02/22/2019 07:39 AM
Subject:        Re: [Spacewalk-list] Disable downloading stock repos in CentOS
Sent by:        spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>
________________________________



This email originated from outside of the company. Please use discretion if opening attachments or clicking on links.


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/orrm -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<mailto:spacewalk-list-bounces at redhat.com> <spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>> On Behalf Of pdeveau at uottawa.ca<mailto:pdeveau at uottawa.ca>
Sent: 22 February 2019 12:52
To: spacewalk-list at redhat.com<mailto: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_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list




**



This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.

**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20190226/4fb1ada1/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20190226/4fb1ada1/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5165 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20190226/4fb1ada1/attachment.p7s>


More information about the Spacewalk-list mailing list