从Windows系统中清除Homestead和Vagrant的最干净的方法是什么?

编程入门 行业动态 更新时间:2024-10-09 09:23:29
本文介绍了从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系统上〜/ poser)。

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 poser/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 (~/poser on Mac/Linux systems).

更多推荐

从Windows系统中清除Homestead和Vagrant的最干净的方法是什么?

本文发布于:2023-10-19 17:41:56,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:干净   方法   系统   Windows   Vagrant

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!