Mr. Mott’s article on Fedora Magazine tells us to prepend sudo to install Vagrant plugins like in sudo vagrant plugin install vagrant-libvirt
, why is that? What would be wrong with running vagrant plugin install vagrant-libvirt
as a regular user?
In any case, running vagrant plugin uninstall x
failed both with and without sudo for vagrant-cachier and vagrant-libvirt. For example:
> [I] ➜ vagrant plugin uninstall vagrant-cachier
> Uninstalling the 'vagrant-cachier' plugin...
> Traceback (most recent call last):
> 23: from /usr/share/vagrant/gems/bin/vagrant:23:in `<main>'
> 22: from /usr/share/vagrant/gems/bin/vagrant:23:in `load'
> 21: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/bin/vagrant:205:in `<top (required)>'
> 20: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/environment.rb:290:in `cli'
> 19: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/cli.rb:67:in `execute'
> 18: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/plugins/commands/plugin/command/root.rb:66:in `execute'
> 17: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/plugins/commands/plugin/command/uninstall.rb:25:in `execute'
> 16: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/plugins/commands/plugin/command/uninstall.rb:25:in `each'
> 15: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/plugins/commands/plugin/command/uninstall.rb:26:in `block in execute'
> 14: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/plugins/commands/plugin/command/base.rb:14:in `action'
> 13: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in `run'
> 12: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/util/busy.rb:19:in `busy'
> 11: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in `block in run'
> 10: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/action/builder.rb:116:in `call'
> 9: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in `call'
> 8: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/plugins/commands/plugin/action/plugin_exists_check.rb:20:in `call'
> 7: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in `call'
> 6: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/plugins/commands/plugin/action/uninstall_plugin.rb:18:in `call' 5: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/plugin/manager.rb:211:in `uninstall_plugin'
> 4: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/bundler.rb:435:in `clean'
> 3: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/bundler.rb:435:in `each'
> 2: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/bundler.rb:444:in `block in clean'
> 1: from /usr/share/rubygems/rubygems/uninstaller.rb:161:in `uninstall_gem'
> /usr/share/rubygems/rubygems/uninstaller.rb:263:in `remove': uninitialized constant Gem::RDoc (NameError)
I am also sharing my notes on using Vagrant & friends.