yum download package

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

Leave a Reply

Your email address will not be published. Required fields are marked *