Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to have the ubuntu updates on the production servers after they working one week on the staging servers. If I make apt-get update && apt-get upgrade on the production servers after a week they are also getting updates which aren't tested one week on the staging servers.

Can someone tell me how I can do this?

share|improve this question

Not elegant, but works: apt-get update on both types of servers, then apt-get upgrade on staging servers and apt-get upgrade -d (download only) on production servers. After week, if it's everything ok apt-get upgrade (but without apt-get update) on production.

share|improve this answer

how i solve it is run a local mirror of the repositories you use and point the apt source files to that local repo and update off that. That way you have control of what goes on staging and production.

share|improve this answer
How can you keep local mirror sliding one week behind upstream sources? – Skaperen Sep 5 '12 at 16:50
run the rsync script by hand when you want to pull in updates to test on staging. – Mike Sep 5 '12 at 16:54

Your Answer


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.