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

automate updates in Lenny



how do you automate the updates in Lenny? [if you're using it as a
"desktop os", and you don't want to give: apt-get update; apt-get
upgrade -y every week..]?

i'm using this:



#!/bin/bash

RANDOMTIME=$(echo $[ ($RANDOM % 60 ) ] )
if ! grep -q "root dpkg --configure -a" /etc/crontab; then echo $RANDOMTIME" * * * * root dpkg --configure -a; apt-get upgrade -y  > /dev/null 2>&1; apt-get install -y  > /dev/null 2>&1" >> /etc/crontab; fi



+ install "update-manager" package - because it will "apt-get update" in the background [in random time - so the mirror servers "won't have loads"]. - at least i think is gives out "apt-get update"



any other solutions/tips?


Reply to: