MacOS: Steps for Uninstalling Swiftly
Currently, I can't find any uninstall steps for swiftly on MacOS apart from the Upgrade section in README, but I guess this was initially written for linux users? Swiftly does not install under ~/.local/share/swiftly on MacOS, should there be better documentations on how to safely uninstall Swiftly?
There is also issue #84 for add a self-uninstall option to swiftly, which would automate the process.
For macOS, the uninstallation is approximately these steps:
- Remove all installed toolchains (optional) with
swiftly uninstall all - Remove any "Added by swiftly" sections in
~/.zprofile,~/.profile, or~/.bash_profilefiles - Remove the swiftly home and bin directories, default is
~/.swiftpm - Restart your shell
There is also issue #84 for add a self-uninstall option to swiftly, which would automate the process.
For macOS, the uninstallation is approximately these steps:
- Remove all installed toolchains (optional) with
swiftly uninstall all- Remove any "Added by swiftly" sections in
~/.zprofile,~/.profile, or~/.bash_profilefiles- Remove the swiftly home and bin directories, default is
~/.swiftpm- Restart your shell
Hi @cmcgee1024 thank you! Now going towards a 1.0 release have we come to a consensus on what the desired procedure would be? Should we provide an uninstall script like Homebrew does or should we have something like swiftly self uninstall like rustup does. I personally don't mind having uninstallation scripts but was thinking letting the users decide which specific folder to remove was not very straight forward, specially for those new to swift and the ecosystem, and having a packaged command would be a lot more beneficial. Also I'm willing to take on this if no one's working on it already!
In the near term, the manual uninstall procedure should be documented more generally in the README. The longer term plan is #84, which automates this.
In the near term, the manual uninstall procedure should be documented more generally in the README. The longer term plan is #84, which automates this.
Sounds good! Do you mind if I start with a small PR adding deleting instructions to the README?
Do you mind if I start with a small PR adding deleting instructions to the README?
Not at all. Contributions are welcome for this.