Download rpm package using yum

first of all, need to install a yum plugin

yum install yum-downloadonly

After that, to just download a yum package, say mysql

yum reinstall mysql –downloadonly –downloaddir=/opt

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.