Vagrant uninstall mac os

Mwpgs

Для чего нужен синтаксис @ Html.DisplayFor?
Сравнение двух массивов и получение значений, которые не являются общими
Как продублировать оценщик, чтобы использовать его на нескольких наборах данных?
Как автоматически прокручивать вниз в Java Swing
Параметры командной строки Sourcesafe
Python: проверьте, существует ли объект в области видимости

Удалить vagrant на Mac

Я хочу удалить Vagrant на Mac под управлением El Capitan.

Документы Vagrant говорят:

В Mac OS X удалите каталог / Applications / Vagrant и файл / usr / bin / vagrant. Также выполните sudo pkgutil —forget com.vagrant.vagrant, чтобы OS X забыла, что Vagrant когда-либо устанавливался.

Однако нет каталога и нет файла :

Я переустановил Vagrant 1.7.4, чтобы убедиться, что он действительно там, и могу проверить:

Есть идеи, что случилось? Документы только что устарели?

  • как ты установил? с менеджером пакетов вроде homebrew?
  • 1 @ FrédéricHenri — Я установил с помощью установщика Vagrant.
  • vagrantup.com/docs/installation/uninstallation.html

Загрузите установщик еще раз. В нем есть сценарий удаления под названием uninstall.tool

Запустите деинсталлятор из терминала: ./uninstall.tool

Используйте это на Mac OSX

Команда Vagrant опубликовала подробные инструкции для всех платформ:

  • 1 Это приемлемый ответ по состоянию на май 2019 года. На всякий случай, если вам нужно запустить с sudo или просто проверить его, когда вы нажимаете на загруженный вами бродячий файл dmg и открывается окно установки приложения, вы можете перемещаться по в uninstall.tool с вашего терминала.

Используйте эту инструкцию для Linux:

    Помог мне. После « rm -rf / Applications / Vagrant rm -f / usr / local / bin / vagrant sudo pkgutil —forget com.vagrant.vagrant rm -rf

/ .vagrant.d » все еще был доступен vagrant.

Источник

» Uninstalling Vagrant

Uninstalling Vagrant is easy and straightforward. You can either uninstall the Vagrant binary, the user data, or both. The sections below cover how to do this on every platform.

» Removing the Vagrant Program

Removing the Vagrant program will remove the vagrant binary and all dependencies from your machine. After uninstalling the program, you can always reinstall again using standard methods. Uninstalling Vagrant will not remove user data. The section below this one gives more detailed instructions on how to remove that directory from your system.

On Windows

Uninstall using the add/remove programs section of the control panel

On Mac OS X:

On Linux:

» Removing User Data

Removing the user data will remove all boxes, plugins, license files, and any stored state that may be used by Vagrant. Removing the user data effectively makes Vagrant think it is a fresh install.

On all platforms, this directory is located in the root of your home directory, and is named vagrant.d . Simply remove the

/.vagrant.d directory to delete the user data. If on Windows, this directory is located at C:\Users\YourUsername\.vagrant.d , where YourUsername is the username of your local user.

When debugging, the Vagrant support team may ask you to remove this directory. Before removing this directory, please make a backup.

Running Vagrant will automatically regenerate any data necessary to run, so it is safe to remove the user data at any time.

Источник

How to properly uninstall VVV? #1372

Comments

cagross commented Nov 29, 2017

What is the suggested method of completely uninstalling VVV from my computer?

Expected Behavior

Current Behavior

Possible Solution

I assume I will need to uninstall both Vagrant and Oracle VM VirtualBox. Is there anything else I need to uninstall? What about files/directories to manually remove—are there any? Are there considerations I have to take with my Windows hosts file (or any other files)?

Читайте также:  Vfs495 fingerprint reader linux

Steps to Reproduce (for bugs)

Context

In this case, I would like to uninstall VVV so I can in-turn re-install it from scratch. I think one or more of the supporting programs may have become corrupted on my computer (due to an unrelated issue with my operating system).

Your Environment

  • VVV version: 2.2.0
  • VVV Git Branch:
  • Vagrant version: 1.8.6
  • VM Provider name: VirtualBox
  • VM Provider version: 5.1.30
  • Operating System and version: Windows 10, x64

The text was updated successfully, but these errors were encountered:

tomjn commented Nov 29, 2017

In this case, I would like to uninstall VVV so I can in-turn re-install it from scratch.

Then you have 2 options:

Halt will turn off the VM, at which point you can then uninstall and reinstall Vagrant and vagrant plugins.

