Article 4PZ5Y dnf Error

dnf Error

by
robertdaleweir
from LinuxQuestions.org on (#4PZ5Y)
Hi
I have been installing F30 recently and trying to understand the specifics of the 'dnf' package manager. I have been upgrading and have what appears to be a solid working system. When I use Code:dnf --best upgrade all is well. Sample output below:
Code:[root@LENOVA-WIRED ~]# dnf --best upgrade
Last metadata expiration check: 0:29:52 ago on Mon 09 Sep 2019 10:54:33 AM PDT.
Dependencies resolved.
Nothing to do.
Complete!
[root@LENOVA-WIRED ~]#In an effort to clean up the distro even more I tried to run the following:
Code:[root@LENOVA-WIRED ~]# dnf --best distro-sync
Last metadata expiration check: 0:36:20 ago on Mon 09 Sep 2019 10:54:33 AM PDT.
Error:
Problem: The operation would result in removing the following protected packages: systemd
(try to add '--skip-broken' to skip uninstallable packages)
[root@LENOVA-WIRED ~]# It appears that it will not remove certain packages which are 'protected' systemd programs even though they are older versions which are just kicking around.
I decided to see what was actually at play here so I ran the following:
Code:[root@LENOVA-WIRED ~]# dnf --showduplicates list installed | grep systemd
libreport-plugin-systemd-journal.x86_64 2.10.1-1.fc30 @updates
python-systemd-doc.x86_64 234-8.fc30 @koji-override-0
python3-systemd.x86_64 234-8.fc30 @anaconda
rpm-plugin-systemd-inhibit.x86_64 4.14.2.1-5.fc30 @updates
systemd.x86_64 241-10.git511646b.fc30 @updates
systemd.x86_64 241-12.git1e19bcd.fc30 @updates
systemd-bootchart.x86_64 233-4.fc30 @koji-override-0
systemd-container.x86_64 241-12.git1e19bcd.fc30 @updates
systemd-libs.x86_64 241-10.git511646b.fc30 @updates
systemd-libs.x86_64 241-12.git1e19bcd.fc30 @updates
systemd-pam.x86_64 241-10.git511646b.fc30 @updates
systemd-pam.x86_64 241-12.git1e19bcd.fc30 @updates
systemd-rpm-macros.noarch 241-10.git511646b.fc30 @updates
systemd-rpm-macros.noarch 241-12.git1e19bcd.fc30 @updates
systemd-udev.x86_64 241-12.git1e19bcd.fc30 @updates
[root@LENOVA-WIRED ~]#As can be seen there are many duplicates with different version IDs. Such as
Code:systemd.x86_64 241-10.git511646b.fc30 @updates

and

systemd.x86_64 241-12.git1e19bcd.fc30 @updatesWhy does the 'distro-sync' function limit my ability to clean up my distro?

Robertlatest?d=yIl2AUoC8zA latest?i=7vV4O_vbfQs:D8pnPIgIH3Y:F7zBnMy latest?i=7vV4O_vbfQs:D8pnPIgIH3Y:V_sGLiP latest?d=qj6IDK7rITs latest?i=7vV4O_vbfQs:D8pnPIgIH3Y:gIN9vFw7vV4O_vbfQs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments