How can one installation package replace another without uninstalling and reinstalling?

How can one installation package replace another without uninstalling and reinstalling?

We want to use packages to make changes to Sugar instead of studio.  That way we can track the changes in GITHUB.