Download RPM and dependencies from yum repo

Use repotrack-command.

To get repotrack, install yum-utils.

yum install yum-utils

Usage:

repotrack -p DIR PKG

where DIR is the directory to download rpms and PKG is the actual package you want. Wild card is allowed.

As an example, following command downlads all ncurses-packages and all dependencies to /repo/rpm directory

repotrack -p /repo/rpm ncurses*

 

Leave a Reply