Transfering Settings/Preferences While Updating From One Version of LO to Another

How do I save the preferences/settings in LibreOffice before or while doing an upgrade (from to 5.2.5)? I mostly use LO Writer and an example would be to save the collection of words for the auto-complete function and transfer it from the old to the new version?

If needed, I am using a Mac.