4.18.0-513.11.1.el8_9 upgrad problems

When I do dnf update I get
Last metadata expiration check: 20:17:19 ago on Tue 16 Jan 2024 13:16:25 GMT.
NOTE: Skipping kernel installation since no kernel module package kmod-nvidia-545.23.08-4.18.0-513.11.1 for kernel version 4.18.0-513.11.1.el8_9 and NVIDIA driver 545.23.08 could be found
Error:
Problem 1: package kernel-modules-extra-4.18.0-513.11.1.el8_9.x86_64 from baseos requires kernel-uname-r = 4.18.0-513.11.1.el8_9.x86_64, but none of the providers can be installed

  • cannot install the best update candidate for package kernel-modules-extra-4.18.0-513.5.1.el8_9.x86_64
  • package kernel-core-4.18.0-513.11.1.el8_9.x86_64 from baseos is filtered out by exclude filtering
    Problem 2: package kernel-modules-extra-4.18.0-513.11.1.el8_9.x86_64 from baseos requires kernel-uname-r = 4.18.0-513.11.1.el8_9.x86_64, but none of the providers can be installed
  • cannot install the best update candidate for package kernel-modules-extra-4.18.0-513.9.1.el8_9.x86_64
  • package kernel-core-4.18.0-513.11.1.el8_9.x86_64 from baseos is filtered out by exclude filtering
    Problem 3: package kernel-modules-4.18.0-513.11.1.el8_9.x86_64 from baseos requires kernel-uname-r = 4.18.0-513.11.1.el8_9.x86_64, but none of the providers can be installed
  • cannot install the best update candidate for package kernel-modules-4.18.0-513.5.1.el8_9.x86_64
  • package kernel-core-4.18.0-513.11.1.el8_9.x86_64 from baseos is filtered out by exclude filtering
    Problem 4: package kernel-modules-4.18.0-513.11.1.el8_9.x86_64 from baseos requires kernel-uname-r = 4.18.0-513.11.1.el8_9.x86_64, but none of the providers can be installed
  • cannot install the best update candidate for package kernel-modules-4.18.0-513.9.1.el8_9.x86_64
  • package kernel-core-4.18.0-513.11.1.el8_9.x86_64 from baseos is filtered out by exclude filtering
    (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

=====
I have Rocky Linux release 8.9 (Green Obsidian) 4.18.0-513.9.1.el8_9.x86_64

Also :
nvidia-smi
Wed Jan 17 09:43:33 2024
±--------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.23.08 Driver Version: 545.23.08 CUDA Version: 12.3 |
|-----------------------------------------±---------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 Quadro P2200 Off | 00000000:01:00.0 Off | N/A |
| 44% 23C P8 4W / 75W | 183MiB / 5120MiB | 0% Default |
| | | N/A |
±----------------------------------------±---------------------±---------------------+

±--------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 2031 G /usr/libexec/Xorg 64MiB |
| 0 N/A N/A 2537 G /usr/bin/gnome-shell 116MiB |
±--------------------------------------------------------------------------------------+

Your NVidia driver is from NVidia’s repository. The latest prebuilt kmod-nvidia packages that they seem to have, seem to be for kernel version 513.9.1-545.23.08-3.el8_9.
In addition, they do have dkms-related packages that should call dkms to build kernel module for new kernel in your machine.

I would remove the nvidia packages and then reinstall them with:

dnf module install nvidia-driver:latest-dkms

(in hope that dkms can then do the “right thing”)


Option B is to postpone the install of new kernel version until NVidia’s repo has built driver for it.

I will go with option B, so for now I will only do
dnf update --security

Note that kernel can very well be tagged as “security”. An alternative:
dnf up --exclude=kernel\*