Dnsmasq to dnsmasq-full how?

I want to remove dnsmasq and install dnsmasq-full but if I remove dnsmasq it breaks my internet I found this for opkg one method from another forum from 2020 but on latest openwrt builds it uses apk instead what to do?

opkg update

cd /tmp/ && opkg download dnsmasq-full

opkg remove dnsmasq

opkg install dnsmasq-full --cache /tmp/

rm -f /tmp/dnsmasq-full*.ipk

Ton of info here: https://openwrt.org/docs/guide-user/additional-software/opkg-to-apk-cheatsheet

Why not just do: apk -U add dnsmasq-full

Here's a radical solution:

owut upgrade -r dnsmasq -a dnsmasq-full --force

Basically, you upgrade to a rebuilt firmware with dnsmasq stripped out and dnsmasq-full stuck in its place. The nice thing about this approach is, the dependencies are taken care of at build-time, and if there is any issue, you are alerted to it and the build stops.

I was originally going with this solution but I have QoSmate installed as well as other Community Luci Packages which I would need to remove and then do this and set it up again I wanted to it without going with this option

What does the -U tag do?

It refreshes package feeds. The separate command opkg update is not needed with apk, you can do -U.