Re: check-updates and download-only
James Antill <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
Mihamina Rakotomandimby <[email protected]> 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 -- [email protected]