Last active
March 14, 2023 09:56
-
-
Save anirudh-ramesh/406b2ae9d66cb7e704d6efe1011e6d32 to your computer and use it in GitHub Desktop.
Clean Snap packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# journalctl --disk-usage | |
journalctl --vacuum-size=50M | |
journalctl --vacuum-time=10d | |
echo SystemMaxUse=500M | tee -a /etc/systemd/journald.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' | | |
while read snapname revision; do | |
snap remove "$snapname" --revision="$revision" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment