How to Block Package and Kernel Updates in CentOS / Rocky Linux
In this tutorial, we will cover how to block certain packages from being installed or upgraded and how to block specific versions of packages or kernels from being installed.
Source: Howtoforge Linux Howtos und Tutorials