I just Wondering if we can print the yum parameters without to view the yum configuration files ( by more or cat or vi ... etc)for exampleI configured the variable , in  /etc/yum.conf  installonly_limit = 2in order to remove the oldest kernel every time a new kernel is installedcan yum print the variables values as installonly_limit ?
linux + yum + how to print the yum variables by yum command
linux;rhel;yum;repository
Yes, yum can do that, although you might need the valuable yum-utils package installed. You can either use yum-debug-dump to print all the internal variables, or you can use a small python script to only print what you need specifically (see this answer at the link below for that) or you can try with yum-config-manager to see if it shows what you need.More details are provided in the existing question Yum: How can I view variables like $releasever, $basearch & $YUM0?