从 Windows 系统中删除 Homestead 和 Vagrant 最干净的方法是什么? [英] What's the cleanest way to remove Homestead and Vagrant from a Windows system?

查看:171
本文介绍了从 Windows 系统中删除 Homestead 和 Vagrant 最干净的方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照 Laravel 文档 中的说明在 Windows 10 上安装 Vagrant 和 Homestead,但现在我决定将整个开发工作转移到另一台运行 Debian 的专用服务器上.

I followed the instructions in Laravel docs to install Vagrant and Homestead on Windows 10, but now I've decided to move the whole development stuff to another dedicated server running Debian.

我需要从 Windows 10 桌面完全删除 Vagrant、Homestead、Composer 以及 AMPPS(旧东西).简单地卸载 Vagrant 和 AMPPS 应该很容易,但是我该如何清理剩余的东西呢?

I need to fully remove Vagrant, Homestead, Composer as well as AMPPS (old stuff) from the Windows 10 desktop. It should be easy to simply uninstall Vagrant and AMPPS, but how do I go about cleaning up the remaining things?

我不需要保留任何代码等.我已经把它放在不同的位置了.

I don't need to keep any of the code etc. I've already got that in a different location.

推荐答案

虚拟机

通过运行删除宅基地虚拟机

Remove the homestead VM by running

vagrant box remove laravel/homestead

<小时>

家园

如果您通过 composer 使用以下命令安装 Homestead:

If you installed Homestead via composer with the following command:

composer global require laravel/homestead

执行相反的操作将其删除:

run the opposite to remove it:

composer remove laravel/homestead

这将删除 .composer/vendor/laravel 目录,包括它的 'homestead' 子目录.'global' 关键字不是必需的.

This will remove the .composer/vendor/laravel directory, including its 'homestead' subdirectory. The 'global' keyword is not required.

在 Mac 或 Linux 系统上,可以通过删除~/.homestead"目录来删除 Homestead 配置文件.您可能需要稍微搜索一下才能在 Windows 系统上找到该目录.找不到也不要太担心;该目录很小且无害.

On a Mac or Linux system, the Homestead configuration files can be removed by deleting the '~/.homestead' directory. You may need to hunt a little to find the directory on your Windows system. Don't worry too much if you can't find it; the directory is small and innocuous.

作曲家

Composer 通常作为 Windows 应用程序安装;选中添加/删除程序(或 Windows 10 等效程序)以将其卸载.

Composer is usually installed as a Windows application; check Add/Remove programs (or the Windows 10 equivalent) to uninstall it.

如果您手动安装了 Composer,但它没有出现在您的已安装应用列表中,只需删除composer"二进制文件和配置目录(在 Mac/Linux 系统上为 ~/.composer).

If you installed Composer manually and it does not appear in your list of installed apps, simply remove the 'composer' binary and the configuration directory (~/.composer on Mac/Linux systems).

这篇关于从 Windows 系统中删除 Homestead 和 Vagrant 最干净的方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