Hello all, I’ve got a question about the dependency solving and applying filters on a CV.
I recently run into an issue on a RockyLinux8 Host which uses a CV called RockyLinux8NoKernelPackages
with the below filter applied to the baseos repo only.
RPM name | Architecture | Version |
---|---|---|
kernel* | x86_64 | Greater than version 4.18.0-372.9.1.el8 |
When I attempt to update packages like e.g. gcc and gcc-plugin-annovin
on the host assigned to the CV above it refuses to update them. This seems to be related to dependency resolving turned off on the CV cause when I do enable it it works as expected. The problem being is that with dependency resolving enabled the filters I’ve got are being ignored. So I’m wondering how I could approach this problem best?
[localhost yum.repos.d] dnf list gcc gcc-plugin-annobin
Installed Packages
gcc.x86_64 8.5.0-18.el8 @Mirror-RockyLinux8-Appstream
gcc-plugin-annobin.x86_64 8.5.0-18.el8 @Mirror-RockyLinux8-Appstream
Available Packages
gcc.x86_64 8.5.0-20.el8 RockyLinux8_RockyLinux8AppStream
gcc-plugin-annobin.x86_64 8.5.0-20.el8 RockyLinux8_RockyLinux8AppStream
[localhost yum.repos.d] dnf update gcc gcc-plugin-annobin
Updating Subscription Management repositories.
RockyLinux8AppStream 73 kB/s | 2.6 kB 00:00
RockyLinux8BaseOS 80 kB/s | 2.3 kB 00:00
RockyLinux8Epel 74 kB/s | 2.3 kB 00:00
RockyLinux8PowerTools 70 kB/s | 2.6 kB 00:00
RockyLinux8Extras 43 kB/s | 1.5 kB 00:00
Error:
Problem: cannot install both gcc-8.5.0-20.el8.x86_64 and gcc-8.5.0-18.el8.x86_64
- package gcc-plugin-annobin-8.5.0-18.el8.x86_64 requires gcc = 8.5.0-18.el8, but none of the providers can be installed
- cannot install the best update candidate for package gcc-8.5.0-18.el8.x86_64
- problem with installed package gcc-plugin-annobin-8.5.0-18.el8.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Foreman and Proxy versions:
foreman: 3.8.0
Foreman and Proxy plugin versions:
foreman-tasks 8.2.0
foreman_puppet 6.0.1
foreman_remote_execution 11.0.0
katello 4.10.0
Distribution and version:
Rocky Linux release 8.8 (Green Obsidian)