Destroy will delete the VM in Virtualbox, but keep in mind uninstalling Virtualbox will do this anyway, and there’s no difference when uninstalling and reinstalling Vagrant anyway.

The actual VVV folder itself needn’t be deleted for what you’re trying to do, but if you really want to uninstall VVV completely, delete the VM and the VVV folder. You might also want to remove the box used, see the troubleshooting part of the docs for a block of commands that will do that and then re-setup VVV

Also keep in mind that VirtualBox 5.1.3.x and Vagrant 2.0 running under Windows has a networking bug, I’d recommend using the highest version of 5.2.x you can get, and uninstalling Vagrant before upgrading to 2.0

tomjn commented Nov 29, 2017

Also, if you’re encountering issues, copy paste them here, I might be able to point you in a specific direction

cagross commented Nov 29, 2017 •

Thanks very much for the reply.

Also, if you’re encountering issues, copy paste them here, I might be able to point you in a specific direction

OK, I’m up for that. Per your suggestion, before carrying out any uninstall steps, I had a look at the «Starting from Fresh» instructions on the Troubleshooting page. I tried following the instructions, but encountered an error with the first step ( git pull ). If you’re up for it, I’d love to walk through those steps with you and resolve resolve any issues.

Before we get too sidetracked though, how about we mark this particular issue as resolved so I can then open a new one with my specific git pull issue? Does that sound reasonable? Or should we carry on our discussion here? I’ll defer to you and/or the mods on how to proceed..

edit: I actually resolved my git pull issue, but have another question regarding updating Vagrant.

tomjn commented Nov 29, 2017

hmmm what issue are you encountering updating Vagrant? Have you used the uninstaller then reinstalled or did you install over the top of an older version?

cagross commented Nov 29, 2017

Have you used the uninstaller then reinstalled or did you install over the top of an older version?

I actually didn’t follow any of your uninstall steps (sorry!). I saw the Starting from Fresh instructions and decided to first have a go at them. From those instructions, I ran:

git pull
vagrant halt
vagrant destroy

all without issue. I then ran vagrant box update and it completed without issue. But shouldn’t this step have updated my version of Vagrant to the latest version (v 2.0.1)? If I check my current Vagrant version, it is still v1.8.6. Or am I misunderstanding something?

I have not carried out any of the remaining steps. I wanted to first understand what was happening here.

tomjn commented Nov 29, 2017

vagrant box update doesn’t upgrade Vagrant itself, it updates the box used as a base for the VM, in this case the Ubuntu box. When you provision the VVV box it doesn’t start from an empty container, it starts from a pre-filled box with an install of Ubuntu, destroying and reprovisioning VVV lets you use the updated box with whatever security updates have been pulled down in the new Ubuntu box

Читайте также:  What is spaces in mac os

To update Vagrant itself you need to download it from vagrantup.com

cagross commented Nov 29, 2017 •

OK thanks for that info. Progress is being made, slowly but surely.

To update Vagrant itself you need to download it from vagrantup.com

I did this, and in the process confirmed that my installation of Vagrant had become corrupt. I was able to uninstall it, then install the latest version. I also updated Oracle VM to the latest version as well (v5.2).

On the next step though ( vagrant plugin install vagrant-triggers vagrant-vbguest vagrant-hostsupdater ), an error was returned:

Thoughts? Should I try to resolve these? If so, how?

tomjn commented Nov 30, 2017

This is the uninstall reinstall problem, upgrading to Vagrant 2.0 can do this if you don’t do it cleanly. Uninstall Vagrant completely then install Vagrant 2.0

cagross commented Nov 30, 2017

Uninstall Vagrant completely then install Vagrant 2.0

That’s actually what I did in this case—I uninstalled my existing Vagrant, then downloaded and installed the latest version. I can try it again though for posterity if you think it will help.

tomjn commented Dec 1, 2017

If it worked for you then great, it’s just a cleaner way of doing the same thing. I’ve documented it on the main site, so I’m going to close this out for now

cagross commented Dec 1, 2017

If it worked for you then great, it’s just a cleaner way of doing the same thing.

Sorry for the confusion. But what I was trying to say was that I already carried out full uninstall/reinstall of Vagrant, and I’m still experiencing the plugin install error. I can open a new issue about it if you’d like.

tomjn commented Dec 1, 2017

I think some research and investigation is needed, tbh I’m not sure what else I can advise as it’s a general Vagrant problem, not something specific to VVV. It sounds like when uninstalling Vagrant it doesn’t completely uninstall everything, either that or there’s some Ruby based shenanigans going on with your machine that’s not detailed here

cagross commented Dec 1, 2017

