Easy way to tell what linux distribution is installed

Rik van Riel riel at redhat.com
Sun Jul 11 16:54:32 UTC 2004


On Sun, 11 Jul 2004, Ed Wilts wrote:

> The short answer is that it's going to be VERY hard to determine which
> distribution you're running, if it's possible at all.  Nothing would
> stop me from putting a stock kernel on either of my systems and
> /proc/version is going to be even more wrong.

If you restrict yourself to /proc, sure.

However, a lot of distributions have /etc/<distro>-version
that can be used to detect what distro you're running on.

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan





More information about the redhat-list mailing list