LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-20-2019, 04:41 AM   #1
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 525

Rep: Reputation: 95
keepcache option at repository configuration level for dnf does not work


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?
 
  


Reply

Tags
dnf keepcache repo rpm



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fedora, updating notices and packages : dnf updateinfo & dnf check-update fanoflq Linux - Newbie 9 05-20-2017 07:07 PM
[SOLVED] dnf remove repo, dnf command help ? mshlinux Fedora 2 10-01-2015 10:00 PM
DNF local mirror repository fedorah22 Fedora 3 08-12-2015 09:36 AM
keepcache on localrepo slowerogue Linux - Newbie 2 05-05-2014 12:19 AM
emacs in run level 3 then switch to X (level 7) then back to level 3 dsoliver Slackware 3 09-01-2006 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration