Erik_
You're probably right.
Tue Jul 19, 2022 9:33am

That or I didn't fully read the output of it when I did.

Good to know I'm not the only one that goes through spamming those commands. Same goes for apt sometimes as well.

Speaking of apt and auto updating stuff. Ubuntu has been pushing "snaps" instead of the old "apt" way of doing things the past few years. It works I guess but it takes up a bunch more space and they don't auto clean up. My hdd space is low and whenever I'm all of sudden completely out of space, it's because a snap updated and now I have dead versions floating around.

I have this script I mostly took from Stack Overflow that cleans them out:
#!/bin/bash
# Removes old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu

snap list --all | awk '/disabled/{print $1, $3}' |
    while read snapname revision; do
        snap remove "$snapname" --revision="$revision"
    done


Ex here's my current "df -h"

Filesystem           Size  Used Avail Use% Mounted on
udev                 3.9G     0  3.9G   0% /dev
tmpfs                792M   28M  765M   4% /run
/dev/sda1            219G  205G  3.7G  99% /
tmpfs                3.9G  8.0M  3.9G   1% /dev/shm
tmpfs                5.0M  4.0K  5.0M   1% /run/lock
tmpfs                3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/loop1           9.0M  9.0M     0 100% /snap/canonical-livepatch/146
/dev/loop0           142M  142M     0 100% /snap/skype/214
/dev/loop2            92M   92M     0 100% /snap/gtk-common-themes/1535
/dev/loop4            56M   56M     0 100% /snap/core18/2344
/dev/loop3           114M  114M     0 100% /snap/core/13308
/dev/loop6            56M   56M     0 100% /snap/core18/2409
/dev/loop10          128K  128K     0 100% /snap/acrordrdc/62
/dev/loop9           296M  296M     0 100% /snap/vlc/2344
/dev/loop11          566M  566M     0 100% /snap/pycharm-community/286
/dev/loop12          347M  347M     0 100% /snap/wine-platform-runtime/309
/dev/loop8            82M   82M     0 100% /snap/gtk-common-themes/1534
/dev/loop13          304M  304M     0 100% /snap/wine-platform-5-stable/18
/dev/loop14          566M  566M     0 100% /snap/pycharm-community/281
/dev/loop15          323M  323M     0 100% /snap/wine-platform-6-stable/19
/dev/loop17          9.0M  9.0M     0 100% /snap/canonical-livepatch/138
/dev/loop18          878M  878M     0 100% /snap/intellij-idea-community/366
/dev/loop19           37M   37M     0 100% /snap/heroku/4092
/dev/loop20          128K  128K     0 100% /snap/bare/5
/dev/loop21          878M  878M     0 100% /snap/intellij-idea-community/372
/dev/loop22          100M  100M     0 100% /snap/wine-platform-3-stable/14
/dev/loop23           87M   87M     0 100% /snap/simplescreenrecorder/1
/dev/loop24          165M  165M     0 100% /snap/gnome-3-28-1804/161
cgmfs                100K     0  100K   0% /run/cgmanager/fs
tmpfs                792M  140K  792M   1% /run/user/1000
/dev/loop25          114M  114M     0 100% /snap/core/13425
/dev/loop16          142M  142M     0 100% /snap/skype/217
/dev/loop7           347M  347M     0 100% /snap/wine-platform-runtime/310


After running script:
Filesystem           Size  Used Avail Use% Mounted on
udev                 3.9G     0  3.9G   0% /dev
tmpfs                792M   28M  765M   4% /run
/dev/sda1            219G  202G  6.0G  98% /
tmpfs                3.9G  8.0M  3.9G   1% /dev/shm
tmpfs                5.0M  4.0K  5.0M   1% /run/lock
tmpfs                3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/loop1           9.0M  9.0M     0 100% /snap/canonical-livepatch/146
/dev/loop2            92M   92M     0 100% /snap/gtk-common-themes/1535
/dev/loop6            56M   56M     0 100% /snap/core18/2409
/dev/loop10          128K  128K     0 100% /snap/acrordrdc/62
/dev/loop9           296M  296M     0 100% /snap/vlc/2344
/dev/loop11          566M  566M     0 100% /snap/pycharm-community/286
/dev/loop13          304M  304M     0 100% /snap/wine-platform-5-stable/18
/dev/loop15          323M  323M     0 100% /snap/wine-platform-6-stable/19
/dev/loop19           37M   37M     0 100% /snap/heroku/4092
/dev/loop20          128K  128K     0 100% /snap/bare/5
/dev/loop21          878M  878M     0 100% /snap/intellij-idea-community/372
/dev/loop22          100M  100M     0 100% /snap/wine-platform-3-stable/14
/dev/loop23           87M   87M     0 100% /snap/simplescreenrecorder/1
/dev/loop24          165M  165M     0 100% /snap/gnome-3-28-1804/161
cgmfs                100K     0  100K   0% /run/cgmanager/fs
tmpfs                792M  136K  792M   1% /run/user/1000
/dev/loop25          114M  114M     0 100% /snap/core/13425
/dev/loop16          142M  142M     0 100% /snap/skype/217
/dev/loop7           347M  347M     0 100% /snap/wine-platform-runtime/310


