Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am really lazy I will give you guys this ;) but I have ~25 virtual machines running on xen. I really like xen and everything but now comes the tricky part.. I don't really feel like going through 25 vm's and running "apt-get update && apt-get upgrade" I would much rather have it do that for me and in some way contact me if there are any packages to install. Is there a way to do just that? I am running debian on the host and all the virtual machines.

Sorry it's a dupe: http://serverfault.com/questions/3/best-practices-for-keeping-unix-packages-up-to-date

share|improve this question
    
Duplicates serverfault.com/questions/3/… –  Zoredache May 4 '09 at 20:01
add comment

4 Answers

up vote 4 down vote accepted

Cron-apt does exactly this:

http://www.debian-administration.org/articles/162

share|improve this answer
add comment

I like to have the minimum of auto-updated packages and the important ones are the security updates. For this reason, I add the following to the cron-apt config file:

OPTIONS="-o Dir::Etc::SourceList=/etc/apt/security.sources.list"

and then make /etc/apt/security.sources.list have just the Debian security repositories enabled. That way, I get all the security updates automatically installed in a timely manner (each night) and I can do other, riskier upgrades that might break things by hand.

share|improve this answer
add comment

You should also look at running your own cron job if using aptitude:

Also look at the package Etckeeper for keeping backups of your /etc files in a repository (git, mercurial etc.).

share|improve this answer
add comment

You probably wouldn't want them all going off looking for updates at the same time anyway so I'd be tempted to just 'cron' the job with different offsets to spread the load and script it to email you its output. You could then write an email rule that deletes 'no update' emails.

share|improve this answer
    
You can use the $RANDOM environment variable to randomize the time. –  duffbeer703 May 11 '09 at 0:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.