To determine whether your Vagrant is out of date or not, issue:
1
2
3
4
5
$ vagrant version
Installed Version: 1.7.4
Latest Version: 1.7.4
You're running an up-to-date version of Vagrant!
If yours is out of date, you can download it from its download page. However, being a lazy programmer, that’s still too many clicks. I want to figure out a way to update or install Vagrant from the command line without prompt.
And here you go!
Vagrant binaries are distributed by Bintray, its format is:
Make sure to use the full path instead of relative .\vagrant.msi, and Vagrant should be installed in the default location C:\HashiCorp\Vagrant. To find out all possible options, Just type msiexec command only.
Keep a single server up to date is easy, but updating multiple servers at once, you need tools like Ansible. For each server, here is a list of basic steps:
Check if there are packages available to be upgraded
Upgrade all packages to the latest version
Check if a reboot is required
Reboot the server
When we log into the remote server, we might see the message showing the number of packages can be updated. The message is generated by: