LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 03-06-2015, 03:54 PM   #1
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Rep: Reputation: 29
Unhappy 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.
 
Old 03-06-2015, 06:42 PM   #2
Mr.Russy
LQ Newbie
 
Registered: Sep 2010
Posts: 8

Rep: Reputation: 0
Basheer is there more than one .repo file within the directory? Can you show us your .repo configuration file details?
 
Old 03-07-2015, 12:37 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
did you reboot ?
if not the old setting is still in ram
 
Old 03-07-2015, 04:14 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by John VV View Post
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 View Post
Basheer is there more than one .repo file within the directory? Can you show us your .repo configuration file details?
What he means is run
Code:
yum repolist enabled
 
Old 03-07-2015, 08:30 AM   #5
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Original Poster
Rep: Reputation: 29
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

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$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

thanx in advance
 
Old 03-07-2015, 08:41 AM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
There are 4 different repos in that CentOS-Base.repo file, and the only one that is disabled is "centosplus".
 
Old 03-07-2015, 09:04 AM   #7
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Original Poster
Rep: Reputation: 29
thanx a lot rknichols and all the others, its working fine now. I added enabled=0 to all therepos in CentOS-Base.
 
  


Reply

Tags
centos-base.repo



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Error: Cannot find base url for repo: base (CentOS 6) tverbeek Linux - Newbie 8 10-04-2013 10:49 AM
centos-base.repo error skny007 Linux - Newbie 2 07-29-2012 05:15 PM
Cannot find a valid baseurl for repo : base in centos 6 kalidoss Linux - Server 9 11-20-2011 11:12 PM
yum - cannot find a valid baseurl for repo: base. chris24300 Linux - Software 2 12-11-2009 11:13 AM
Cannot find a valid baseurl for repo: base --- CentOS 5 Ascendancy5 Linux - Newbie 7 01-12-2009 06:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 04:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration