sysupgrade
would be a command-line upgrade, similar functionality is available through LuCI.
The bare-bones approach is
- Backup config (for safety)
- sysupgrade (which will, by default, create its own config backup and restore it)
- Reinstall user-installed packages
Confirmed on an ext4-based system running under VirtualBox that
sysupgrade /tmp/openwrt-18.06.2-x86-64-combined-ext4.img.gz
obtained from http://downloads.openwrt.org/releases/18.06.2/targets/x86/64/openwrt-18.06.2-x86-64-combined-ext4.img.gz upgraded a 18.06.1 instance to 18.06.2 with expected configuration preserved.
For a recent, quick overview see