Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

uninstall was not clean #33

Closed
ssreekanth opened this issue May 8, 2016 · 1 comment
Closed

uninstall was not clean #33

ssreekanth opened this issue May 8, 2016 · 1 comment
Assignees

Comments

@ssreekanth
Copy link

Tried uninstalling linuxbrew on centos 6.5, but saw some warnings/errors -

-e:5: command not found: command -v brew
/usr/bin/find: unknown predicate `-E'

Full output -

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/uninstall)"
-e:5: command not found: command -v brew
Warning: This script will remove:
/home/testuser/.cache/Homebrew/
/home/testuser/.linuxbrew/.git/
/home/testuser/.linuxbrew/.github/
/home/testuser/.linuxbrew/.gitignore
/home/testuser/.linuxbrew/.travis.yml
/home/testuser/.linuxbrew/.yardopts
/home/testuser/.linuxbrew/CODEOFCONDUCT.md
/home/testuser/.linuxbrew/LICENSE.txt
/home/testuser/.linuxbrew/Library/
/home/testuser/.linuxbrew/README.md
/home/testuser/.linuxbrew/bin/brew
/home/testuser/.linuxbrew/etc/bash_completion.d/brew
/home/testuser/.linuxbrew/share/doc/homebrew/
/home/testuser/.linuxbrew/share/man/man1/brew.1
/home/testuser/.linuxbrew/share/zsh/site-functions/_brew
Are you sure you want to uninstall Homebrew? [y/N] y
==> Removing Homebrew installation...
/usr/bin/find: unknown predicate `-E'
Warning: Failed during: /usr/bin/find -E /home/testuser/.linuxbrew/bin /home/testuser/.linuxbrew/etc /home/testuser/.linuxbrew/share -regex .*/info/([^.][^/]*.info|dir) -exec /bin/bash -c /usr/bin/install-info\ --delete\ --quiet\ {}\ "$(dirname\ {})/dir" ;
==> Removing empty directories...
Warning: Homebrew partially uninstalled (but there were steps that failed)!
To finish uninstalling rerun this script with `sudo`.
The following possible Homebrew files were not deleted:
/home/testuser/.linuxbrew/docker.test.yml
/home/testuser/.linuxbrew/Dockerfile
/home/testuser/.linuxbrew/lib64 -> /home/testuser/.linuxbrew/lib
You may consider to remove them by yourself.

Also, it says "To finish uninstalling rerun this script with sudo". Why do we need 'sudo', if we installed brew and other packages locally as normal user?

@rwhogg rwhogg self-assigned this May 8, 2016
@rwhogg
Copy link
Contributor

rwhogg commented May 8, 2016

Thanks a bunch for the bug report @ssreekanth! Nevertheless, marking as a duplicate of #26.

As for the references to sudo, that's because this was forked from Homebrew, where the usual location is /usr/local, which would usually require admin privileges to clean up.

@rwhogg rwhogg closed this as completed May 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants