得到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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值