I have downloaded Homestead box thrid time this month by using vagrant box add laravel/homestead. I currently do not have access to fast internet so its pretty much annoying to download it everytime. Is there a way to use the downloaded package again and include the local package in vagrant , it dosent matters if projects or synced locations are preserved or not.
I am on Ubuntu machine if that matters.
Update : I need the downloaded Homestead box so that if my machine goes down or I have to install it somewhere else with no/slow internet connectivity , I can do it locally.
Oh that's pretty easy.
To pack up your currently installed box back into a .box file (while keeping it installed on your system) just use vagrant box list
to find the box name, provider, and version.
Then use vagrant box repackage <name> <provider> <version>
and it will pack it up into a file called package.box.
Hope This Helped !
A better way to do it is :
Vagrant init
vagrant package --output mynew.box
You will get the box packaged into the mynew.box file which you can even copy and share with your other developers. This is pretty useful in my opinion where you have slower internet speed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With