Pazartesi, Aralık 23, 2024

How To Download RPMs Without İnstalling Them Using Yum In CentOS 7

yüksek çözünürlüklü centos işletim sistemi logosu

You may want to download RPMs only and not install them using yum. Perhaps
you’re within a change freeze but would like to warm up your yum cache
to make your production security upgrades alot faster and smoother.

The yum-plugin-downloadonly yum plugin provides yum with a downloadonly option.

yum install yum-plugin-downloadonly
yum install --downloadonly docker

You can also download the RPMs to a directory of your choosing and not
/var/cache/yum

yum install --downloadonly --downloaddir=/var/tmp/docker docker