Re: yum compatibility backward with rpm

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1185831614.12224.47.camel@cutter>
On Mon, 2007-07-30 at 14:42 -0700, Skahan, Vince wrote:
> I'm using FC6 to cook up a custom internal distro and want to use only a
> subset of the rpms considered required by the vanilla FC dependencies.
> Basically I'm rolling a custom initrd image and am looking for some info
> regarding how compatible yum is vs rpm at a command line option level.
> 
> 1 - is there a yum equivalent to rpm's "--test" option ?

yes look at tsflags in yum.conf man page


> 2a - is there a yum equivalent to rpm's "--force" or "--nodeps" options
> ?  Is the answer still "never under any circumstances" ?

yes, that is still the answer.


> 2b - if I was going to try to extend the existing yum to add in
> "--force", "--nodeps" and "--test", is there a quick guide for where to
> do that ?  I'm still having some problems navigating the twisty passages
> of yum and all its python pieces.

look at depsolve.py initActionTs() for how test is implemented. That's
ultimately the same place you'd want to do incredibly stupid things like
--nodeps.


> 3 - lastly, is there any hitchhikers' guide to how to extend yum or its
> internals of how it works under the hood ?

If you want to do it via plugins that's over here:

http://wiki.linux.duke.edu/WritingYumPlugins


At the risk of getting further into this than I want to be: Why do you
believe that --nodeps and --force are going to help you?

-sv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.