nsapub.blogg.se

How to find redhat linux version
How to find redhat linux version










how to find redhat linux version

It works on the top of servlet containers. Of course there may be systems where the file name itself doesn’t give you the glibc version but just as shown above with /lib64/libc.so.6 you can call the so file with the –version to get its version information e.g.: lsof -p $$ | grep libc | awk ' ' | shĬrypt add-on version 2.Jenkins is an open source automation server based on Java. Since your current shell is probably also using glibc, you can also find out which libc library it has loaded by using the following command: > lsof -p $$ | grep libcīash 9177 root mem REG 8,2 1661454 827401 /lib64/libc-2.11.1.so Of course, if your C file is not called glibc_version.c, you’ll have to use the name you’ve actually used in the gcc arguments. You can then compile it and execute it like this to get the glibc version: Printf("glibc version: %s\n", gnu_get_libc_version()) If you want to determine the glibc version from C program and not from a shell script, you can just use something like this: #include Native POSIX Threads Library by Ulrich Drepper et alįor bug reporting instructions, please see:

how to find redhat linux version

Ĭrypt add-on version 2.1 by Michael Glad and others There is NO warranty not even for MERCHANTABILITY or FITNESS FOR AĬompiled by GNU CC version 4.3.4. This is free software see the source for copying conditions. GNU C Library stable release version 2.11.1 (20100118), by Roland McGrath et al.Ĭopyright (C) 2009 Free Software Foundation, Inc. So we now know that /lib64/libc.so.6 is being used and we just need to get it’s version: > /lib64/libc.so.6 -version The static library, so try that secondarily. Use the shared library, but some functions are only in You can also find the libc.so file used with the following command: > cat `gcc -print-file-name=libc.so` You first have to find which libc.so file is being used by a known program e.g. The second way is a little bit more difficult. Check the version of the used libc.so file.Check the version of the installed glibc rpm package.

how to find redhat linux version

If you know you might have patched the system to use a different version of ldd and know that its version doesn’t match the glibc version, you have two additional ways to find out the glibc version: If you need to check which version of the GNU C library (glibc) is used on you Linux system, whether it’s to check whether you are affected by the GHOST vulnerability or you need to install a software requiring at least a certain version but not checking it on build/installation, the easiest way is to use ldd which comes with glibc and should in most cases have the same version: > ldd -version












How to find redhat linux version