[Yum] sticky repositories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just an Idea.

1. Create a /etc/yum directory 
2. Create several yum.conf files 
	Each yum.conf file (YumMain.conf, YumDag.conf, YumWhatever.conf)
      will include the repositories that you need AND EXCLUDE ALL OTHER
      PACKAGES THAT YOU DO NOT WANT TO TEST IN THAT REPOSITORY
      You will have to use a regexp in here
3. Write a script yum_update that will call Yum with each
   config file in turn to update the packages.


In theory you can use the parameter exclude inside
each repository, but I believe it will be much too messy,
changing the same Config file all the time.

If you want to automate the process you will have to 
create a MetaYum tool

Javier


> -----Original Message-----
> From: yum-bounces@xxxxxxxxxxxxxxxxxxxx
> [mailto:yum-bounces@xxxxxxxxxxxxxxxxxxxx]On Behalf Of Florin Andrei
> Sent: Martes, 06 de Julio de 2004 03:59 p.m.
> To: Yellowdog Updater, Modified
> Subject: Re: [Yum] sticky repositories
> 
> 
> On Tue, 2004-07-06 at 13:41, seth vidal wrote:
> > On Tue, 2004-07-06 at 16:39, Florin Andrei wrote:
> 
> > > I would like to configure yum so that it will only update 
> packages with
> > > updates from their own repositories of origin.
> > > E.g., if i'm using a package from the official Fedora 
> distribution, "yum
> > > update" should only update it with the official Fedora 
> updates. But if i
> > > manually update that package to a newer version from another 
> repository,
> > > yum should track only that particular repository for updates for that
> > > package.
> > > 
> > > Essentially, that could be defined as "sticky repositories".
> > > 
> > > Is that currently achievable with yum?
> > 
> > no and tracking an installed package back to it's repository of origin
> > is going to be prone to failure.
> 
> Hm, then this is a rather serious usability problem with yum.
> 
> Suppose i need a package that's not in the official Fedora distribution.
> I find a repo which carries it. I add the repo to yum.conf. I run "yum
> install blah". I leave the repo in yum.conf uncommented.
> A week later i do a "yum install". Lo and behold, all of a sudden all
> packages from that newer repo which have a version number newer than the
> corresponding ones in the official Fedora distro will get downloaded and
> installed. Sometimes this is good (but very rarely), but more often this
> could wreak havoc to my system (it did happen).
> 
> Currently, i have to add a repo to yum.conf, do a "yum install blah",
> then comment the repo out. I always have to play this comment in /
> comment out game every time i use a repo, otherwise i forget about the
> repos and the first "yum update" will make my system unrecognizable.
> 
> Suppose i installed a few packages from a repo, and i just want to
> update those packages, using newer versions from that same repo? Again,
> this is currently impossible to achieve with yum unless one plays this
> yum.conf editing game, which is rather tedious.
> Simply updating those packages to whatever's newest in all repos is not
> ok, since different repos package things in different ways, etc. But
> that's common knowledge, no need to insist.
> 
> Think from a user's perspective - it simply does not make sense to do so
> many low-level operations (editing yum.conf) when the whole purpose of
> yum is to make package management easier.
> 
> At present, yum simply does not seem fit for a world where multiple
> repositories compete to offer custom packages for the distributions.
> 
> Also, "sticky repositories" will offer The Definitive Solution to the
> otherwise untractable problem of repository priority (in yum.conf files
> with multiple repos).
> 
> I suspect i understand why you say that sticky repos cannot be reliably
> implemented - it's because of the difficulty of identifying the repo
> based on version number, correct?
> 
> Well then, perhaps that's something that needs to be addressed by rpm?
> Like a new flag to the rpm packages, carrying an identifier which is
> unique to each repo?
> 
> -- 
> Florin Andrei
> 
> http://florin.myip.org
> 
> _______________________________________________
> Yum mailing list
> Yum@xxxxxxxxxxxxxxxxxxxx
> https://lists.dulug.duke.edu/mailman/listinfo/yum
> 


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux