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 am looking at a Debian server that has version wheezy/sid. Is there a way I can tell if this server was upgraded from squeeze via dist-upgrade versus being built from scratch as a wheezy server?

share|improve this question
Have you checked the log files? E.g. /var/log/aptitude*, /var/log/apt/* – Sven Dec 13 '12 at 16:42
Short of the log files you probably have to look for non-upgraded conffiles. – Zoredache Dec 13 '12 at 17:01
up vote 1 down vote accepted

The only way you can use apt-get dist-upgrade to change from one release to another is if you've modified /etc/apt/sources.list to point to the new release.

You can check the logs in /var/log/apt/ and /etc/apt/sources.list to see what was done.

share|improve this answer
Since when does Debian have do-release-upgrade? Can you point to somewhere in the official docs saying this is the only supported way to upgrade? – Zoredache Dec 13 '12 at 16:59
Lol. Yeah, that was Ubuntu. Sorry, got my distros confused. I've updated it. – nojak Dec 13 '12 at 17:37
@Zoredache Thanks for pointing that out, btw. – nojak Dec 13 '12 at 17:39

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.