Why are /etc/redhat-release and /etc/os-release not updated after patching the server?
Issue
After patching, the server still shows the previous version in /etc/redhat-release and /etc/os-release, despite being booted with the latest kernel.
Ex: After patching, the server still shows Red Hat Enterprise Linux release 8.6 (Ootpa) in /etc/redhat-release and /etc/os-release, despite being booted with the RHEL 8.10 kernel.
# uname -r
4.18.0-553.8.1.el8_10.x86_64
# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.6 (Ootpa)
# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.6 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.6 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.6"
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.