I recently switched from endeavouros to opensuse TW after joining the linux world 4 months ago (im a linux newbie) and i like the distro so far, but there’s one catch

There’s no sudo apt autoremove equivalent for opensuse and i find it really hard to choose which old .config, cache and other junk files i can delete to save space.

Can someone help me?

  • aard@kyu.de
    link
    fedilink
    arrow-up
    13
    ·
    1 year ago

    zypper remove --clean-deps removes automatically installed requirements when removing a package. zypper packages --unneeded will show a list of packages no longer required.

    Setting solver.onlyRequires to true in /etc/zypp.conf does not install recommends - it’s way less of a problem than on Debian/Ubuntu due to not recommending half the world, but still useful. Setting solver.cleandepsOnRemove will automatically remove automatically installed deps when removing a package (i.e., like always specifying --clean-deps).

  • aaron@lemm.ee
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    2
    ·
    1 year ago

    Simple. Run sudo apt autoremove and pretend like it worked. You’ll never know if it did or not. Like and subscribe

  • BCsven@lemmy.ca
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    If you don’t know the zypper commands just go into the GUI Yast Software tool, click on the various heading drop downs.

    Under Options drop-down you can check the option “Cleanup when deleting packages”

    Under View filter you can select Uneeded Packages, click to uncheck the boxes of what shows up and Apply.

    Also these are handy sheets.

    https://en.opensuse.org/images/1/17/Zypper-cheat-sheet-1.pdf

    https://en.opensuse.org/images/3/30/Zypper-cheat-sheet-2.pdf

  • Rimu@piefed.social
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    2
    ·
    1 year ago

    I’ve been using opensuse for years and not found a solution to this. I have a new appreciation for apt and my next OS will definitely be debian-based.