If you need to simulate a yum install, including the download of the files, here's how to do it:
yum -y update --setopt tsflags=test
This downloads the updated packages and puts them into the cache without installing. Useful if your internet is spotty.
Originally from here