001、查看软链接
[root@PC1 software]# ls -l /lib64/libc.so.6 lrwxrwxrwx. 1 root root 12 Jul 17 17:22 /lib64/libc.so.6 -> libc-2.17.so
002、执行 /lib64/libc.so.6
[root@PC1 software]# /lib64/libc.so.6 GNU C Library (GNU libc) stable release version 2.17, by Roland McGrath et al. Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 4.8.5 20150623 (Red Hat 4.8.5-44). Compiled on a Linux 3.10.0 system on 2022-05-18. Available extensions: The C stubs add-on version 2.1.2. crypt add-on version 2.1 by Michael Glad and others GNU Libidn by Simon Josefsson Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B RT using linux kernel aio libc ABIs: UNIQUE IFUNC For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>.
003、借助strings命令
[root@PC1 software]# strings /lib64/libc.so.6 | grep ^GLIBC | sort -V | head GLIBC_2.2.5 GLIBC_2.2.6 GLIBC_2.2.6 GLIBC_2.3 GLIBC_2.3.2 GLIBC_2.3.3 GLIBC_2.3.4 GLIBC_2.4 GLIBC_2.5 GLIBC_2.5 [root@PC1 software]# strings /lib64/libc.so.6 | grep ^GLIBC | sort -V | tail GLIBC_2.12 GLIBC_2.13 GLIBC_2.13 GLIBC_2.14 GLIBC_2.15 GLIBC_2.16 GLIBC_2.16 GLIBC_2.17 GLIBC_2.17 GLIBC_PRIVATE
004、ldd --version
[root@PC1 software]# ldd --version ldd (GNU libc) 2.17 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.
005、
[root@PC1 software]# getconf GNU_LIBC_VERSION glibc 2.17
参考:https://blog.csdn.net/baiyifei2016/article/details/129840949
标签:libc,glibc,version,版本,linux,2.17,root,GLIBC,software From: https://www.cnblogs.com/liujiaxin2018/p/17560868.html