|
From: Craig W. <cra...@az...> - 2005-10-09 03:52:49
|
On Sun, 2005-10-09 at 10:43 +1000, Jamie Cameron wrote: > On Sat, 2005-10-08 at 23:05, Craig White wrote: > > On Sat, 2005-10-08 at 22:36 +1000, Jamie Cameron wrote: > > > Hi James, > > > Is it possible to have YUM look in all the configured repositories > > > for a specified package? It would seem to me that this would be better > > > than needing to tell it which one to look in ... unless the same package > > > exists on more than one repository? > > > > > > As you can see, I am not really much of a YUM expert :) > > > > > ---- > > it's possible (and likely) to have yum repos listed in yum.conf or > > better these days, in their own files in /etc/yum.repos.d/WHATEVER.repo > > > > and have 'enabled=0' in the configuration for that repo. > > > > Then running from a command line (or I would presume from yumex) you > > could install a package just from that repo with the enablerepo=XXXXX in > > the same command line - i.e. > > > > yum enablerepo=dag install xmms-mp3 > > > > and yet still have dag repo disabled so it is not involved in commands > > such as 'yum update' or 'yum upgrade' because yes, sometimes the same > > packages - often varying levels of stability exist in multiple > > repositories. In fact most of the time now, they are including the > > 'testing' branch of the repositories in the yum.repos section (disabled > > of course) which would cause havoc if enabled by average user. > > Hi Craig, > I see how that option could be useful now, and I will add support for it > in the next version of Webmin on systems that have any disabled > repositories. > > Which version of YUM was it first introduced in though? On my Fedora 2 > system YUM doesn't seem to support that enablerepo= option. ---- not entirely sure 'which' version but the yum in FC-3 definitely has it... $ rpm -q yum yum-2.2.2-0.fc3 as does CentOS 4.x # rpm -q yum yum-2.2.1-1.centos4 My guess would be somewhere around 2.2 http://devel.linux.duke.edu/cgi-bin/viewcvs.cgi/yum/ChangeLog? rev=1.52&view=auto Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |