[clue-tech] up2date question

David L. Willson DLWillson at TheGeek.NU
Sun Feb 12 13:35:14 MST 2006


I don't make a distinction between feature upgrades and security upgrades, but getting
~everything~ up2date'd is a simple one-liner:  'up2date --update --force' from a console
where DISPLAY is undefined.  So, keeping the system up2date'd is just adding that
one-liner, or a script containing it, to root's crontab.

  echo '#!/bin/bash' > ~/bin/up2date-me.sh
  echo 'up2date --update --force' >> ~/bin/up2date-me.sh
  chmod +x ~/bin/up2date-me.sh

now, you probably want to test it...
  
  up2date-me.sh

or

  /root/bin/up2date-me.sh

If that works well, or barfs through no fault of it's own, as up2date sometimes does,
you can add it to your daily chores by doing this.

  crontab -l > ~/mycron
  echo '59 03 * * * /root/bin/up2date-me.sh' >> ~/mycron
  crontab ~/mycron
  rm ~/mycron

If you don't like that, check for a folder named /etc/cron.daily, and just drop your
script in there.

I'm doing this blind, so you might want to do a little sanity checking as you go.

On Sun, 12 Feb 2006 17:42:54 +0000, Collins Richey wrote
> I don't know whether you intend to maintain multiple machines in this
> fashion, but if so the yam package from Dag Wieers is worth
> evaluation.
> 
> http://dag.wieers.com/home-made/yam/
> 
> --
> Collins Richey
>       The agnostic dyslexic insomniac lies awake wondering if there is a dog.
> _______________________________________________
> CLUE-tech mailing list
> CLUE-tech at cluedenver.org
> http://cluedenver.org/mailman/listinfo/clue-tech


David L. Willson
Trainer/Engineer/Consultant
MCT, MCSE, Linux+
(720) 333-LANS

_______________________________________________
CLUE-tech mailing list
CLUE-tech at cluedenver.org
http://cluedenver.org/mailman/listinfo/clue-tech



More information about the clue-tech mailing list