[Yum-devel] shower thoughts to another problem

Tim Lauridsen tim at rasmil.dk
Mon Mar 6 13:52:27 UTC 2006


seth vidal wrote:
> 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
>   
Sounds sane to me, the only thing i can think of is updating of packages 
on the target system there is installed but in a
older version, than the source systemmet, these packages need to be updated.

Tim




More information about the Yum-devel mailing list