【原创】CentOS如何查看 (The GNU C Library) glibc 版本?

blogdaren 2018-06-29 抢沙发 1065人次

什么是glibc?

The GNU C Library project provides the core libraries for the GNU system and GNU/Linux systems, as well as many other systems that use Linux as the kernel. These libraries provide critical APIs including ISO C11, POSIX.1-2008, BSD, OS-specific APIs and more. These APIs include such foundational facilities as open, read, write, malloc, printf, getaddrinfo, dlopen, pthread_create, crypt, login, exit and more.

The GNU C Library is designed to be a backwards compatible, portable, and high performance ISO C library. It aims to follow all relevant standards including ISO C11, POSIX.1-2008, and IEEE 754-2008.

The project was started circa 1988 and is almost 30 years old.

【截止金牛座写本文时发现该项目大约在1988年发起,距今已经维护30年了,赞下老外无私的匠人精神】

官方网站:

http://www.gnu.org/software/libc/libc.html

http://ftp.gnu.org/gnu/glibc/

北京交通大学自由与开源软件镜像站:

https://mirror.bjtu.edu.cn/gnu/libc/

解决方案-1:

[root@node1 software]# ls -l /lib/libc.so.6  /lib64/libc.so.6 
lrwxrwxrwx. 1 root root 12 6月  29 00:28 /lib64/libc.so.6 -> libc-2.12.so
lrwxrwxrwx. 1 root root 12 6月  29 00:29 /lib/libc.so.6 -> libc-2.12.so

解决方案-2:

[root@node1 software]# rpm -qa | grep glibc
glibc-headers-2.12-1.209.el6_9.2.x86_64
glibc-devel-2.12-1.209.el6_9.2.x86_64
glibc-2.12-1.209.el6_9.2.i686
glibc-static-2.12-1.209.el6_9.2.i686
glibc-devel-2.12-1.209.el6_9.2.i686
glibc-utils-2.12-1.209.el6_9.2.x86_64
glibc-common-2.12-1.209.el6_9.2.x86_64
glibc-2.12-1.209.el6_9.2.x86_64
glibc-static-2.12-1.209.el6_9.2.x86_64

解决方案-3:

[root@node1 software]#  rpm -qi glibc
Name        : glibc                        Relocations: (not relocatable)
Version     : 2.12                              Vendor: CentOS
Release     : 1.209.el6_9.2                 Build Date: 2017年06月20日 星期二 11时38分08秒
Install Date: 2018年06月29日 星期五 00时28分46秒      Build Host: c1bl.rdu2.centos.org
Group       : System Environment/Libraries   Source RPM: glibc-2.12-1.209.el6_9.2.src.rpm
Size        : 13121423                         License: LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Signature   : RSA/SHA1, 2017年06月20日 星期二 16时38分59秒, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>
URL         : http://sources.redhat.com/glibc/
Summary     : The GNU libc libraries
....................................
....................................


#glibc#

版权声明:除非注明,本文由( blogdaren )原创,转载请保留文章出处。

本文链接:【原创】CentOS如何查看 (The GNU C Library) glibc 版本?

发表评论:

您的昵称:
电子邮件:
个人主页: