4

I want to write a mini script that downloads all the recursive dependencies of an RPM package in Linux RedHat.

When I use:

repoquery -a --requires --recursive --resolve PACKAGE_NAME

I'm not getting all the recursive dependencies, but when I use:

repoquery -a --tree-requires PACKAGE_NAME

I'm getting all the dependencies but I'm not getting a usable list that I can pipeline into yumdownloader.

What should I do?

Hash
  • 4,647
  • 5
  • 21
  • 39
Malki
  • 2,335
  • 8
  • 31
  • 61

2 Answers2

1

You can try repotrack It will download one or more packages and all dependencies.

user3113626
  • 649
  • 8
  • 17
-1

If you're from the future like me (Fedora 23+), where yum is getting replaced with dnf, and repotracker is no longer working, you might find this bash script useful.

Adam Kurkiewicz
  • 1,526
  • 1
  • 15
  • 34