Description of problem: vnstat currently requires libgd, which requires libX11, etc. This is only actually needed if you want vnstat to create pretty pictures. vnstat works fine without it. Version-Release number of selected component (if applicable): 2.6-2.el8 How reproducible: always Steps to Reproduce: 1. dnf --setopt=install_weak_deps=False install vnstat Actual results: Installs all this cruft: dejavu-fonts-common noarch 2.35-7.el8 rhel-8-for-x86_64-baseos-rpms 74 k dejavu-sans-fonts noarch 2.35-7.el8 rhel-8-for-x86_64-baseos-rpms 1.5 M fontconfig x86_64 2.13.1-3.el8 rhel-8-for-x86_64-baseos-rpms 275 k fontpackages-filesystem noarch 1.44-22.el8 rhel-8-for-x86_64-baseos-rpms 16 k gd x86_64 2.2.5-7.el8 rhel-8-for-x86_64-appstream-rpms 144 k jbigkit-libs x86_64 2.1-14.el8 rhel-8-for-x86_64-appstream-rpms 55 k libX11 x86_64 1.6.8-4.el8 rhel-8-for-x86_64-appstream-rpms 611 k libX11-common noarch 1.6.8-4.el8 rhel-8-for-x86_64-appstream-rpms 158 k libXau x86_64 1.0.9-3.el8 rhel-8-for-x86_64-appstream-rpms 37 k libXpm x86_64 3.5.12-8.el8 rhel-8-for-x86_64-appstream-rpms 58 k libjpeg-turbo x86_64 1.5.3-10.el8 rhel-8-for-x86_64-appstream-rpms 156 k libtiff x86_64 4.0.9-18.el8 rhel-8-for-x86_64-appstream-rpms 188 k libwebp x86_64 1.0.0-3.el8_4 rhel-8-for-x86_64-appstream-rpms 272 k libxcb x86_64 1.13.1-1.el8 rhel-8-for-x86_64-appstream-rpms 229 k Expected results: vnstat only installed Additional info: Thank you!
workaround: dnf install dnf-plugins-core dnf download vnstat dnf remove dnf-plugins-core rpm -i vnstat-2.6-2.el8.x86_64.rpm --nodeps
Weak dependencies does not really work here. gd is a dependency of the vnstati binary and the way you are working around gd is by breaking vnstati. It should be possible, however, to split out vnstati in its own sub-package which can be installed separately.