Upgrading community edition from 8.4 to 8.6

I installed 8.4 on a Centos 7.0 system just over a year ago and I am considering upgrading to the latest versions (core and webapp), but from memory this was installed using rpm -i xxx with a hit or a miss trying to install in a sequence to maintain the dependencies. Is there are easier way to do this, or do I need to use rpm -U --force to install the newer version.

try yum localinstall “*.rpm” in the directory where you downloaded the rpms?

Thanks worked a treat