Download ALL rpms for a product

view story

http://unix.stackexchange.com – I have two CentOS machines, one 6.3 box (A), and another CentOS 6.1. (B) 6.3 box is with internet connection, 6.1 box is without internet connection. I want to download ALL dependencies of a product on Box A, then copy those n Box B, and install the product. I tried with yum --downloadonly --downloaddir=*~/downloadrepo* -y install *product*` cd *~/downloadrepo* createrepo . Then I disabled all repos (with --disablerepo), except my repo, and installed product on the same machine (Box A). No errors. yum install *product* Now when I copied this repo to Box B, and tried to install with (HowTos)