You can follow given steps to save downloaded packages from yum as per your wish.

1) download and install -downloadonly package by issuing yum install yum-downloadonly
command.

Below is the example for saving sendmail package in /opt

2) yum update sendmail -y –downloadonly –downloaddir=/opt

Post By Dinesh (18 Posts)

Connect