得到Linux操作系统的glibc版本信息

命令参考自:

How to Find out Linux Version Information? (文档 ID 207296.1)

 

如果是用rpm安装的glibc,

[oracle@rhel63single ~]$ rpm -qi glibc
Name        : glibc                        Relocations: (not relocatable)
Version     : 2.12                              Vendor: Red Hat, Inc.
Release     : 1.80.el6                      Build Date: Thu 19 Apr 2012 01:46:41 AM CST
Install Date: Tue 19 Feb 2013 05:21:50 AM CST      Build Host: x86-004.build.bos.redhat.com
Group       : System Environment/Libraries   Source RPM: glibc-2.12-1.80.el6.src.rpm
Size        : 12932790                         License: LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Signature   : RSA/8, Wed 30 May 2012 03:15:03 PM CST, Key ID 199e2f91fd431d51
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://sources.redhat.com/glibc/
Summary     : The GNU libc libraries
Description :
The glibc package contains standard libraries which are used by
multiple programs on the system. In order to save disk space and
memory, as well as to make upgrading easier, common system code is
kept in one place and shared between programs. This particular package
contains the most important sets of shared libraries: the standard C
library and the standard math library. Without these two libraries, a
Linux system will not function.
[oracle@rhel63single ~]$ 
[oracle@rhel63single ~]$ 
[oracle@rhel63single ~]$ 
[oracle@rhel63single ~]$ rpm -q glibc
glibc-2.12-1.80.el6.x86_64
[oracle@rhel63single ~]$ uname -a
Linux rhel63single 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
[oracle@rhel63single ~]$


如果不是用rpm安装的,你可以用下面的命令去检查glibc的版本,举例:

$ ls -lasi /lib/libc.*
2326551 0 lrwxrwxrwx  1 root root 13 May 15 09:10 /lib/libc.so.6 -> libc-2.3.4.so

可以看到glibc 库的版本是 2.3.4

 

你可能感兴趣的:(linux,version,glibc)