On Thu, Dec 17, 2015 at 03:00:20PM -0600, Dennis Gilmore wrote:
On Thursday, December 17, 2015 12:18:59 PM Mike Bonnet wrote:
> On 12/17/15 12:13 PM, pagure(a)pagure.io wrote:
> > ausil opened a new pull-request against the project: `koji` that you are
> > following: ``
> > Enable keepcache in koji dnf conf
> > ``
>
> What's the cache expiration policy? Is there a size limit? I'm concerned
> that this could cause builder disks to fill up with cached packages.
>
The cache is internal to the buildroot. it is cleaned up with the buildroot.
the result here is to make dnf have the same behaviour as yum and it fixes an
issue preventing supermin from being able to build.
https://fedorahosted.org/rel-eng/ticket/6274 is the report to releng
I've tried to test this on current Fedora koji, and assuming that this
patch was really deployed, it unfortunately isn't working.
I did a scratch build which dumps out the contents of every file
matching /etc/yum* /etc/dnf* under the chroot, and the relevant output
is below. It doesn't seem to make sense to me however, since dnf.conf
would appear to be completely empty.
However probably the dnf.conf inside the chroot is irrelevant here.
Another alternative is to pass `--setopt=keepcache=1', but I'm unclear
where one would set that. We currently pass `--setopt=deltarpm=false'
but I wasn't able to locate the code which does that.
Rich.
----------------------------------------------------------------------
++ find /etc/yum /etc/yum.conf /etc/yum.conf.rpmnew /etc/yum.repos.d /etc/dnf
/etc/dnf.conf -type f
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum/version-groups.conf
# This file allows you to create "groups" of package names, which are used by
# the version command.
[yum]
# These are the top level things to do with yum, we don't list Eg. libselinux
# even though that's require by rpm(-libs).
run_with_packages = true
pkglist = glibc, sqlite, libcurl, nss,
yum-metadata-parser,
rpm, rpm-libs, rpm-python,
python,
python-iniparse, python-urlgrabber, python-pycurl
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum/protected.d/systemd.conf
systemd
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum.conf
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum.conf.rpmnew
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having
to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum.repos.d/fedora-updates.repo
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released...
enabled=0
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released...
enabled=0
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released...
enabled=0
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasev...
enabled=0
#metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$re...
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$r...
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum.repos.d/fedora.repo
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum.repos.d/fedora-updates-testing.repo
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum.repos.d/fedora-rawhide.repo
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/dnf/dnf.conf.rpmnew
[updates-testing]
name=Fedora $releasever - $basearch - Test Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/testing/$releasever/$basearch/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-...
enabled=0
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[updates-testing-debuginfo]
name=Fedora $releasever - $basearch - Test Updates Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/testing/$releasever/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-...
enabled=0
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[updates-testing-source]
name=Fedora $releasever - Test Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/testing/$releasever/SRPMS/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-...
enabled=0
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
# These packages are untested and still under development. This
# repository is used for development of new releases.
#
# This repository can see significant daily turnover and major
# functionality changes which cause unexpected problems with other
# development packages. Please use these packages if you want to work
# with the Fedora developers by testing these new development packages.
#
# #
https://admin.fedoraproject.org/mailman/listinfo/test (Subscription
# Required) is available as a discussion forum for
# testing and troubleshooting for development packages in conjunction
# with new test releases.
#
# More information is available at
http://fedoraproject.org/wiki/Testing
#
# Reproducible and reportable issues should be filed at
#
http://bugzilla.redhat.com/.
#
# Product: Fedora
# Version: rawhide
[rawhide]
name=Fedora - Rawhide - Developmental packages for the next Fedora release
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/rawhide/$basearch/os/
metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch...
enabled=1
metadata_expire=6h
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[rawhide-debuginfo]
name=Fedora - Rawhide - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/rawhide/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide-debug&am...
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[rawhide-source]
name=Fedora - Rawhide - Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/rawhide/source/SRPMS/
metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide-source&a...
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=true
dnf
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/dnf/protected.d/dnf.conf
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/dnf/dnf.conf
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/dnf.conf
----------------------------------------------------------------------
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/