update repo before uninstall