System Trash Collection ANd Making Additional Space

Hello,

How do I remove unecessary packages and clean up any other unneeded files that are taking up space?

Thanks

Are you restricted on diskspace?

I any case, your question is a bit vague. How can we decide what you do not need from these two lines of information?

Programs take a surprisingly small space and removing them may lead to problems unless you know what you are doing. If you installed it you can uninstall it in general but heed all warnings. In doubt ask here. Easiest way is in Yast - Software management select package and mark to remove.

Some package come in as recommendations of other packages so may be reinstalled by updates. To stop after removal mark as taboo

If you are short on space in the root partition and use the BTRFS file system turn off or change how snapper works. If not why bother it is a huge pain to do since there is no magic program that can read your mind you have to remove each and everyone you don’t want.

Ubuntu sometimes leaves behind the original compressed package download files, after the packages themselves have been installed. Does Leap do this, or does it automatically remove these after the packages have been installed?

You can remove those with the following command, ordinarily yes those packages used to install are retained but typically don’t take that much room. The more common reason to remove is that package management somehow lost integrity and you want to start “clean” again.

zypper clean -a

TSU

That’s what I needed, thanks.

BTW, how can I check the space left in the root filesystem?

Depends on what file system for BTRFS

btrfs-filesystem df /

for all other

df

def works for BTRFS but number reported may not be correct do to snapshots