Skip to content
This repository has been archived by the owner. It is now read-only.

Uninstall script? #46

Closed
pirog opened this issue Jul 16, 2014 · 17 comments
Closed

Uninstall script? #46

pirog opened this issue Jul 16, 2014 · 17 comments

Comments

@pirog
Copy link

@pirog pirog commented Jul 16, 2014

Any thoughts to packaging in or providing an uninstall script?

@pirog
Copy link
Author

@pirog pirog commented Jul 16, 2014

Based on a crude overview these are some of the things that an uninstall could/would theoretically do

  1. boot2docker destroy
  2. Uninstall VirtualBox (VB dmg has a nice uninstall.tool)
  3. Remove Boot2Docker app
  4. Remove boot2docker/docker binaries
  5. Remve ~/.boot2docker

Does the pkg install things other places that i am missing here?

@pirog
Copy link
Author

@pirog pirog commented Jul 16, 2014

I just added a basic uninstaller to the kalastack-docker project which may be useful for this too. Let me know if you want me to submit a PR and where to put it and i will do so:
pirog/kalabox-docker-poc@c9bbaf5

@SvenDowideit
Copy link
Contributor

@SvenDowideit SvenDowideit commented Jul 16, 2014

/usr/local/share/boot2docker/boot2docker.iso (well, get rid of the dir, i'm thinking of throwing more in there over time :))

Does this mean that OSX installers don't have a gui uninstaller? mmmm, i wonder if I should just write an uninstall apple-script GUI?

@pirog
Copy link
Author

@pirog pirog commented Jul 17, 2014

I don't think GUI uninstallers are very common in OSX. Generally you just trash the .app and call it a day.
That said, more complicated apps a la vagrant and virtualbox ship ship with a uninstall.tool with their DMGs. The tool is usually just an executable bash script which is the example we are following for now on the kalastack-docker project.

Writing a simple apple script based uninstaller gui could certainly work as well :)

@SvenDowideit
Copy link
Contributor

@SvenDowideit SvenDowideit commented Jul 18, 2014

in that case, if you beat me to a PR (not hard these days) YAY ;)

@pirog
Copy link
Author

@pirog pirog commented Jul 22, 2014

I've got time to work on these things this week so i'll try to throw something up!

@pirog
Copy link
Author

@pirog pirog commented Jul 22, 2014

One thing to also consider here is usually an uninstall.tool script gets packaged into a dmg. It looks like our release here is a .pkg so we would have to rejig whatever we are doing for packaging to build a dmg that includes the uninstall.tool.

We could also just leave the script in the repo and note its usage in documentation.

@SvenDowideit
Copy link
Contributor

@SvenDowideit SvenDowideit commented Jul 22, 2014

I'd just toss it into /usr/local/bin/boot2docker-uninstall - the .pkg already contains multiple files :)

@pirog
Copy link
Author

@pirog pirog commented Aug 2, 2014

sounds good! haven't had time to do this yet but am still game.

@Caf
Copy link

@Caf Caf commented Aug 8, 2014

I need to uninstall it from one of my Mac, can't wait to try it. ;)

@psykzz
Copy link

@psykzz psykzz commented Sep 2, 2014

For future

boot2docker stop
boot2docker delete
sudo rm /usr/local/bin/boot2docker
rm -rf ~/.boot2docker
rm -rf /usr/local/share/boot2docker

@SvenDowideit
Copy link
Contributor

@SvenDowideit SvenDowideit commented Sep 4, 2014

and

sudo rm /usr/local/bin/docker

@huangsam
Copy link
Contributor

@huangsam huangsam commented Sep 22, 2014

To summarize:

#!/bin/bash

# Stop boot2docker processes
boot2docker stop
boot2docker delete

# Remove boot2docker executable
sudo rm /usr/local/bin/boot2docker

# Remove boot2docker ISO and socket files
rm -rf ~/.boot2docker
rm -rf /usr/local/share/boot2docker

# Remove Docker executable
sudo rm /usr/local/bin/docker

I recall you were interested in a pull request @SvenDowideit. Where would you like this artifact be placed? I'm wondering if it should be a curl-able script.

@SvenDowideit
Copy link
Contributor

@SvenDowideit SvenDowideit commented Sep 24, 2014

i'd put it into the osx installer...

@therealmarv
Copy link

@therealmarv therealmarv commented Oct 6, 2014

Thanks @huangsam ! This bothered me so much (I really hate pkg without uninstallers) I've even written a blog post about this issue (before discovering it here). Hope this gets accepted soon!

@tianon tianon closed this in #71 Oct 9, 2014
@karantir
Copy link

@karantir karantir commented Feb 4, 2015

And keys:

rm -rf ~/.ssh/id_boot2docker*

@huangsam
Copy link
Contributor

@huangsam huangsam commented Feb 4, 2015

@karantir that was already covered in uninstall.sh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

7 participants