this post was submitted on 09 Feb 2024
7 points (88.9% liked)

Linux

5191 readers
38 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 1 year ago
MODERATORS
 

I just noticed, that my SSD is almost full and I think it is because of all the zypper packages I got installed. I've got another ~100gb SSD thats just for stuff (mounted unter "Misc" says it all) and would like to move some (or all?) of the packages like vscode, podman or other stuff on that second SSD. Is there a way to do that with zypper without removing and installing them again under the new path?

top 2 comments
sorted by: hot top controversial new old
[โ€“] lawmurray@programming.dev 2 points 9 months ago* (last edited 9 months ago) (1 children)

You might want to confirm that it is indeed zypper packages before you rearrange too much: Disk Usage Analysis on the desktop, or du -sch * on the console will get you some numbers by directory. It could also be cached packages, clean them up with zypper clean --all.

I'm not sure about specifying different destination directories with zypper, but you could try installing something like vscode from Flatpak rather than zypper, and specifying --user so it goes into your home directory (if that's a different partition).

I'd also look at your containers with podman and clean up any old ones, they can take up a lot of space.

[โ€“] xtapa@discuss.tchncs.de 2 points 9 months ago

I've found the du command (but with other flags) and it led me to some old snapshots that took up a good chunk of space. du -sch revealed some 5gb of junk in my download folder, so that was a good call too ;D

zypper clean did not too much, but I got ~40gb of space back, so thats nice. I'll probably try to replace some of the not so close to the system stuff with flatpaks. Thats a thing I wanted to dive deeper into anyways.

For podman, I only just installed it because I wanted to learn more about container / docker stuff (it's part of my daily professional life, but I always feel like I don't actually know anything about it), so theres nothing to be removed. It was just the package that made me aware of the little space I had left on my disk.

Thanks, you've been a great help :)