How to Install Manually Downloaded .box for Vagran

2019-01-16 10:37发布

问题:

I manage to install Vagrant on my Ubuntu 14.04 LTS pc. How can I install vagrant box which I downloaded manually from a URL? I want to install Laravel Homestead but it will always fail because of my network connection. I want to download it from this link https://vagrantcloud.com/laravel/boxes/homestead/versions/11/providers/virtualbox.box but I don't know what to do after I downloaded the box.

回答1:

You can install downloaded box using this command

vagrant box add laravel/homestead path/to/your/box/file.box

Source: https://laracasts.com/forum/?p=1615-laravel-vagrant-homestead/0



回答2:

I am able to run this command on win7:

box add homestead file:///c:/homestead.box

Also this one is working:

box add homestead file:///c:\homestead.box