[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Noninteractive "apt-get upgrade "question.



* Ivan Teliatnikov <ivan@geosci.usyd.edu.au> [041220 07:31]:

> What is the best way to "apt-get update" a classroom full of debian
> sarge machines. 

Assuming you test it on one machine first, ...

> DEBIAN_FRONTEND=noninteractive apt-get -uy dist-upgrade
> 
> Nevertheless I was asked some questions as follows:
> 
> Configuration file `/etc/profile'
>  ==> Modified (by you or by a script) since installation.
>  ==> Package distributor has shipped an updated version.
>    What would you like to do about it ?  Your options are:
>     Y or I  : install the package maintainer's version
>     N or O  : keep your currently-installed version
>       D     : show the differences between the versions
>       Z     : background this process to examine the situation
>  The default action is to keep your current version.
> *** profile (Y/I/N/O/D/Z) [default=N] ?

You could run it with 
yes | DEBIAN_FRONTEND=noninteractive apt-get -uy dist-upgrade


> What is the best way?

I think this should work, allthough I don't think it is the most elegant
solution ;)


Yours sincerely,
  Alexander

Attachment: signature.asc
Description: Digital signature


Reply to: