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

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

2 Answers 2

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

 
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.