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

  • @[email protected]
    link
    fedilink
    English
    22 months ago

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

    • Vik
      link
      English
      22 months ago

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

      • deadcatbounceOP
        link
        fedilink
        22 months 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!

        • Vik
          link
          English
          22 months ago

          ah right, glad to hear.

          • deadcatbounceOP
            link
            fedilink
            2
            edit-2
            2 months 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’!

    • deadcatbounceOP
      link
      fedilink
      12 months 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.