how to update entire server without changing server OS version
Solution 1:
You cannot upgrade major versions of RHEL just with yum. It will always upgrade only on the same major version.
You must follow a specific procedure to upgrade RHEL 7 to 8. Just running yum is not going to do it.
You can run yum update
without -y
to preview the changes which will be made before you accept them.