How do I determine the Operating System version and the version of libc, glibc, or XFree86 that I have running on my Linux machine?

5 views (last 30 days)
I would like to determine the Operating System version and the version of libc, glibc, or XFree86 that I have running on my Linux machine.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
You can find out the Operating System version you have on your Linux machine by executing the following command:
cat /proc/version
The following command should tell you the version of glibc that you have running on your system:
rpm -q glibc
For example, if the version number is 2.3.4, this command will output a version number similar to the following:
glibc-2.3.4-23.4
You can also run the following command to determine your glibc version.
/lib/libc.so.6
When run as a program, this command will produce several lines of output. The version number is in the first line, and will look like the following: "2.1.2", "2.1.3", or "2.2.3" etc.
Also, to get the version of XFree86 running, you can execute the following command when sitting directly at the machine:
xdpyinfo | grep vendor

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!