6
submitted 1 month ago* (last edited 1 month ago) by deadcatbounce@reddthat.com to c/fedora@lemmy.ml

I'm sure I saw somewhere some while ago a way to remove old/obsolete packages from an system-upgraded install. Packages that wouldn't be removed because they're dependencies somewhere still.

For example, the xorg drivers can be removed from my F40 when upgraded to f41 install. As if I'd installed it from the to-be f41 everything iso.

I can't find it from the documentation; can someone point me in the right direction, please.

I can't quite remember but I think it was an official Fedora package that one 'installs' which contains a script to remove obsolete packages from the prior Fedora version.

UPDATE: found it. https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/#sect-clean-up-retired-packages

top 6 comments
sorted by: hot top controversial new old
[-] thayerw@lemmy.ca 2 points 1 month ago

dnf autoremove might do the trick. I'm on Fedora Silverblue, so thankfully don't have to worry about this anymore.

[-] vikingtons@lemmy.world 2 points 1 month ago

Have used this recently on F40 Workstation and can attest that it works as described.

[-] deadcatbounce@reddthat.com 2 points 1 month ago

No-one is suggesting that it doesn't work as described, but depends on dependency chain removal. This isn't always the case.

Anyway, I found the package I partly remembered!

[-] vikingtons@lemmy.world 2 points 1 month ago
[-] deadcatbounce@reddthat.com 2 points 1 month ago* (last edited 1 month ago)

Thank-you. Hopefully it helps a few here. I updated to the beta f41 just now, faultless - I haven't done an update to beta for some time. Only a couple Gnome Extensions don't work but that's expected.

There was only one rpmnew/rpmsav set: on cups browser. Nothing interesting. I think I may have forgotten to update one before.

I was expecting xorg to be removed by the remove packages thing, but it didn't. Maybe next time. I think I'm very 'previous'!

[-] deadcatbounce@reddthat.com 1 points 1 month ago

No, these packages are in the dependencies list of other packages so auto remove isn't the solution.

The more I think about it, the more I am convinced that there's an official package to 'install' which will remove technologies no longer current.

this post was submitted on 30 Sep 2024
6 points (100.0% liked)

Fedora Linux

1766 readers
1 users here now

All about Fedora Linux

founded 5 years ago
MODERATORS