Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working on CentOS 6.3.

Recently I come across repotrack from yum-utils.

yumdownloader --resolve and repotrack looks very similar, but it looks like yumdownloader download only part of dependencies, where repotrack all dependencies.

Just try

yumdownloader --destdir=/tmp/download --assumeyes --resolve parted


repotrack parted

What is the difference between yumdownloader --resolve and repotrack?

share|improve this question

yumdownloader --resolve is suppose to resolve all dependencies and download the packages

repotrack parted also resolves dependencies and downloads them

My guess is that repotrack is downloading all the dependencies for any architecture since it doesn't appear you specified the architecture which could account for the difference in what you see downloaded.

I believe you use the repotrack -a switch to specify your architecture

share|improve this answer

Keep in mind, that yumdownloader will use your yum database when resolving dependencies.

For example if you download bash, which needs glibc, it will resolve glibc and skip it, since it is installed. If you want to download all dependencies, use a different installroot instead.

It downloads all the dependencies:

yumdownloader --installroot=/tmp/empty-directory --resolve bash
share|improve this answer

yumdownloader [options] package1 [package2...] This seems to download the packages and their primary dependencies. What it does not do is download the dependencies of the dependencies. It Only downloads the top level dependencies of the package.

repotrack [options] package1 [package2...] This downloads the packages and all of their dependencies along with the sub-level dependencies that are needed.

The latter option is a lot better for acquiring every dependency you will need for populating your own single-source repository.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.