repoInstall/repoUninstall: More refactoring to make the code more reuseable.