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 have a script that executes apt-get update on several servers and I have to find out whether there are upgrades available or not in order to schedule apt-get upgrades etc...

Looking at the docs I don't see how I could do this task.

share|improve this question
add comment

2 Answers

You can use apt-get -s dist-upgrade and parse it's output. -s means simulation: no real actions will be done

share|improve this answer
add comment

On one of my Ubuntu servers I use a program called unattended-upgrades. It sends me an email every night with a list of available updates.

share|improve this answer
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.