[Yum-devel] repotrack

seth vidal skvidal at linux.duke.edu
Mon Jan 9 07:14:04 UTC 2006


hi folks,
 I finished checking in repotrack to yum-utils. All it does it let a
user track some or all packages from a repo or set of repos and download
deps for the specified packages. The targeted use is something I
frequently run into:

 - I maintain a local repo of a variety of packages, some of them pulled
from some external repositories I don't want to include in my
yum.repos.d directly. I only want a few packages + their dependencies
and I want to have them locally so they can be available in my own repo.

So I could run:
 repotrack.py -r somerepo pkg_glob1 pkg_glob2 pkg_glob3

Then it would download all the pkgs that match the globs and any
dependencies it can find in the listed repositories.

Specific example:
  repotrack.py -r livna\* mplayer

  So it would download mplayer + all its deps from any livna repository.

It's sorta an extension of yumdownloader in some ways - it just does the
depresolution for any arch in the repository, not just the arch for the
system it is running on. It's intended to be used to make a partial, yet
relatively dependency-closed local repository.

I've tested it with yum 2.5.X and 2.4.1 (no reason it shouldn't work
with 2.4.2, too)

it's available in cvs at:
http://devel.linux.duke.edu/cgi-bin/viewcvs.cgi/yum-utils/repotrack.py


Let me know what you think, please.
-sv





More information about the Yum-devel mailing list