Is there a way to install a newer version than in the repository?
Ubuntu installs vagrant 1.4.3 at the moment, but I need at least 1.5
Is there a way to install a newer version than in the repository?
Ubuntu installs vagrant 1.4.3 at the moment, but I need at least 1.5
Check out the Vagrant downloads page. It has a 1.7.1 available.
@rubo77's answer is good for a quick and dirty fix.
I prefer to upgrade single packages from future versions with a bit more finesse.
Advantages of this approach:
"apt-get upgrade" will track the vivid version of vagrant for security updates, bug fixes, etc.
Nothing will get updated to the vivid versions unless you specify [package-name]/vivid on the apt command-line
After this change, you don't have to back out the changes to the configs and you can easily get other packages from vivid on demand
First, set the pin preference to 99 (below the manual-install-only threshold) for the vivid release:
Second, create a repo sources file pointing to the vivid repos:
Now update the package indexes:
At this point,
apt-cache policy
will show us that the system is aware of the package in the vivid repo, but will not automatically install any of them (because of the priority "99"):Now you can install the more recent version manually with "apt-get install [package]/[release]:
Install vagrant from Ubuntu 15.04 beta by changing the sources to
vivid
for the install:This will install vagrant 1.6.5 at the moment
I've created a repository at http://vagrant-deb.linestarve.com/ which provides the latest packages from vagrantup.com so you don't have to update manually.
These are the same files as on the Vagrant download page, just put into a repository.
Change the version number to the latest version