Ask Your Question
1

How to remove duplicate packages installed with dnf on Fedora 24

asked 2016-10-17 13:16:27 -0500

Pant gravatar image

Hello Fedorians, I run dnf update -y and I left my system update. At some point I noticed that a blank screen had occurred and all my windows were closed, including the terminal window that was running the command. After that I end up having a lot of duplicate packages. Maybe some packages were updated but it didn't erase the old packages... Any ideas on how to remove the duplicates? I think I have to remove the new packages and then update.

Also when i run:

cd emptydir

dnf reinstall * -y

I get this (Note that the packages downloaded in a previous command)

edit retag flag offensive close merge delete

Comments

Looks like one or some of your Desktop components crashed during update and also let dnf crash (maybe it was executed in gnome-terminal?!). There is a discussion going on on the fedora-devel mailing list. See here for the entire thread.

To subscribe to the bug report, visit: https://bugzilla.redhat.com/show_bug....

florian gravatar imageflorian ( 2016-10-17 14:28:56 -0500 )edit
1

+1. This explains it. I had no idea. But can I do something to fix my system?

Pant gravatar imagePant ( 2016-10-17 15:25:51 -0500 )edit

You may try fix your corrupted package database to fix your problem: Quoting from here: Rebuilding RPM database: If you see warnings when working with RPM/DNF tools, your database might have gotten corrupted for some reason. It is possible to rebuild it and see if resolves your issues. Always back up/var/lib/rpm/first. To rebuild the database, run:

sudo rpm --rebuilddb
florian gravatar imageflorian ( 2016-10-17 21:27:07 -0500 )edit

I did what you said but nothing changes.

Pant gravatar imagePant ( 2016-10-18 12:17:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-10-17 14:44:22 -0500

TWTOoth gravatar image

run the command as root

# yum autoremove

which should get deposed of any unnecessary data or packages run

#dnf install update

if no packages is found then you have nothing to worry about it wont hurt to check using GUI just to be sure. hope this helps Good luck

edit flag offensive delete link more

Comments

yum autoremove redirected to dnf did remove some packages but not all of them. dnf install update gave "No package update available."

Pant gravatar imagePant ( 2016-10-17 15:20:30 -0500 )edit

Question Tools

Stats

Asked: 2016-10-17 13:16:27 -0500

Seen: 3,165 times

Last updated: Oct 17 '16