Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to uninstall salt which was installed with this boostrap script #1452

Closed
sjkummer opened this issue Apr 16, 2020 · 6 comments
Closed

How to uninstall salt which was installed with this boostrap script #1452

sjkummer opened this issue Apr 16, 2020 · 6 comments

Comments

@sjkummer
Copy link

Description of Issue/Question

How can I fully uninstall / undo this boostrap install? e.g. If I'd like to switch to the salt-packages that come with my distribution (apt get install ....)

@bryceml
Copy link

bryceml commented Apr 16, 2020

by default the bootstrap script just installs the packages from the official repo, https://repo.saltstack.com

You should be able to

apt-key list

note the gpg key for the salt repo

sudo apt-key del [that key fingerprint]
sudo rm /etc/apt/sources.list.d/saltstack.list
sudo apt update
apt list --installed|grep salt

then remove the installed salt packages, which would typically be

sudo apt autoremove salt-common salt-minion

Then you can install the distro provided packages.

If you install from git or pip with the bootstrap script, it's another story.

@sjkummer
Copy link
Author

Hm, in fact, I installed it from GIT. But doesn't the bootstrap script uninstall existing versions before installing the new one (AFAIK logs telling this) ?

Could a new commandline-parameter for "uninstall only" be introduced?

@sjkummer
Copy link
Author

sjkummer commented May 1, 2020

I was able to fix my corrupted salt installation as follows:

  • Switch to the repo packages: sudo sh bootstrap-salt.sh -M
  • Remove salt packages using apt
  • Find and remove remaining (locally complied) salt binaries: which salt ...

@wolfpackmars2
Copy link
Contributor

Feature Request - might be useful? not sure what all that would entail to implement. uninstalling 'git' based installs could get complicated as there could be differences between salt versions. Pip and Apt based installs should be relatively simple - query whether the pip or system pkgs are installed and then uninstall them using the package manager. can Salt 'un-Salt' itself? 😄

@barbaricyawps
Copy link

This issue is related to #1492

@dmurphy18
Copy link
Contributor

@sjkummer Closing this as duplicate of #1844, will handle it with that feature request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants