Archived

This topic is now archived and is closed to further replies.

Querying Linux OS version info

This topic is 5181 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Most people would probably use ''uname -a''. The returned string should properly report all the goodies you want.

For the C/C++ header and functions, take a look at ''man 3 uname''.

Int.

Share this post


Link to post
Share on other sites
distro version varies. search for a file called *-version or *-release in /etc that should have version information it it.

build number doesn''t exist. version of rpms installed can be found somehow. debs too. never looked into this. I''d probably just use the ''rpm'' and ''dpkg'' directly to find out.

uname will find KERNEL information.

In general, the answer to a question like this is to say, You''re thinking like a windows programmer. You don''t need to know any of that. Unless you do, maybe you should tell us what you''re trying to do, so we can tell you if you need to know.

Share this post


Link to post
Share on other sites