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

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

问题描述

我按照 Laravel docs 中的说明在Windows 10上安装Vagrant和Homestead,但现在我决定将整个开发内容移动到运行Debian的另一个专用服务器。



我需要从Windows 10桌面完全删除Vagrant,Homestead,Composer以及AMPPS 。它应该很容易简单卸载Vagrant和AMPPS,但如何去清理剩余的东西?



我不需要保留任何代码等



通过运行

删除宅基VM VM

  vagrant box删除laravel / homestead 






Homestead b
$ b

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

  composer global require laravel / homestead 

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

  composer remove laravel / homestead 

composer / vendor / laravel目录,包括其homestead子目录。不需要'global'关键字。



在Mac或Linux系统上,Homestead配置文件可以通过删除'〜/ .homestead'目录来删除。您可能需要狩猎一点,以找到您的Windows系统上的目录。不要担心太多,如果你找不到它;该目录小而无害。




$ b

b $ b

Composer通常作为Windows应用程序安装;



如果您手动安装了Composer,但它没有出现在已安装的应用程式清单中,请直接移除'composer'二进制和配置目录(Mac / Linux系统上〜/ .composer)。


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.

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.

解决方案

Virtual Machine

Remove the homestead VM by running

vagrant box remove laravel/homestead


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

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

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

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

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天全站免登陆