[Yum] check-updates and download-only
James Antill
james-yum at and.org
Wed May 2 12:10:42 UTC 2012
Mihamina Rakotomandimby <mihamina at rktmb.org> 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 at and.org
More information about the Yum
mailing list