diff --git a/Makefile.config b/Makefile.config index f49cfbd..5711e9e 100644 --- a/Makefile.config +++ b/Makefile.config @@ -60,8 +60,8 @@ AUTOSPEC_CONF = $(TOPLVL)/projects/common/conf/autospec.conf # in "pkg-mapping" for cloning/pulling package repos. USE_PACKAGE_MAPPING = yes -# Package manager config file. Default to the in-tree copy. -PM_CONF = $(TOPLVL)/projects/common/conf/yum.conf +# Package manager config file. Default to the in-tree copy of dnf.conf. +PM_CONF = $(TOPLVL)/projects/common/conf/dnf.conf # Mock configuration file. Default to the in-tree copy. MOCK_CONF = $(TOPLVL)/projects/common/conf/clear.cfg diff --git a/conf/README.md b/conf/README.md index 4e146dd..c840977 100644 --- a/conf/README.md +++ b/conf/README.md @@ -17,7 +17,10 @@ as a starting point if you need to. * `clear.cfg`: default Mock configuration file used by various targets that call out to Mock. Config variable: `MOCK_CONF` -* `yum.conf`: default package manager (YUM or DNF) configuration file, made +* `dnf.conf`: DNF conf for use as the package manager configuration file, made + available for the framework's local repo support. Config variable: `PM_CONF` + +* `yum.conf`: YUM conf for use as the package manager configuration file, made available for the framework's local repo support. Config variable: `PM_CONF` * `koji.conf`: template Koji configuration file. It is installed by diff --git a/conf/dnf.conf b/conf/dnf.conf new file mode 100644 index 0000000..ff8adce --- /dev/null +++ b/conf/dnf.conf @@ -0,0 +1,25 @@ +[main] +cachedir=/var/cache/dnf +keepcache=1 +debuglevel=1 +logfile=/var/log/dnf.log +exactarch=1 +obsoletes=1 +gpgcheck=0 +plugins=0 +retries=10 +installonly_limit=3 +reposdir=/root/mash + +[clear] +name=Clear +baseurl=https://cdn.download.clearlinux.org/current/x86_64/os/ +enabled=1 +gpgcheck=0 + +[clear-source] +name=Clear sources +failovermethod=priority +baseurl=https://cdn.download.clearlinux.org/current/source/SRPMS/ +enabled=1 +gpgcheck=0