Finding out the OS distribution name

Ben Darnell bgdarnel at my-deja.com
Thu Oct 21 19:33:22 EDT 1999


In article <199910212239.IAA31097 at piglet.dstc.edu.au>, David Arnold wrote:
>-->"Marc-Andre" == M -A Lemburg <mal at lemburg.com> writes:
>
>  Marc-Andre> On SuSE Linux there's a file /etc/SuSE-release which
>  Marc-Andre> tells me the version etc.
>
>on Debian GNU/Linux the file /etc/debian_version contains the
>distribution version number (ie. 2.1 for my local system).
>
>   > cat /etc/debian_version 
>   2.1
>   > 

If you're running unstable, you get the version name instead of number:
% cat /etc/debian_version
potato
%

-Ben

-- 
Ben Darnell              bgdarnel at unity.nc su.edu
http://www4.nc su.edu/~bgdarnel/thoughtstream/





More information about the Python-list mailing list