PDA

View Full Version : F27: Ended up with lots of duplicates



tkalfaoglu
17th November 2017, 07:40 AM
Installed F27 last night.. Today, after installing a bunch of stuff using solely DNF, I ended up (how, no idea) with lots of duplicates.
dnf autoremove did not remove them.. Any ideas what to do?

sample of my rpm -qa:

aajohan-comfortaa-fonts-3.001-1.fc27.noarch
aalib-libs-1.4.0-0.32.rc5.fc27.x86_64
abattis-cantarell-fonts-0.0.25-3.fc27.noarch
abrt-2.10.4-3.fc27.x86_64
abrt-2.10.5-1.fc27.x86_64
abrt-addon-ccpp-2.10.5-1.fc27.x86_64
abrt-addon-coredump-helper-2.10.5-1.fc27.x86_64
abrt-addon-kerneloops-2.10.4-3.fc27.x86_64
abrt-addon-kerneloops-2.10.5-1.fc27.x86_64
abrt-addon-pstoreoops-2.10.5-1.fc27.x86_64
abrt-addon-vmcore-2.10.4-3.fc27.x86_64
abrt-addon-vmcore-2.10.5-1.fc27.x86_64
abrt-addon-xorg-2.10.5-1.fc27.x86_64
abrt-cli-2.10.5-1.fc27.x86_64
abrt-dbus-2.10.4-3.fc27.x86_64
abrt-dbus-2.10.5-1.fc27.x86_64
abrt-desktop-2.10.5-1.fc27.x86_64
abrt-gui-2.10.5-1.fc27.x86_64
abrt-gui-libs-2.10.5-1.fc27.x86_64
abrt-java-connector-1.1.0-14.fc27.x86_64
abrt-libs-2.10.4-3.fc27.x86_64
abrt-libs-2.10.5-1.fc27.x86_64
abrt-plugin-bodhi-2.10.5-1.fc27.x86_64
(....)

tkalfaoglu
17th November 2017, 08:00 AM
I think the cause was two dnf install commands waiting for each other in two terminal windows. I ass-umed that since there is a lock, and they wait for each other, that all would be well :(

srakitnican
17th November 2017, 08:28 AM
It should wait, this usually happens when dnf does not finish its transaction. You can try with "dnf remove --duplicates". If that does not work you might try the opposite, e.g remove newer version of a "dupe", the process is slightly more complicated.

$ sudo dnf --setopt=protected_packages= remove $(sudo dnf repoquery --duplicated --latest-limit 1 -q | grep -v i686)
Be careful to not remove more packages then needed or your system might become broken. See the following for more tips.
https://forums.fedoraforum.org/showthread.php?314589-Fedora-25-Broken-by-upgrade

tkalfaoglu
17th November 2017, 08:28 AM
Solved -- I think on my own..
# package-cleanup --cleandupes
gives errors, mesa-filesystem needed by mesa-drm-drivers or something.. manually deleted mesa-filesystem..
now package-cleanup is running.. 583 packages to go..

tkalfaoglu
17th November 2017, 08:29 AM
Many thanks for your help!