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 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
2  
Have you checked the log files? E.g. /var/log/aptitude*, /var/log/apt/* –  SvW 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

1 Answer 1

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

 
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.