With a little side of applesauce...

Monday, May 21, 2007

YUM - download RPM or SRPM packages

I have finally found the trick to using YUM to download RPM packages without installing them. On CentOS 4.4, you need to install the yum-utils package, which contains the utility /usr/bin/yumdownloader.

Example usage, (from the man page):

Download the kernel RPM to /var/tmp:
yumdownloader --destdir /var/tmp kernel

No comments: