How do I know which distro I am running on?

Bill Campbell bill
Mon May 17 11:44:33 PDT 2004


On Fri, Feb 14, 2003 at 09:03:18AM -0600, Stuart Biggerstaff wrote:
>Good idea, since the other suggestions involve files that could be edited 
>to mislead.  That is, if the info gets into dmesg from the kernel, not just 
>from reading a file.  Of course if it does come from the kernel, the 
>information will be different for a non-standard kernel.

Looking at /proc/version on several systems here ranging from Caldera
OpenLinux 1.3 (yeah that old :-) -> Caldera 3.1.1 Workstation, Cobalt RaQ4,
and SuSE 8.1, this only has vendor info if one hasn't rebuilt the kernel.

Even with vendor kernels, there's a wide variety of kernel versions,
gcc/egcs versions, etc., and one would have to build a pretty complex
matrix to figure out which is which.

The automake, autoconf, libtool folks have been working on this problem for
years, and I think the best they've come up with is to identify that it's a
Linux system with some kernel revision level.

Is the /etc/*-release file part of the UnitedLinux or LSB standard?  If so
(and it seems like a Good Idea(tm) to me), this would probably be the most
reliable way of handling the problem.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``If guns are outlawed, only the government will have guns. Only the police,
the secret police, the military, the hired servants of our rulers. Only the
government -- and a few outlaws. I intend to be among the outlaws.''
EDWARD ABBEY (1927-1989)


More information about the Linux-users mailing list