Linux ports - determining the correct port to order



When ordering ports for the Linux operating system it is necessary to know the glibc version that is installed on the target machine to avoid a port mismatch.


From the command line type the following command:

rpm -q glibc

This should return output similar to:


For ordering purposes, the glibc version in this example would be version 2.3.

Example command line syntax and output:

user@my_linux:~> rpm -q glibc


On recent Linux distributions, the version can be found by simply running

the library as if it were an executable:

    prompt% /lib/

    GNU C Library stable release version 2.2.5, by Roland McGrath et al.


The first line of the output contains the version number.

Another way to determine the version is to see what version string is embedded in the library itself:

    prompt% strings /lib/ | grep "GNU C Library"

    GNU C Library stable release version 2.1.3, by Roland McGrath et al.

If the above does not work, look in /lib and see what's there:

    prompt% ls -l /lib/libc.*

In the output, look for a file with a format similar to "" and/or "", where W, X, Y, and Z are digits. == libc-5 == glibc-2.0 == glibc-2.1 == glibc-2.2

These are likely symbolic links to the file: == libc-5 == glibc-2.?

Old KB# 2666
Comment List
Related Discussions