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

Like it.? Share it:

Comments are closed.