0

別のアカウントにインストールできるように、Homebrew を削除しようとしています。しかし、どこかで私は台無しにしたに違いありません。FAQ のアンインストールのヒントに従いましたが、部分的に削除できたと思います。今、brew doctor を試すと、次のようになります。

-bash: brew: command not found

したがって、部分的にアンインストールされていると思います。しかし、Homebrew インストール スクリプトを実行すると、次のメッセージが表示されます。

It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup

だから私は rm -rf /usr/local/Cellar /usr/local/.git && brew クリーンアップを試して取得します:

rm: /usr/local/.git/branches: Permission denied
rm: /usr/local/.git/config: Permission denied
rm: /usr/local/.git/description: Permission denied
rm: /usr/local/.git/FETCH_HEAD: Permission denied
rm: /usr/local/.git/HEAD: Permission denied
rm: /usr/local/.git/hooks/applypatch-msg.sample: Permission denied
rm: /usr/local/.git/hooks/commit-msg.sample: Permission denied
rm: /usr/local/.git/hooks/post-update.sample: Permission denied
rm: /usr/local/.git/hooks/pre-applypatch.sample: Permission denied
rm: /usr/local/.git/hooks/pre-commit.sample: Permission denied
rm: /usr/local/.git/hooks/pre-rebase.sample: Permission denied
rm: /usr/local/.git/hooks/prepare-commit-msg.sample: Permission denied
rm: /usr/local/.git/hooks/update.sample: Permission denied
rm: /usr/local/.git/hooks: Permission denied
rm: /usr/local/.git/info/exclude: Permission denied
rm: /usr/local/.git/info: Permission denied
rm: /usr/local/.git/logs/refs/remotes/origin/master: Permission denied
rm: /usr/local/.git/logs/refs/remotes/origin: Permission denied
rm: /usr/local/.git/logs/refs/remotes: Permission denied
rm: /usr/local/.git/logs/refs: Permission denied
rm: /usr/local/.git/logs: Permission denied
rm: /usr/local/.git/objects/info: Permission denied
rm: /usr/local/.git/objects/pack/pack-f61919e44996693539de9ee7986ee3c78a0b7c2a.idx: Permission denied
rm: /usr/local/.git/objects/pack/pack-f61919e44996693539de9ee7986ee3c78a0b7c2a.pack: Permission denied
rm: /usr/local/.git/objects/pack: Permission denied
rm: /usr/local/.git/objects: Permission denied
rm: /usr/local/.git/refs/heads: Permission denied
rm: /usr/local/.git/refs/remotes/origin/master: Permission denied
rm: /usr/local/.git/refs/remotes/origin: Permission denied
rm: /usr/local/.git/refs/remotes: Permission denied
rm: /usr/local/.git/refs/tags: Permission denied
rm: /usr/local/.git/refs: Permission denied
rm: /usr/local/.git: Directory not empty

何をすべきかについてのアイデアがなくなったので、再インストールできます。私は端末コマンドに精通していないので、単純なものが欠けているかもしれませんが、提案をお願いします。

4

1 に答える 1

2

試す

sudo rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup

その場合、許可が必要です。ただし、brew cleanupbrew コマンドが存在しない場合はとにかく機能しません。しかし、その後で Homebrew を再インストールできるようになるかもしれません。

于 2012-12-09T12:41:02.077 に答える