飞行前检查
- 这些说明专门用于检查已安装的 glibc 版本。
- 我将从 Liquid Web Self Managed 工作 Fedora 20 和 Fedora 21服务器,我将以root身份登录。
使用 ldd
ldd --version
这应该返回类似于(尽管您的版本可能会有所不同)的结果:
ldd (GNU libc) 2.20
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.20 版 已安装。
使用百胜
yum list glibc
这应该返回类似于以下内容的结果:
Installed Packages
glibc.x86_64 2.20-5.fc21 @anaconda
Available Packages
glibc.i686 2.20-5.fc21 fedora
在这种情况下, 2.20-5.fc21 是安装的包。