But when I log into the server and run dnf list installed | grep kernel-core, I get this response.
kernel-core.x86_64 4.18.0-425.10.1.el8_7 @rhel-8-baseos-rhui-rpms
kernel-core.x86_64 4.18.0-425.13.1.el8_7 @rhel-8-baseos-rhui-rpms
kernel-core.x86_64 4.18.0-425.19.2.el8_7 @rhel-8-baseos-rhui-rpms
Running sudo dnf remove –duplicates doesn't do anything. Running sudo dnf upgrade says everything is up to date.
How do I remove to old kernel-core and kernel packages?
OS Version
NAME="Red Hat Enterprise Linux"
VERSION="8.7 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.7 (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.7
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.7"
Edit:
the command uname -r returns: 4.18.0-425.13.1.el8_7.x86_64
So it appears the newest version is not being used.
To remove old versions of kernel-core and kernel from Red Hat Linux, you can follow these steps:
Replace with the actual name of the kernel package you want to remove. For example:
Note that you should not remove the currently running kernel package.
This will install the latest available kernel package.
By following these steps, you can remove old versions of kernel-core and kernel from Red Hat Linux, which can help to free up disk space and improve system performance.