On 23.12.19 22:52, Samuel Sieb wrote:
Why do you think your package database is corrupted? If it's
because of
this autoremove issue, then you don't really have a problem.
What I want to do is to clean up my installed packages. I want to get
rid of packages that have been left in the past while upgrading between
releases. Especially packages that have been installed as dependency of
long gone packages.
That's what I thought "dnf autoremove" could help with.
I think the metadata store is different between yum and dnf, so if
you
initially installed with yum, then dnf won't have all the right info.
Doesn't this make the whole idea of replacing yum with dnf a pretty bad
thing? I thought dnf would start with the last yum database right away
or they even share the same databases. Isn't yum just a wrapper for dnf
on current Fedora installations?
Why are you trying to do this? There is no easy way to mark the
necessary packages. It's a very manual process and somewhat specific to
the person doing it. Unless you have a specific concern, it's not worth
it.
I want to clean up the system. It runs for several years now (without
major problems) but I want to swap the hard drive with an SSD and remove
some unused stuff before copying the system to the new drive.
I guess a good start could be to install a fresh Fedora installation in
a virtual machine and get a list of explicitly installed packages from
that. If I mark all these as explicitly installed on the other machine,
I think the "autoremove" list could be way shorter.
Manuel