Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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'm doing more ubuntu server work now (as opposed to RHEL), and I'm not certain how the debian/ubuntu communities handle managing package updates through a dev/test/(staging)/prod environment.

The workflow I would like is:

  • apt-get upgrade the test server
  • Run all required tests
  • Dump a list of installed packages (or at least the recently installed) with version info
  • Upgrade the production server based on the tested versions

This is to avoid the possibility of an update coming in during the test period, and getting installed on the production server without first going through Test.

What I think I'm looking for is something like dpkg --get-selections and dpkg --set-selections, but with specific versions. I can probably script this fairly easily, since apt-get accepts version info with the package name, but it seems like other people would already have a solution for this. I'd also rather not have the overhead of keeping a local mirror.

share|improve this question
One common way this is done, is by running your own repository. – Zoredache May 14 '12 at 19:16
@Zoredache - yeah, I've done that with yum repos too, but it's something I'd like to avoid right now if possible. – JimB May 14 '12 at 19:38

Your Answer


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

Browse other questions tagged or ask your own question.