Features/YumMetadataInGit

From FedoraProject

Jump to: navigation, search

Contents

Yum Metadata in Git

Summary

Store the yum metadata in a git repository to speed up downloads and minimise server resource usage.

Owner

Current status


Detailed Description

Let git handle yum metadata for us: the metadata is a text (or sqlite) file that lists package names, their dependencies, version numbers and so on. Since text can be very easily handled by git, it should be a breeze fetching metadata updates from a git server. At install-time (or upgrade-time), the metadata git repository for a particular Fedora version can be cloned, and on each update, all that's necessary for yum to do is invoke 'git pull' and it gets all the latest metadata. Downloads: a few KB each day instead of a few MBs.


The advantages are numerous:

There are a couple of things to consider, though:

Benefit to Fedora

Scope

How To Test

User Experience

Much faster yum metadata downloads. For an F14 install, the compressed updates metadata file is more than 4MB in size. This 4MB of data is downloaded each day (or at least when the metadata is refreshed, which is quite often). No user-visible changes are needed for this to work, though.

Git will have to be installed as a dependency to yum, meaning git will have to be installed on each Fedora system to take advantage of this feature. In case that's undesirable, yum can fall back to the older behaviour of downloading the compressed metadata file.

Dependencies

Contingency Plan

yum continues downloading the compressed metadata as it does today in case this feature isn't ready on time.

Documentation

Release Notes

Comments and Discussion