Five days ago, a new version of Homestead (version 0.4.1) was released in VagrantCloud. When you vagrant up your machine, you might see messages like this:
It is important that you keep the Homestead basebox installed in your local machine up to date, since this often contains latest versions of PHP, NodeJS and other toolset that you needed to take advantage of the newest Laravel features.
Downloading the latest version of Homestead
To update the version, assuming you had cloned the homestead repository on ~/Homestead folder. It is a very straight forward process:
This will download the latest version of homestead
Once the download completed, you will be able to see the latest version by issuing vagrant box list command:
Updating your Homestead Machine
Note that after you had downloaded the latest version of Homestead, it doesn't automatically updates the virtual machine you are currently using. You have to destroy the currently running VM and re-provision it:
WARNING: all the databases and data inside your Homestead machine will all be gone, so make sure to export it before proceeding!
To rebuild your machine, you can issue vagrant up.
Purging old versions
You might want to delete the older base boxes as it may fill your disk space. To do so:
And that's it, you are done!
Did you find this useful?
I'm always happy to help! You can show your support and appreciation by Buying me a coffee (I love coffee!).