Re: running apt-get update && apt-get upgrade as a cronjob?
:: Walter Tautz writes:
> Just wondering if this is possible in view of the fact that
> configuration is sometime done and so requires interaction.
> Is the -q option appropriate? .....any advice?
> -walter
Assuming you want to download the files at night, for example. I
believe you can either:
1) Use "apt-get -d upgrade", so the files will be downloaded but not
installed. So you can run an apt-get upgrade in the morning while
disconnected, since all files were fetched, and then you'll bne
able to interact with dpkg.
2) Use "apt-get -y upgrade", in which case a "yes" will be assumed in
all questions... But I think there are situations in which a yes
won't help, and then apt-get will abort (but you'll still have all
files downloaded an will be able to install whatever was missing in
the morning).
J.
--
Jeronimo Pellegrini
Institute of Computing - Unicamp - Brazil
http://www.ic.unicamp.br/~jeronimo
mailto:jeronimo@ic.unicamp.br mailto:pellegrini@iname.com
Reply to: