Closed LalatenduMohanty closed 7 years ago
I hit this issue as well. I got around it with
$ vagrant ssh
$ sudo ln -s /etc/dnf/dnf.conf /etc/yum.conf
$ exit
$ vagrant reload
Not the best, but appears to suffice.
As a workaround, I've tried the following that might be working (not fully sure, since I'm a newbee wrt dnf), in the Vagrantfile:
config.vm.provision "shell", inline: <<-SHELL
sudo echo "keepcache=True" >> /etc/dnf/dnf.conf
sudo rm -fr /var/cache/dnf
sudo ln -s /tmp/vagrant-cache/dnf /var/cache/dnf
SHELL
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
config.cache.auto_detect = false
end
Missed this patch here. I wrote my own DNF plugin in #180. It also fixes the DNF/Yum problem by checking if DNF or Yum is installed on the machine.
Fixed in #180
@rmohr Will the DNF plugin be included in a release tag?
While trying to use Fedora Vagrant boxes (https://atlas.hashicorp.com/fedora/) with libvirt provider
I got below error because :
sudo bash -c "echo 'keepcache=true' >> /etc/dnf/dnf.conf"
DNF is the default package manager for currently supported (from Fedora Project) Fedora releases i.e. Fedora 22 and 23 (21 's support is ending on Dec 4th 2015). However DNF is introduced from Fedora 18. refer : https://fedoraproject.org/wiki/Changes/ReplaceYumWithDNF