Went from 3.7GB free to 6GB free just by clearing out old snaps that don't auto remove. Also, they clutter up the output of "df"


"I have to wonder if people will ever understand that when you mess up where things were placed you're destroying their work. Maybe not..."

I think as long as we have Agile "needs a release every sprint to show momentum" development, this is going to continue. Saving exactly where things were is probably low priority and therefore kicked down the road to the backlog. Instead of getting a new version every few months that could disrupt you, now you get one ever two weeks.


  • Maybe you didn't issue the magic commands? - Puckdropper, Tue Jul 19 2022 2:56am
    dist upgrade dist update dist upgrade dist update-from-releases dist update dist upgrade dist thing -nvrwrks That sounds totally plausible about it being a LTS. It sure does suck when your OS upgrade messes up a piece of hardware. Just because 99.9999% of the world doesn't use the cue cat,... more
    • You're probably right.- Erik_, Tue Jul 19 2022 9:33am
      • You're welcome to use some of my system resources - Puckdropper, Mon Jul 25 2022 2:22am
        It's just like visiting my house. Sure, wash your hands in my sink. Don't store your junk in my living room, though. Use my resources but don't abuse them. 6 GB free? You gotta clear your logs, man! That'll free up at least another 10 GB. Sometimes I think we need to stop isolating programmers... more
        • I just cleaned up another 5GB from hidden files - Erik_, Tue Aug 09 2022 10:44am
          From versions of software I don't have installed anymore. There's a few more gigs I could clear up if I cleaned out the ~/.cache dir but I'm not sure if anything will blow up if I do that. I agree about leaving things as you came. This drive is full of trash that's accumulated over the years and... more
          • But it's LINUX! IT DOESN'T NEED PERIODIC REINSTALLS!!!!1oneo - Puckdropper, Wed Aug 10 2022 2:18am
            Wow, 500 MB of Perl stuff just for one package manager. Sometimes I think they just don't ever look at how much they're accumulating. That would be interesting, if you had a spare drive to copy your install to. Just blow out the ~/.cache dir and see what happens. It'd be interesting to see what... more
            • Back in college around 2005... - Erik_, Sun Aug 14 2022 12:35am
              I had a friend who was a huuuuge Linux fanatic. I was using Slackware at the time and he convinced me to switch over to Debian. It was actually the "apt" package manager he showed me which sold me as with Slackware you had to build everything from source and manually manage your dependencies (aka a... more
              • Windows has much the same problem with programs - Puckdropper, Sat Aug 20 2022 2:32am
                writing stuff where they don't need to. It's gotten worse now that Program Files is considered "write once" and you're supposed to store things like high score tables or recently opened document lists (I'm making stuff up) in AppData, a hidden system folder. That's too hard, so they just write it to... more
                • I think those started with Windows XP, right? It's been forever since I've used it. But yeah, same issue. Everything gets clogged up in \Users\$username\** instead of /home/$username/** That would be an interesting concept. You would need a pretty locked down OS for something like that to work. I... more
                  • I can't tell you why everyone seems to have a C:\Intel folde - Puckdropper, Thu Aug 25 2022 4:13am
                    Guess the world's biggest PC microprocessor company (or second biggest?) can't figure out how to make their stuff work on Windows? It gets a little annoying having so many programs that haven't figured out the Windows system, but then again why is this so hard? Windows XP started really enforcing it... more
                    • Dell used to do that too. - Erik_, Wed Sep 07 2022 11:52am
                      I'm not sure if they do anymore but their device drivers would be in something like C:\dell. I guess they figure they want to keep it somewhere easy to find and completely separate from the OS related directories. Its interesting going back to my 486 where I have to use "dir /w" or "dir | more" on C:\... more
                      • A good bit of it was C:\Program Files - Puckdropper, Thu Sep 08 2022 5:59am
                        started to get locked down and Documents wasn't really the right place for things like device drivers. The users *would* delete them. [quote] Yep, exactly this. There would even probably be a StackOverflow question answered with "For what you're doing you should use fsave_manual. Using these parameters... more
"Forces act when not restrained" - Puckdropper