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

Comments

Projects
None yet
7 participants
@pirog

pirog commented Jul 16, 2014

Any thoughts to packaging in or providing an uninstall script?

@pirog

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

Contributor

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

This comment has been minimized.

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

This comment has been minimized.

Contributor

SvenDowideit commented Jul 18, 2014

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

@pirog

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

Contributor

SvenDowideit commented Jul 22, 2014

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

@pirog

This comment has been minimized.

pirog commented Aug 2, 2014

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

@Caf

This comment has been minimized.

Caf commented Aug 8, 2014

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

@psykzz

This comment has been minimized.

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

This comment has been minimized.

Contributor

SvenDowideit commented Sep 4, 2014

and

sudo rm /usr/local/bin/docker
@huangsam

This comment has been minimized.

Contributor

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

This comment has been minimized.

Contributor

SvenDowideit commented Sep 24, 2014

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

@therealmarv

This comment has been minimized.

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

This comment has been minimized.

karantir commented Feb 4, 2015

And keys:

rm -rf ~/.ssh/id_boot2docker*
@huangsam

This comment has been minimized.

Contributor

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.