On Wed, 2024-11-27 at 08:30 +1100, Stephen Morris wrote:
> My main concern was, if I use dnf to install a local rpm and
> afterwards I issue sudo dnf clean all to reclaim space (not that at
> the moment I have a need to be concerned about disk space) does that
> remove knowledge of the rpm having been installed?

No, the RPM database is separate.

Generally speaking, doing "clean all" is unnecessary for the user, and
needlessly increases the workload on the repo servers.  Now, instead of
a user doing a metadata check and carrying on with perfectly fine
cached data, it's fetching it all again.  Multiply that by lots of
users doing the same thing, and it's a huge increase.  It gets even
worse if people start downloading lots of RPMs, stuff something up,
then dump their cache and start over again.

It was always bad advice, and became a bit of a cargo cult mentality.

When you do a dnf/yum update/install your software automatically
handles caching of metadata and downloaded packages.  It updates the
metadata *when* needed, and this means out with the old in with the
new, it's not accumulating more and more.  Also, by default, the RPM
packages it downloads to do these updates and installs are only kept on
your drive until the job is finished, then they're purged.

-- 
 
uname -rsvp
Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 

-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@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, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to