This is what command ‘more /etc/dnf/dnf.conf’ gives:
alangea@alangea-systemproductname dnf]$ more dnf.conf
# see `man dnf.conf` for defaults and possible options
*[main]*
*gpgcheck=True*
*installonly_limit=3*
*clean_requirements_on_remove=True*
*best=False*
*skip_if_unavailable=True*
*[alangea@alangea-systemproductname dnf]$*
Just set installonly_limit= “whatever”
My advice is minimum 2, maximum 3
uname -r gives the running kernel name
The command hostnamectl
gives complete information about the running kernel