There is a way to only download the rpm package from a repository
using RedHat/CentOS 6.x
yum install yum-plugin-downloadonly
yum install –downloadonly –downloaddir=/tmp nmap
To download a package already installed use
yum reinstall –downloaddir=/tmp –downloadonly php-common.x86_64