this post was submitted on 29 Jan 2025
16 points (94.4% liked)

Linux

49393 readers
1589 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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?

top 8 comments
sorted by: hot top controversial new old
[–] aard@kyu.de 12 points 1 day 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).

[–] BCsven@lemmy.ca 8 points 1 day ago* (last edited 1 day 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

[–] aaron@lemm.ee 8 points 1 day ago (1 children)

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

[–] Diplomjodler3@lemmy.world 1 points 1 day ago

Yesterday I spent five hours cleaning out 247 MB on my $50, 1TB SSD. I am very efficient.

[–] gomp@lemmy.ml 2 points 1 day ago* (last edited 1 day ago)

sudo zypper packages --unneded will give you a list of packages that have not been explicitly requested and are not dependencies of explicitly requested packages. As for how to remove them... IDK (I do it manually, once in a blue moon: it's not like there's new unneded packages every week).

It's been a while since I've used debian, but IIRC apt autoremove will leave behind config files (unless you specify --purge).

In tumbleweed (and I think all rpm-based distros?) config files are removed per default together with packages (well, the config files installed with the package, not others that may have been created later such as the ones in your \~ - basically zypper rm is the same as apt purge).

[–] rimu@piefed.social 2 points 1 day ago (1 children)

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.

[–] bjoern_tantau@swg-empire.de 2 points 1 day ago (1 children)

Gimme a Debian based rolling release distro with the quality control of Tumbleweed and I'd switch in an instance.

[–] tux0r@feddit.org 2 points 1 day ago* (last edited 1 day ago)

Or try Slackware -CURRENT. Not Debian-based, but quality control is awesome. There even is an apt simulator for it.