On 29 Jun 2022 at 6:11, stan via users wrote:
Date sent:       Wed, 29 Jun 2022 06:11:23 -0700
To:              users@lists.fedoraproject.org
Subject:         Re: Cleaning /var/lib/dnf/yumdb
Organization:    zohofree
Send reply to:   Community support for Fedora users <users@lists.fedoraproject.org>
From:            stan via users <users@lists.fedoraproject.org>
Copies to:       mikes@guam.net, stan <upaitag@zoho.com>
> On Wed, 29 Jun 2022 21:31:51 +1000
> "Michael D. Setzer II via users" <users@lists.fedoraproject.org> wrote:
>
> > Are files in /var/lib/dnf/yumdb of any use??
> > Dates of files and directories seem to all be June 20 2019
> > and seem to be for Fedora 29 and earlier.
> > Machine is currently running Fedora 35??
> >
> > Is there a command to clean them correctly.
> > Are the just leftovers from pervious versions.
> > dnf autoremove didn't do anything.
>
> You could run
> rpm -qf /var/lib/dnf/[one of the files]
The directory /var/lib/dnf/yumdb contains these subdirectories?
a  b  c  C  d  e  f  F  g  G  h  i  I  j  k  l  L  m  M  n  N  o  O  p  P  q  r  s  S  t  T  u  v  V  w  x  y  z
listing the first few in the a subdirectory has these subdirectories.
011b42fa971c283946a1a72ca97d253e6c5bbce5-adobe-release-x86_64-1.0-1-noarch
0222420a895a597803ed1249bd18d9ff0fd07c1b-asdcplib-2.10.32-4.fc29-x86_64
034dd931daaafb4e6c77f2fb44c7cdeafc829ac2-apache-commons-chain-1.2-18.fc29-noarch
03b0033cc57f530d2abbe4361785834778f9731f-apache-parent-19-3.fc29-noarch
03dd581fd0266269454cca7e041913ebb4a93e35-apache-ivy-2.4.0-14.fc29-noarch
03f63e2b86c12c7518de6e931062aff6b092b4c5-abrt-gui-libs-2.12.0-2.fc29-x86_64
First one then has these files.
-rw-r--r--.    1 root root    64 Jun  7  2018 checksum_data
-rw-r--r--. 5087 root root     6 Nov  5  2017 checksum_type
-rw-r--r--.   37 root root 70145 Jun  7  2018 command_line
-rw-r--r--.    1 root root    18 Jun  7  2018 from_repo
-rw-r--r--. 3328 root root     4 Jun  7  2018 installed_by
-rw-r--r--. 2650 root root     4 Jun  7  2018 reason
-rw-r--r--.   37 root root     2 Jun  7  2018 releasever
> to see if it belongs to any currently installed package. There is a yum
> package today, but it just installs a link to dnf.  If you have
> dnf-utils installed, you can run
> package-cleanup orphans
installed the dnf-utils
and ran package-cleanup --orphans
it list 297 files on run, but only but only 12 have the fc28 or fc29?
Was surprised that it listed aespipe as one of files?
aespipe-2.4f-1.fc33.x86_64 is what it shows, so guess it isn't included after fc33 for some reason??
Had a number of files from libreoffice 7.3 that were listed, but those are not from Fedora repos but installed from site. Others don't look like things I manually installed so, think there were something that one version included and later ones dropped.
So, question leads to more questions.
Thanks for reply. Was just thinking this was something that was left over from earlier versions. Before I retired, I would always do an update on one classroom machine and do a clean install on another. The would to a rpm -qa on both and compare them. Most of the time the majority of packages where the same, but usually there were some from previous version that were not included in new version. Also, usually the new version would have some packages that didn't get added in the upgrade process.
Would usually just create a script to add those.
Thanks again.
> to list packages that are no longer available from current
> repositories.  You could then just remove them.  If you don't find any
> packages that own those files, you could just remove them manually as
> they are outside of package management.
>
> _______________________________________________
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-leave@lists.fedoraproject.org
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
+------------------------------------------------------------+
 Michael D. Setzer II - Computer Science Instructor (Retired)    
 mailto:mikes@guam.net                           
 mailto:msetzerii@gmail.com
 Guam - Where America's Day Begins                       
 G4L Disk Imaging Project maintainer
 http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+