vagrant-cachier-ng/docs/buckets/dnf.md
Roman Mohr 5141e1305a Add support for DNF
If the folder `/car/cache/dnf` is present, the content will be cached
like in the Yum plugin.

A possible configuration to enable it:

Vagrant.configure(2) do |config|
   config.vm.box = "fedora/24-cloud-base"
  if Vagrant.has_plugin?("vagrant-cachier")
    config.cache.scope = :machine
    config.cache.auto_detect = false
    config.cache.enable :dnf
  end
end
2016-09-23 12:10:29 +02:00

663 B

DNF

Used by Fedora guests, will get configured under guest's /var/cache/dnf. It will also make sure that keepcache is set to 1 on guest's /etc/dnf/dnf.conf.

To manually enable it:

Vagrant.configure("2") do |config|
  config.vm.box = 'some-fedora-box'
  config.cache.enable :dnf
end

⚠️ Notice about Windows hosts ⚠️

In case this bucket is enabled and a Windows host is in use, you might see an ugly stacktrace as described on this comment if some DNF repository is not available during provisioning.