Configuration
As mentioned in the parameters section, it is possible to specify the specific source that is used when installing a tool. If you always use the same alternative source, doing this for each source can become unwieldy. Instead, it is possible to configure a default source which is used for all tool installations made by the Cake.DNF.Module.
This makes use of the configuration options within Cake which are documented here.
Source repository URL
You can provide a non-default repository URL that all installations will use as the repo source. Note that this uses DNF's -repo
switch and DNF will only use the specified repo, not even the system-default ones.
To provide a repository URL, either set the environment variable DNF_SOURCE
, provide the --dnf_source
argument to cake.exe
or add a section to your cake.config
as per below:
[DNF]
Source=http://mymirror.com/repo/
With this configuration in place, all calls to the DNF installer will only use the specified repo.