[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: is /etc/debian_version trustworthy?

Konstantinos Margaritis wrote:
> (For those who don't follow the thread about preseeding X debconf 
> values, I need a way to support both woody, sarge and future releases 
> and I need a way to know the current release)
> Can I count on /etc/debian_version holding specific and well known 
> values?

No, it only tells you the release base-files thinks to belong to.
Users can mix packages from all releases on their systems (modulo

> (aside from the case a stupid user changes the contents of the file)
> If not, is there *any* other way to know the debian release version 
> (aside from keeping huge package version maps)?

You would have to track the version of the packages you are
interested in.


Reply to: