Red Hat Bugzilla – Bug 1007097
yum rebuilds rpms from deltarpms even for local repositories
Last modified: 2013-10-08 07:32:27 EDT
Created attachment 796552 [details]
Local repository configuration
Description of problem:
Yum rebuilds rpms from deltarpms even for local (file://) repositories. In the case of for local repositories - yum shall not use deltarpms if full rpms exist or it shall be possible to configure deltarpms usage in the repository section.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Configure local repository, for example, /etc/yum.repos.d/fedora-updates-local.repo (see config attached)
2. Populate the repository
3. Run yum -d 2 update
4. Observe that yum rebuilds /var/cache/yum rpms using deltarpms
<locally rebuilding deltarpms> 12% [===- ] 381 kB/s | 6.6 MB 00:01:59 ETA
Delta RPMs reduced 51 M of updates to 6.9 M (86% saved)
Finishing delta rebuilds of 19 package(s) (51 M)
Cache directory is filled with rpms
# ls -l /var/cache/yum/x86_64/19/updates-local/packages/
-rw-r--r--. 1 root root 1139532 Sep 11 16:23 gnome-settings-daemon-3.8.5-1.fc19.x86_64.rpm
-rw-r--r--. 1 root root 52352 Sep 11 16:23 gnome-settings-daemon-updates-3.8.5-1.fc19.x86_64.rpm
yum skips rpms rebuild as the repository is local. Cache directory is not filled.
As a workaround I added deltarpm_percentage=1 to the repository section. Note that deltarpm_percentage=0 produces the error below.
Error parsing "deltarpm_percentage = '0'": out of range integer value
It would be nice if yum can be configured so
a. local repositories do not have rpms rebuild from deltarpms if full rpms exists in the repository.
b. or it is possible to disable deltarpm in the repository sections
c. or deltarpms are used only for repositories that are high cost, something like deltarpm_min_cost=10 and deltarpms are not used if cost < 10.
Created attachment 796555 [details]
yum output showing deltarpms usage
Created attachment 796556 [details]
yum cache content after deltarpms are used
I opt for a) .. you can't have repository with drpms but without rpms, so disabling drpms for all local repositories should be fine. b) is currently possible with "deltarpm_percentage=1".
> b) is currently possible with "deltarpm_percentage=1".
Very small deltarpm is still going to trigger the rebuild. If deltarpm_percentage=0 is allowed it will be sufficient (though strange looking).
yum-3.4.3-111.fc19 has been submitted as an update for Fedora 19.
yum-3.4.3-111.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.