Den 2017-04-27 kl. 19:02, skrev Igor Gnatenko:
Hello users and developers,
We had presented deltametadata project at DevConf.CZ 2017[0], goal of
this project is to minimize bandwidth required on clients to update
repository metadata (repomd.xml, primary.xml, etc.) which would improve
user experience with DNF.
So, we have DNF plugin which acts
How to try it?
1. dnf -y copr enable @rpm-software-management/deltamd
2. dnf -y install dnf-plugin-zsync
If something doesn't work, look into /var/log/dnf.log.
We would like you to try it out and give feedback, it is very important
for us! Just send it as reply to this message..
P.S. F25 and above are supported
I followed the instruction to add dnf-plugin-zsync in your mail.
I did it on PC, Fedora 25 workstation (last updated 2017-04-29), and VM
(KVM/qemu), Fedora 26 Alpha 1.1 server (last updated 2017-03-28).
On the PC with Fedora 25 there are no problem.
Here is output from /var/log/dnf.log:
Apr 30 11:30:18 DEBUG repo: using cache for: fedora
Apr 30 11:30:18 DEBUG not found updateinfo for: Fedora 25 - x86_64
Apr 30 11:30:19 DEBUG repo: using cache for: rpmfusion-nonfree
Apr 30 11:30:19 DEBUG not found deltainfo for: RPM Fusion for Fedora 25
- Nonfree
Apr 30 11:30:19 DEBUG not found updateinfo for: RPM Fusion for Fedora 25
- Nonfree
Apr 30 11:30:19 DEBUG repo: using cache for: updates
Apr 30 11:30:19 DEBUG repo: using cache for: rpmfusion-free-updates
Apr 30 11:30:19 DEBUG not found deltainfo for: RPM Fusion for Fedora 25
- Free - Updates
Apr 30 11:30:19 DEBUG not found updateinfo for: RPM Fusion for Fedora 25
- Free - Updates
Apr 30 11:30:19 DDEBUG timer: sack setup: 901 ms
Apr 30 11:30:19 INFO Cache med metadata skapad.
Apr 30 11:30:19 DDEBUG Cleaning up.
Apr 30 12:31:17 INFO --- logging initialized ---
Apr 30 12:31:17 DDEBUG timer: config: 9 ms
Apr 30 12:31:17 DEBUG cachedir: /var/cache/dnf
Apr 30 12:31:18 DEBUG Loaded plugins: protected_packages,
system-upgrade, noroot, playground, debuginfo-install, builddep, zsync,
generate_completion_cache, needs-restarting, copr, config-manager,
download, reposync, Query
Apr 30 12:31:18 DEBUG DNF version: 1.1.10
Apr 30 12:31:18 DDEBUG Command: dnf makecache timer
Apr 30 12:31:18 DDEBUG Installroot: /
Apr 30 12:31:18 DDEBUG Releasever: 25
Apr 30 12:31:18 DDEBUG Base command: makecache
Apr 30 12:31:18 DDEBUG Extra commands: ['timer']
Apr 30 12:31:18 DEBUG Skapar cache-filer för alla metadatafiler.
Apr 30 12:31:18 INFO Cachen med metadata uppdaterades nyligen.
Apr 30 12:31:18 DDEBUG Cleaning up.
On the VM I get the following problem:
# dnf update
AttributeError: 'Repo' object has no attribute 'cachedir'
The tail of /var/log/dnf.log look like this:
Apr 30 13:14:18 DDEBUG
/var/cache/dnf/group_rpm-software-management-deltamd-d97dc0c4f72514de/packages/dnf-plugin-zsync-0.1-1.fc26.noarch.rpm
borttaget
Apr 30 13:14:47 INFO --- logging initialized ---
Apr 30 13:14:47 DDEBUG timer: config: 14 ms
Apr 30 13:14:47 DEBUG Loaded plugins: builddep, config-manager, copr,
debuginfo-install, download, generate_completion_cache,
needs-restarting, playground, reposync, zsync
Apr 30 13:14:47 DEBUG DNF version: 2.2.0
Apr 30 13:14:47 DDEBUG Command: dnf makecache timer
Apr 30 13:14:47 DDEBUG Installroot: /
Apr 30 13:14:47 DDEBUG Releasever: 26
Apr 30 13:14:47 DEBUG cachedir: /var/cache/dnf
Apr 30 13:14:47 DDEBUG Base command: makecache
Apr 30 13:14:47 DDEBUG Extra commands: ['makecache', 'timer']
Apr 30 13:14:47 DDEBUG Cleaning up.
Apr 30 13:14:47 CRITICAL AttributeError: 'Repo' object has no attribute
'cachedir'
Apr 30 13:15:44 INFO --- logging initialized ---
Apr 30 13:15:44 DDEBUG timer: config: 13 ms
Apr 30 13:15:44 DEBUG Loaded plugins: builddep, config-manager, copr,
debuginfo-install, download, generate_completion_cache,
needs-restarting, playground, reposync, zsync
Apr 30 13:15:44 DEBUG DNF version: 2.2.0
Apr 30 13:15:44 DDEBUG Command: dnf update
Apr 30 13:15:44 DDEBUG Installroot: /
Apr 30 13:15:44 DDEBUG Releasever: 26
Apr 30 13:15:44 DEBUG cachedir: /var/cache/dnf
Apr 30 13:15:44 DDEBUG Base command: update
Apr 30 13:15:44 DDEBUG Extra commands: ['update']
Apr 30 13:15:44 DDEBUG Cleaning up.
Apr 30 13:15:44 CRITICAL AttributeError: 'Repo' object has no attribute
'cachedir'
I probably should have updated Fedora 26 Alpha 1.1 before I did the
installation or ?
As you can see of the logs the PC has dnf version 1.1.10 while the VM
has dnf version 2.2.0, if that matters.
--
Regards
Jon Ingason