it’s a general Vagrant problem, not something specific to VVV.

OK that statement is helpful actually. Perhaps I can try posting to a general Vagrant forum (e.g. the Vagrant Google Group).

cagross commented Feb 21, 2019

Sorry for re-opening this, but I wanted to get some clarification on the uninstall steps you gave earlier. To be clear, I’m looking to completely uninstall VVV, all of its components, and remove all associated files (so i can re-install). Would it be sufficient to carry out these steps:

Uninstall VirtualBox (since this will carry out a vagrant destroy )

Delete my VVV folder.

Ensure the C:\Users \VirtualBox VMs folder is deleted (as per the Troubleshooting documentation).

Would that be a complete uninstall, or would I be missing anything?

To be clear, I’m doing this as part of troubleshooting related to this previous issue I raised about long TTFB. I just created a new VVV site from scratch, and began to experience the same issue, this time after installing the Avada theme. So as a last ditch effort, I’m going to try a complete uninstall and re-install, and see if that doesn’t resolve the issue.

tomjn commented Feb 21, 2019 •

  • Uninstall VirtualBox (since this will carry out a vagrant destroy )
  • Uninstall Vagrant.

These steps are a tad over the top, and a bit like removing the bottom 2 layers of a Jenga tower, it’s anything but clean ( which appears to be your goal. vagrant destroy lets Vagrant do all the cleanup it needs, but by removing VirtualBox first, you mess with that. Treat it like an Onion, you’ve built layers up, so tear them down in the right order, don’t start at the foundations first, it’s messy

I just created a new VVV site from scratch, and began to experience the same issue, this time after installing the Avada theme.

Of course switching from a default theme to Avada will make things slower. There are faulty expectations at play here. VVV performance is not linear, nor is any other host. They all have things they excel or not excel at, much like some cars have better torque, some have better breaks, some are faster, some are more efficient. Avada will be doing things other themes don’t, those might not play to the strengths of your local machine.

Читайте также:  Windows mobile with exchange

For example, some users take a very long time to provision VVV due to spinning mechanical disks. Others don’t have good network connections ( or antivirus and firewalls that meddle with it ).

Some themes are faster than others, and they’re faster or slower for different reasons. You will never get identical performance to a remote host, or even between remote hosts, and the chances of a complete refresh uninstalling VirtualBox Vagrant etc changing this are low in the extremes.

I know you want it to be just as fast, but you are at the mercy of what the code does, and the local hardware available to you. Fundamentally though, you have yet to actually identify what is slow beyond a Product name, except in scenarios where I would expect it to be slow for any or all hosts purely because of the way it was done ( e.g. remote requests, your computer isn’t in a data centre on an internet backbone so of course a request to Instagram will be much slower than from say a SiteGround or GoDaddy server, if only because there’s a greater number of hops, eitherway it’s bad on all hosts ).

I know it’s frustrating, and your main reason for using local dev environments is it’s faster than developing in production (there are many other good reasons to use local dev), but I don’t think you have realistic expectations, and there are so many unknown variables. For all I know your machine has lots of RAM and you’ve 10 other environments running in the background. You might have 200 chrome tabs open ( easily done ), a strange filesystem, or even that you never bothered to install the Oracle VirtualBox Extension pack and it’s interacting strangely.

In all likelihood the culprit is that you didn’t spend $2000 on a server grade CPU, but you’re comparing your local computers CPU to that of a dedicated server with 5x as many CPU cores and much greater processing power that can juggle 100 sites effortlessly on a streamlined server OS that doesn’t have to render a window manager etc. Production is fast for some things especially when you have it optimised for a particular task

We already know for a fact that a handful of cases you’ve mentioned are down to poor developer practice by the plugin author, or doing things that fundamentally aren’t fast. Right now unless you can identify something specific ( and not a product or brand name ), there really isn’t much that can be done short of getting faster hardware. I need to see something specific, to know that Avada is slower than 2019 really doesn’t tell me much, what is it doing that’s slower? Which part of Avada specifically? Can it be isolated down to a specific function? And replicated locally without needing things such as remote requests or stupidly expensive queries? If it is queries, can you time them and compare them against other results in equivalent environments? E.g. Chassis, Docker, MAMP, etc. There’s too much feeling, lots of super high level general data, no specifics.

If you want to remove a VVV install:

  1. Run vagrant destroy
  2. Remove the VVV folder

That should be all that’s necessary. Reinstalling VirtualBox and Vagrant is for when either of them are broken, do not expect performance gains from doing it. Updating them and VVV to the latest versions might do that, but no guarantees.

Источник

Оцените статью