在 Debian 系统中,可以通过几种方式查看 getconf 的版本信息。
--version 参数(最常用)getconf 实际上是 GNU C Library(glibc)的一部分,所以:
getconf --version
输出示例:
getconf (Debian GLIBC 2.31-13+deb11u5) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
...
这里的 2.31 就是 glibc 版本,也就是 getconf 所属版本。
getconf 所属包版本(Debian 特有)dpkg -l libc-bin
或:
apt-cache policy libc-bin
getconf 由 libc-bin 包提供。
确认归属:
dpkg -S $(which getconf)
glibc 版本(底层)ldd --version
或:
/lib/x86_64-linux-gnu/libc.so.6
getconf --versiondpkg -l libc-binldd --version如你需要判断某个 getconf 参数在不同版本的行为差异,也可以告诉我具体场景。