Rocky Linux pin repository files to specific version
Must be done before running an updated.
In the /etc/yum/vars directory, add file named releasever
containing the requested version.
i.e.
echo 7.8.2023 > /etc/yum/vars/releasever
References
Output variables