How to restore swupd if i remove "os-core-update"

I’m curious, if I delete os-core-update is there any way to restore it?

If you delete the whole swupd component… then for sure you can’t swupd it back in place.

If you do this by accident you likely can copy the few key files (/usr/bin/swupd and a few libraries) over from another image, and the live image can be used to also recover (basically you can swupd with an argument to operate on a mounted directory as if it was a chroot)