[Yum] at least 1 "enabled" repo in files required?

Earl unorlist at yahoo.com
Mon Mar 7 04:30:52 UTC 2005


looking for clarification...

I want to do "controlled" updates and came across a
"feature" that doesnt prevent me for doing what I want
it just makes things more difficult...

It seems that the check for whether or not any repos
have been enabled in files comes before the check for
whether or not any are enabled with "--enablerepo="
even though command args are supposed to overide file
settings.

Not saying anything is wrong or broken, just wondering
if I'm interpreting things correctly...  

For example, if I put enabled=0 in all repo files and
"--enablerepo=" the one repo I want to use for a
specific update etc., yum fails (see below).  If
however, I enable one repo in files, (and do not
dissable it on the command line) alls well.

If this is the intended  functionality I'll try to
stop thinking of yum as a firewall (deny all, allow
what must pass through) and enable all in files then
dissable everything except what I want to deal with on
the command line...  Just makes things more difficult
that way.

Please let me know if I'm missing something??

# rpm -q yum
yum-2.2.0-1

# grep "enabled" /etc/yum.repos.d/*
fc3-base.repo:enabled=0
fc3-extras.repo:enabled=0
fc3-updates.repo:enabled=0

# yum list available
Config Error: Insufficient repository configuration.
No repositories Found/Enabled. Aborting.

# yum --enablerepo=fc3-base list available
Config Error: Insufficient repository configuration.
No repositories Found/Enabled. Aborting.

# vi /etc/yum.repos.d/fc3-base.repo

# grep "enabled" /etc/yum.repos.d/*
fc3-base.repo:enabled=1
fc3-extras.repo:enabled=0
fc3-updates.repo:enabled=0

# yum list available
Setting up Repos
fc3-base                  100%
|=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100%
|=========================| 797 kB    00:09
MD Read   :
##################################################
2623/2623
fc3-base  :
##################################################
2622/2622
Available Packages
....

# yum --enablerepo=fc3-updates list available
Setting up Repos
fc3-base                  100%
|=========================| 1.1 kB    00:00
fc3-updates               100%
|=========================|  951 B    00:00
Reading repository metadata in from local files
fc3-base  :
##################################################
2622/2622
primary.xml.gz            100%
|=========================| 273 kB    00:19
MD Read   :
##################################################
659/659
fc3-update:
##################################################
659/659
Available Packages
....



	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/



More information about the Yum mailing list