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 bazel, if had install bazel like (without --user) "sudo bash bazel-0.1.4-installer-linux-x86_64.sh " #962

Open
andyyuan78 opened this issue Feb 23, 2016 · 13 comments

Comments

@andyyuan78
Copy link

commented Feb 23, 2016

No description provided.

@andyyuan78 andyyuan78 changed the title how to uninstall bazel, if had install bazel like "sudo bash bazel-0.1.4-installer-linux-x86_64.sh " how to uninstall bazel, if had install bazel like (without --user) "sudo bash bazel-0.1.4-installer-linux-x86_64.sh " Feb 23, 2016
@damienmg

This comment has been minimized.

Copy link
Contributor

commented Feb 26, 2016

Be careful when executing the command as mistyped can lead to catastrophic issues:

rm $HOME/.cache/bazel -fr
sudo rm /usr/local/bin/bazel /etc/bazelrc /usr/local/lib/bazel -fr
@damienmg

This comment has been minimized.

Copy link
Contributor

commented Feb 26, 2016

I am not sure we should document it that way but maybe we should add a --uninstall option to the installer (not sure either). These stuff are kind of dangerous.

@damienmg damienmg removed their assignment Feb 26, 2016
@andyyuan78

This comment has been minimized.

Copy link
Author

commented Feb 27, 2016

thanks

@andyyuan78 andyyuan78 closed this Feb 27, 2016
@damienmg

This comment has been minimized.

Copy link
Contributor

commented Feb 27, 2016

Let's keep this open until we actually figure out how to correctly do it.

@lan2720

This comment has been minimized.

Copy link

commented Nov 5, 2016

@damienmg After

rm $HOME/.cache/bazel -fr
sudo rm /usr/local/bin/bazel /etc/bazelrc /usr/local/lib/bazel -fr
~/.cache/bazel

I can still run the cmdbazel version. Why?? Didn't remove completely?

@sankit1

This comment has been minimized.

Copy link

commented Apr 17, 2018

Find the bazel install by running:
find / -name "Bazel"

This will return the path to the bin file of bazel like: /user/bin/bazel.

Be careful in this step and only do if you know what you are doing:
rm -rf /user/bin/bazel

@venuswu

This comment has been minimized.

Copy link

commented Aug 22, 2018

so ugly.

@yellowyellowyao

This comment has been minimized.

Copy link

commented Dec 15, 2018

I use ubuntu16.04
maybe you can do this:

which bazel

then it will return bazel's directory,do this:

sudo rm -rf your-directory

@jin jin added untriaged team-Bazel and removed P3 labels Dec 15, 2018
@jin

This comment has been minimized.

Copy link
Member

commented Dec 15, 2018

@yellowyellowyao please do not do that, you might end up removing other unrelated files in that directory. If it's an important directory like /usr/local/bin, you may end up removing binaries your system depends on.

@jin

This comment has been minimized.

Copy link
Member

commented Dec 15, 2018

@aiuto I'm marking this as a p2 because it'll be great to have a better set of instructions on uninstallation.

@jin jin added P2 and removed untriaged labels Dec 15, 2018
@windmaple

This comment has been minimized.

Copy link

commented Dec 24, 2018

such an ugly way to uninstall

@eanmikale

This comment has been minimized.

Copy link

commented Aug 22, 2019

sudo apt-get --purge remove bazel - Worked like a charm. Needed to revert from 0.28 to 0.26. Hope this helps someone else!

@jin

This comment has been minimized.

Copy link
Member

commented Aug 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.