Hi,
I used to use and rely a lot on the keepcache option on yum with CentOS 7, and I now seem unable to use it the same way on dnf with Fedora 30.
In CentOS 7 (3.10.0-957.21.3.el7.x86_64) and with yum (yum-3.4.3-161.el7.centos.noarch), I do have the option
keepcache=1 in the
main section of
/etc/yum.conf.
That ensures that it keeps all the rpm I install or upgrade available afterwards on disk.
From there I have scripts that collect them from their caches and centralize them to avail them as local repositories on an FTP server.
But for those local repositories, I obviously do not want the rpm to be cached.
To achieve that I have the option
keepcache=0 in the concerned
/etc/yum.repos.d/local.repo configuration.
Those settings as described above work perfectly on my CentOS machines.
I naively tried to replicate the same with Fedora 30 (5.1.17-300.fc30.x86_64) and dnf (dnf-4.2.5-2.fc30.noarch), but it kept the cache for all repositories (including the local ones).
While investigating I found this
discussion on removal then reintroduction of keepcache option in dnf.
But from dnf changelogs, I see with the below command a comment under 'Mon Aug 07 2017 Jaroslav Mracek <jmracek@redhat.com> 2.6.3-1'.
Code:
rpm -q --changelog dnf | sed -n '/Mon Aug 07 2017/,/^$/p'
I do not know if the maintainer comment meant to remove the option from the repository configuration, as it still available and working in the dnf main configuration. The
official documentation seems to confirm that the
keepcache option only remains in
main section of dnf configuration.
As anybody came accross the same or a similar problem?
Any suggestion?
May I have to request a bug or new feature from dnf maintainers?