web-dev-qa-db-ja.com

MacでVagrantをアンインストールする

El Capitanを実行しているMacからVagrantをアンインストールしたいのですが。

Vagrant docsは言う:

Mac OS Xでは、/ Applications/Vagrantディレクトリと/ usr/bin/vagrantファイルを削除します。また、Sudo pkgutil --forget com.vagrant.vagrantを実行して、VagrantがインストールされたことをOS Xに忘れさせます。

ただし、/Applications/Vagrantディレクトリはなく、/usr/bin/vagrantファイルもありません。

➜  ~  ls /usr/bin/va*
zsh: no matches found: /usr/bin/va*
➜  ~  ls /Applications/Vagrant
ls: /Applications/Vagrant: No such file or directory

私はそれが実際にそこにあることを確認するためだけにVagrant 1.7.4を再インストールしました、そして私は確認することができます:

➜  ~  vagrant --version
Vagrant 1.7.4

何が起こっているのか?ドキュメントは古くなっていますか?

23
user101289

インストーラーを再度ダウンロードします。にはuninstall.toolというアンインストールスクリプトがあります

ターミナルからアンインストーラを実行します:./uninstall.tool

33
JacoE

Mac osXでこれを使用する

rm -rf /Applications/Vagrant
rm -f /usr/local/bin/vagrant
Sudo pkgutil --forget com.vagrant.vagrant
rm -rf ~/.vagrant.d
10
Ankesh Khemani

Vagrantチームは、すべてのプラットフォームの詳細な手順を公開しています。

https://www.vagrantup.com/docs/installation/uninstallation.html

7
djGrill

Linuxでは、次の手順を使用します。

rm -rf /opt/vagrant
rm -f /usr/bin/vagrant
5
Ean White