Sweet, I did not know about the option to package a Vagrant box. Thanks for this.
If you followed the post on setting up Vagrant, you’ve got a nice working environment, hopefully quite close to the environment where your app is running live.
And now you need to upgrade that environment, so you’d like to upgrade your box alongside. In my case, I’m upgrading my app from Ruby 1.9.2 to Ruby 2.0 on Heroku, so I’d like to upgrade my Ubuntu VM too. This post will cover first the upgrade to Ruby 2.0, and then saving the upgraded box.
First we use apt-get to ensure that all of our installed software is up to date.
$ sudo apt-get update
Then we install some prerequisites: the build essentials, ZLib, Git.
$ sudo apt-get install build-essential zlib1g-dev git-core
I don’t want to simply upgrade Ruby, I’d like to go back and forth between the 2 versions while testing the upgrade. There are 2 recommended tools for…
View original post 231 more words