Mailinglist Archive: opensuse-factory (435 mails)

< Previous Next >
Re: [opensuse-factory] Replacing libzypp stack with libdnf stack

On Tuesday 2020-07-07 13:55, Dan Čermák wrote:


Well, with all the talk about how great dnf is, I shall try it (on openSUSE).


I am honestly curious here, which parts of zypper do you miss from dnf?



* parallel download of metadata seems to be not happening

* `dnf update` is much more verbose, akin to `zypper -v up`
and I do not know of a way to make dnf give terse output.


14:07 a4:~ # zypper up
The following item is locked and will not be changed by any action:
Installed:
wicked-service

The following 42 package updates will NOT be installed:
binutils binutils-gold coreutils coreutils-doc cpp cpp10 cpp9
cross-sparc64-binutils gcc gcc-PIE gcc-c++ gcc-info gcc10 gcc10-c++
gcc10-debugsource gcc10-info gcc9 gcc9-c++ gdb gsoap-devel libasan5
libasan6 libatomic1 libctf-nobfd0 libctf0 libgcc_s1
libgcc_s1-debuginfo libgfortran4 libgomp1 libitm1 liblsan0 libobjc4
libpcap1 libquadmath0 libstdc++-devel libstdc++6
libstdc++6-debuginfo libstdc++6-devel-gcc10 libstdc++6-devel-gcc9
libtsan0 libubsan1 wicked-service

The following 3 packages are going to be upgraded:
libstdc++6-pp-gcc11 mingw64-libwinpthread1 mingw64-winpthreads-devel

3 packages to upgrade.
Overall download size: 162.9 KiB. Already cached: 0 B. No additional
space will be used or freed after the operation.


» dnf update
================================================================================
Package Arch Version Repo Size
================================================================================
Upgrading:
binutils x86_64 2.34-386.1 gcc 5.8 M
binutils-gold x86_64 2.34-386.1 gcc 1.3 M


* dnf by default proposes vendor changes, zypper doesn't

* dnf allows for vendor changes to sneak in:
The "repo" column may tell me where the update is coming from,
but does not tell me if that's gcc->gcc or tumbleweed->gcc.

* dnf help | grep -i lock
where is the package lock feature?

* `dnf in --setopt=install_weak_deps=False blah`
is quite a mouthful over `zypper in --no-r blah`

* dnf is slower in some regard - e.g. single package install

# time zypper in -y cdecl
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
cdecl

1 new package to install.
Overall download size: 128.5 KiB. Already cached: 0 B. After the operation,
additional 328.5 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package cdecl-7.3-1.1.x86_64 (1/1), 128.5 KiB (328.5 KiB unpacked)
Retrieving: cdecl-7.3-1.1.x86_64.rpm .....................................[done]

Checking for file conflicts: .............................................[done]
(1/1) Installing: cdecl-7.3-1.1.x86_64 ...................................[done]

real 0m1.335s
user 0m1.095s
sys 0m0.203s

# time dnf -y in cdecl
Repository 'base' is missing name in configuration, using id.
Repository 'debug' is missing name in configuration, using id.
Repository 'src' is missing name in configuration, using id.
Repository 'gcc' is missing name in configuration, using id.
Repository 'kopano' is missing name in configuration, using id.
Repository 'mingw' is missing name in configuration, using id.
Repository 'jeng' is missing name in configuration, using id.
Repository 'packman' is missing name in configuration, using id.
Last metadata expiration check: 0:12:14 ago on Tue Jul 7 14:05:26 2020.
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Installing:
cdecl x86_64 7.3-1.1 base 128 k

Transaction Summary
================================================================================
Install 1 Package

Total download size: 128 k
Installed size: 328 k
Downloading Packages:
cdecl-7.3-1.1.x86_64.rpm 6.9 MB/s | 128 kB 00:00
--------------------------------------------------------------------------------
Total 6.6 MB/s | 128 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : cdecl-7.3-1.1.x86_64 1/1
Verifying : cdecl-7.3-1.1.x86_64 1/1

Installed:
cdecl-7.3-1.1.x86_64

Complete!

real 0m2.653s
user 0m2.484s
sys 0m0.125s


That's all I have for the time being.
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >