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

Re: Shutdown computer after a specific command has been executed



On Thu, 12 Dec 2013 16:21:34 +0100
Ralf Mardorf <ralf.mardorf@alice-dsl.net> wrote:

> On Thu, 2013-12-12 at 19:17 +0400, Reco wrote:
> > Still, if one has desire to blow legs off:
> 
> :D
> 
> > sudo sh -c "apt-get update && apt-get upgrade -y ; poweroff"
> 
> but I would recommend
> 
> sudo sh -c "apt-get update && apt-get dist-upgrade -y ; poweroff"

And I'd don't. 'dist-upgrade' can install new packages (and _usually_
nothing breaks from installing new packages), but more important - it
can _remove_ existing ones (and that _surely_ can break things).

'apt-get upgrade' on the other hand is usually considered safe enough.

Reco


Reply to: