[Yum-devel] shower thoughts to another problem

seth vidal skvidal at linux.duke.edu
Sun Mar 5 16:01:39 UTC 2006


Hi,
 this came up on another list and I was thinking about how to do it as a
yum-util in the shower and this is the gist of it:

system-sync
 synchronizes the packages installed on two systems as much as possible:

- take list of installed packages (naevr) from one system (just a simple
text file)
- produce a transaction or series of transactions to get the other
system
  into the closest possible state
  

problems:
 - probably only consider latest versions of anything b/c it just gets
silly
   otherwise
 - dealing with arch confusion if someone wants the same pkgs  but in
that arch
   for that system.
 

process:
 - break down the packages into n.a
 - compare to installed system
 - mark from remove anything installed that's not in the n.a
 - mark from install anything in the n.a that's not installed
 - print out errors for anything that is not available in a repo
 - print out list of pkgs that are not precise matches but
best-available n.a
 - depsolve the transaction
 - run it
 


Is there anything obvious I'm missing in thinking about this?

-sv





More information about the Yum-devel mailing list