Description of problem: yum-deprecated and dnf are both configured with: cachedir=/usr/src/yum/$basearch/$releasever keepcache=1 One affected repo: % ls -lsr /usr/src/yum/x86_64/24/virtualbox* 12 -rw-r--r--. 1 root root 9700 Nov 17 09:27 /usr/src/yum/x86_64/24/virtualbox.solv 20 -rw-r--r--. 1 root root 17760 Nov 13 17:17 /usr/src/yum/x86_64/24/virtualbox-filenames.solvx /usr/src/yum/x86_64/24/virtualbox-541372c70ed0d346: total 4 4 drwxr-xr-x. 2 root root 4096 Sep 8 22:08 repodata /usr/src/yum/x86_64/24/virtualbox-0842b1a6c6fb14be: total 4 4 drwxr-xr-x. 2 root root 4096 Nov 17 13:12 repodata /usr/src/yum/x86_64/24/virtualbox: total 24 8 -rw-r--r--. 1 root root 951 Nov 11 16:20 repomd.xml 8 -rw-r--r--. 1 root root 3437 Nov 11 16:20 primary.xml.gz 4 drwxr-xr-x. 2 root root 4096 Nov 10 21:54 packages 4 drwxr-xr-x. 2 root root 4096 Nov 12 02:19 gen 0 -rw-r--r--. 1 root root 0 Nov 18 17:30 cachecookie the 'virtualbox' directory was created by yum(-deprecated). The other two were invented by dnf. It isn't just virtualbox either: ls /usr/src/yum/x86_64/24 @System.solv google-earth-filenames.solvx rawhide-filenames.solvx tor-source adobe-linux-x86_64 google-earth.solv rawhide-presto.solvx tor-source-00caf85cb4c58527 adobe-linux-x86_64-38ad0a49b0acdf73 google-talkplugin rawhide.solv tor-source-filenames.solvx adobe-linux-x86_64-filenames.solvx google-talkplugin-dfa34928d410c534 rpmfusion-free tor-source.solv adobe-linux-x86_64.solv google-talkplugin-filenames.solvx rpmfusion-free-ba628c912dc71c4c tor.solv cuda google-talkplugin.solv rpmfusion-free-debuginfo virtualbox cuda-84f770bbf2598385 last_makecache rpmfusion-free-filenames.solvx virtualbox-0842b1a6c6fb14be cuda-8c0c983d4d45dc9d rawhide rpmfusion-free.solv virtualbox-541372c70ed0d346 cuda-filenames.solvx rawhide-2d95c80a1fa0a67d tempfiles.json virtualbox-filenames.solvx cuda.solv rawhide-debuginfo timedhosts virtualbox.solv expired_repos.json rawhide-debuginfo-b0297fcd3e236bd4 tor google-earth rawhide-debuginfo-filenames.solvx tor-dd9d1fed82c42a1f google-earth-17f28a61f303b7a2 rawhide-debuginfo.solv tor-filenames.solvx Whole lot of duplicate directories being created there... Version-Release number of selected component (if applicable): dnf-1.1.3-1.fc24.noarch How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Hi, as you can see, dnf uses a different directory structure in the form of repository name and hash. We does not recommend you to use the same cache directory for yum and dnf.