Even after making enabled=0,i'm unable to stop installation from the CentOS-Base.repo
CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Even after making enabled=0,i'm unable to stop installation from the CentOS-Base.repo
Hi, Even after making enabled=0 in CentOS-Base.repo, i'm still unable to stop installation from the CentOS-Base.repo. Only if i rename CentOS-Base.repo to something else i'm able to stop installing from CentOS-Base.repo. How can I solve this problem? Please help.
did you reboot ?
if not the old setting is still in ram
Can you back that "advice" up?
- Where in the CentOS documentation does it say we need to reboot a server after changing YUM repo settings?
- Does actually running a 'strace -eopen' show it's not loading /etc/yum.repos.d/*.repo files?
Quote:
Originally Posted by Mr.Russy
Basheer is there more than one .repo file within the directory? Can you show us your .repo configuration file details?
Thanx for the replies guys.
when I run yum repolist enabled i get the following
[root@localhost ~]# yum repolist enabled
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* extras: centos.excellmedia.net
* updates: centos.excellmedia.net
repo id repo name status
!base/7/x86_64 CentOS-7 - Base 8,465
!extras/7/x86_64 CentOS-7 - Extras 104
!localrepo local repo conataining all the packages from the dvd 3,538
!updates/7/x86_64 CentOS-7 - Updates 1,723
repolist: 13,830
You have new mail in /var/spool/mail/root
[root@localhost yum.repos.d]# cat CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
look at the CentOS-Base.repo. It is enabled=0, but it still installs from the base repo.
I wanted to install from the localrepo.repo where enabled=1.
[root@localhost yum.repos.d]# cat localrepo.repo
[localrepo]
name=local repo conataining all the packages from the dvd
baseurl=file:///var/localrepo
enabled=1
gpgcheck=0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.