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

Re: unattended upgrades



 --- Rudy Gevaert <rudy@zeus.UGent.be> wrote: 
> Hi,
> 
> I was wondering what the best way is to do an unattended apt-get
> update; apt-get upgrade ?

You could do it in a crontab entry:

03 03 * * * root  apt-get update && apt-get -dy upgrade &&  \
apt-get upgrade -y

You'd have to make sure that prior to that you put your cron* packages on
hold, otherwise it might barf.  I should point out that automating apt-get
in this way, is probably a disasterous thing to do...

YMMV.

-- Thomas Adam

=====
"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor"                 -- http://linuxgazette.net

"<shrug> We'll just save up your sins, Thomas, and punish 
you for all of them at once when you get better. The 
experience will probably kill you. :)"

 -- Benjamin A. Okopnik (Linux Gazette Technical Editor)


	
	
		
___________________________________________________________ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com



Reply to: