-
Bug
-
Resolution: Unresolved
-
Normal
-
rhel-8.4.0
-
dnf-4.19.0-1.el10
-
None
-
None
-
rhel-sst-cs-software-management
-
ssg_core_services
-
18
-
20
-
None
-
False
-
No
-
None
-
-
Pass
-
None
-
Release Note Not Required
-
-
Unspecified
-
Unspecified
-
None
Description of problem:
On RHEL 8.4 “dnf distro-sync” returns misleading information - that a package isn’t installed even though it is.
Version-Release number of selected component (if applicable):
dnf-4.4.2-11.el8.noarch
How reproducible:
Install any package from some repository, disable the repository and run dnf distro-sync <package>.
Steps to Reproduce:
1. Enable a repository that contains a package not available in other enabled repositories, for example CentOS Extras repository:
- cat >/etc/yum.repos.d/extras.repo <<EOF
[extras]
name=CentOS Extras $releasever - \$basearch
baseurl=http://mirror.centos.org/centos/\$releasever/extras/\$basearch/os/
enabled=1
gpgcheck=0
EOF
2. Install a package which is available only in the newly enabled repository, for example cpaste from CentOS Extras:
- yum install -y --disablerepo "*" --enablerepo extras cpaste
3. Disable the repository from step 1
- dnf config-manager --set-disabled extras
4. Run dnf distro-sync with the newly installed package:
- yum distro-sync cpaste
Actual results:
- yum distro-sync cpaste
No package cpaste installed.
Error: No packages marked for distribution synchronization.
Expected results:
Just the error is printed, the sentence “No package cpaste installed” isn’t correct. Because:
- rpm -q cpaste
cpaste-1.0.0-3.el8.x86_64
...the cpaste is installed
Additional info:
- depends on
-
RHEL-44922 Missing packages dnf-plugin-leaves and dnf-plugin-show-leaves
- Release Pending
- external trackers
- links to
-
RHBA-2024:132912 DNF stack bug fix and enhancement update