Determining linux distribution

David J Patrick davidjpatrick-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Mon Apr 18 14:56:15 UTC 2005


Lennart Sorensen wrote:

> ls /etc/*release /etc/*version could be better, and if you cat any file
>
>found, you would have an idea of the version number (but only any idea
>as it may be wrong.  Debian unstable will still say 3.1 even though it
>isn't 3.1).
>
>cat /etc/issue may help too on some distributions.
>
>But there certainly isn't a universal solution.
>  
>
I had the same question trying to urpmi a friends old Mandrake box, but
was unsure what version he was at.

Is there a LSB mechanism that is not being implemented ?
Surely access to the accurate distro and version info is vital and a
common requirement ?

djp
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list