安装软件,写脚本常需要查询glibc的版本
#容易记忆,最常用的方法
[root@db02 ~]# 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.
#方法2
[root@db02 ~]# getconf GNU_LIBC_VERSION
glibc 2.17