Is there an Oreo custom ROM for this phone? If there is, someone knows how to root it. If there isn't, rooting isn't going to help you update (and may make it harder, because you are unlikely to be able to accept an official update if you do).
Otherwise you wait for the manufacturer or carrier to release an Oreo update, assuming that they do, and then use the system update menu to install it.