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

Re: Automatic dist-upgrade for security update



On Mon, 2002-07-01 at 14:29, Jean-Michel Besnard wrote:
> Hi,
> 
> I am looking for a way to notice the admin when a package has to be updated.
> 
> I was thinking about a script that would apt-get update && apt-get dist-upgrade --simulate |mail root@foobar every hour if dist-upgrade --simulate 
> had an output different  than : 0 packages upgraded, 0 newly installed, 0 to remove and 0  not upgraded.

dselect update && apt-get -duy dist-upgrade 

this tells apt to download the packages put up a list of the upgrades
and asume yes.  
I have this in a nightly cron job which does this and a few other things
then mails me the output.  If there were new packages, then I just open
up a root terminal and apt-get dist-upgrade and since all the packages
were downloaded durring the night it happily upgrades everything.  It
has worked for me for quite a while.  I also have an apt-history script
in there so that I can record what packages are changing on my system. 

-- 
-Peace kid
  Scott Henson	shenson2@wvu.edu

"God's the ultimate playa, so naturally He's going to have some haters,"
rapper Ice Cube said. "But these haters need to realize that  if you
mess with the man upstairs, you will get your ass smote. True dat."




-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: