Well, doesn’t that depend on your package manager? With pacman I can add a custom hook after install to update all flatpaks. I’m sure it could also be done for all snaps and AppImages if I would use any of those.
Isn’t there a similar hooking mechanism in apt or yum?
Not a prince, but with a male protagonist, and overall very awesome story: Avatar the last Airbender