Bug 22898

Summary: Unable to uninstall lib64dnf1
Product: Mageia Reporter: Bit Twister <bittwister2>
Component: RPM PackagesAssignee: Neal Gompa <ngompa13>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins, marja11
Version: 6   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: libdnf-0.11.1-1.mga6.src.rpm CVE:
Status comment:

Description Bit Twister 2018-04-12 19:31:14 CEST
Description of problem:

Unable to uninstall lib64dnf1 because it wants to remove
- gnome-packagekit-common-3.24.0-1.mga6.x86_64
- packagekit-1.1.6-2.mga6.x86_64
- packagekit-gstreamer-plugin-1.1.6-2.mga6.x86_64
- packagekit-gtk-module-1.1.6-2.mga6.x86_64
- python3-hawkey-0.11.1-1.mga6.x86_64

Package contents:
        /usr/lib64/libdnf.so.1
‎        /usr/share/doc/lib64dnf1
‎        /usr/share/doc/lib64dnf1/AUTHORS
‎        /usr/share/doc/lib64dnf1/NEWS
‎        /usr/share/doc/lib64dnf1/README.md
‎        /usr/share/licenses/lib64dnf1
‎        /usr/share/licenses/lib64dnf1/COPYING

Version-Release number of selected component (if applicable):


How reproducible: always


Steps to Reproduce:
1. mcc->Software Management->Install & Remove Software
2. set View All, Filter Installed
3. enter dnf in the Find: box
Now try to remove all dnf packages leaving lib64dnf1 for last removal.
Marja Van Waes 2018-04-12 19:47:20 CEST

CC: (none) => marja11
Assignee: bugsquad => ngompa13

Comment 1 Jani Välimaa 2018-04-14 09:25:03 CEST
What's the problem having dnf library installed? Your system has most probably a lot of other libs also installed you don't really use, but the features of them are enabled in some software. Those few pkgs has dnf support enabled.
Comment 2 Bit Twister 2018-04-14 14:14:50 CEST
(In reply to Jani Välimaa from comment #1)
> What's the problem having dnf library installed? 

My custom systemd auditor script is telling me there are some new units running since the last check which I do not know about.
   == tb_net_ins systemctl sysctl service check ===
   diff -bBw /var/local/data/sys_audit/sysctl_7.ref \
         /var/local/tmp/sys_audit/sysctl_7.tmp
   3c3
   < 451 loaded units listed
   ---
   > 456 loaded units listed.
   301a302

Rather than having to umask an unneeded service/trigger, I was trying to uninstall dnf. dnf service is static so I can not disable it.

Since I always check/delete my orphans on each update I thought removing some of those orphans looked a bit dangerous.
Comment 3 Jani Välimaa 2018-04-14 16:35:03 CEST
So, again, what's the problem having dnf's library pkg installed? It's clearly needed by other pkgs as they're linked against it. The library pkg doesn't provide any systemd services so there can't be any services running you're not aware of after removing dnf.

P.S. You should disable dnf-makecache.timer instead of .service to get it disabled.
Comment 4 Dave Hodgins 2018-04-15 05:47:10 CEST
As packagekit must have dnf for it to work, and is indirectly required by
task-gnome-minimal and task-plasma5-minimal, the only way to remove them
is using rpm with the --nodeps flag.

To prevent future updates from re-installing them, add the package names
to /etc/urpmi/skip.list

This is not a bug, but working as designed, so closing the bug report.

Resolution: (none) => INVALID
CC: (none) => davidwhodgins
Status: NEW => RESOLVED