Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update a Vagrant Box?

I have updated a box vagrant box update and now when I run vagrant up it boots into the old box. How can I update my box to use the newer version?

like image 546
Steven Avatar asked Sep 18 '14 13:09

Steven


People also ask

How do I update my vagrant box?

Command: vagrant box update This command updates the box for the current Vagrant environment if there are updates available. The command can also update a specific box (outside of an active Vagrant environment), by specifying the --box flag. Note that updating the box will not update an already-running Vagrant machine.

What is a box in vagrant?

Boxes are the package format for Vagrant environments. A box can be used by anyone on any platform that Vagrant supports to bring up an identical working environment. The vagrant box utility provides all the functionality for managing boxes.

What is the command to start a vagrant box?

1 - Vagrant Init In this example, I want to create a very basic Vagrantfile based on a box used from Vagrant Cloud. To do this I simply run vagrant init with the box address. `vagrantup.com` for more information on using Vagrant. Just like that I have enough to boot up a Vagrant box on my local machine.


1 Answers

From the Vagrant docs:

Finally, you can update boxes with vagrant box update. This will download and install the new box. This will not magically update running Vagrant environments. If a Vagrant environment is already running, you'll have to destroy and recreate it to acquire the new updates in the box. The update command just downloads these updates locally.

like image 72
Reezy Avatar answered Oct 02 '22 17:10

Reezy