centos-release-upstream文件在CentOS中意味着什么?centos-release文件已经告诉我已经安装了CentOS 7.2.x版本。
root# cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)
root# cat /etc/centos-release-upstream
Derived from Red Hat Enterprise Linux 7.2 (Source)
root# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"发布于 2016-11-10 07:57:16
它告诉您,您正在运行的CentOS版本是基于RHEL 7.2。显然,您可以从当前的CentOS版本中看出这一点,但是将其显式地放在一个不同的文件中意味着您可以在不需要硬编码的情况下找到该信息--知道CentOS版本与RHEL版本匹配--如果将来这种情况发生变化,/etc/centos-release-upstream仍将包含正确的信息。
https://unix.stackexchange.com/questions/322244
复制相似问题