Package: dnf Version: 4.5.2-6 Severity: serious Hello,
thank you for packaging dnf in Debian! I'm trying to use dnf to bootstrap rpm-based chroots, which seems to work, but the rpm package database on the resulting distribution is empty, as in, `rpm -qa` returns no output, and `rpm -q` on any package complains that it is not installed. The actual files that are supposed to be in the package are indeed present in the chroot. I'm attaching outputs of the same command as run on my Debian Bullseye system and one I made on a Fedora 34 system. The output seems the same (sadly I had different terminal sizes which make diffing a bit awkward), but at the end, the outcome of rpm commands in the chroot differ. I'm assuming this is an issue of dnf as distributed in Debian, since the same command on Fedora works, but that is a guess from someone with no knowledge of dnf workings. Running `/usr/bin/rpmdb --rebuilddb` doesn't change the situation, and `rpm -qa` keeps returning empty output. Steps to reproduce: # mkdir test # cat > test.repo [chroot-base] name=Linux $releasever - $basearch baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/34/Everything/$basearch/os/ enabled=1 gpgcheck=0 # /usr/bin/dnf -c test.repo -y '--disablerepo=*' --enablerepo=chroot-base '--disableplugin=*' --installroot=$(readlink -f test) --releasever=34 install bash vim-minimal dnf rootfiles git dbus [...] Complete! # chroot test [root@host /]# rpm -qa [root@host /]# Thank you, Enrico -- System Information: Debian Release: 11.2 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-10-amd64 (SMP w/4 CPU threads) Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE=en_IE:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dnf depends on: ii dnf-data 4.5.2-6 ii libmodulemd2 2.12.0-1 ii python3 3.9.2-3 ii python3-dbus 1.2.16-5 ii python3-dnf 4.5.2-6 ii sqlite3 3.34.1-3 dnf recommends no packages. dnf suggests no packages. -- no debconf information
dnf-on-fedora43.log.gz
Description: application/gzip
dnf-on-debian-bullseye.log.gz
Description: application/gzip