Mihamina Rakotomandimby <mihamina@xxxxxxxxx> writes: > Hi all, > > I want to prefetch updates. > > I thought about something like > > for PKG in $(yum check-updates) > do > yum --downloadonly ${PKG} > done > > On a nightly basis (a cron) You can just do: yum upgrade --downloadonly > Then in the morning, if I run the "yum update", only few things will > be downloaded (the updates newer than the cron launch). > > Is it a good enough practice? What would you advice to make it better? You can also just install the yum-cron package, which does this for you. -- James Antill -- james@xxxxxxx _______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxx http://lists.baseurl.org/mailman/listinfo/yum