Initial commit

This commit is contained in:
Laszlo Uyttersprot
2025-12-11 01:36:40 +01:00
commit 008e76d0b8
6 changed files with 80 additions and 0 deletions

27
clean.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
# Arch Linux cleanup + update script
set -euo pipefail
echo "==> Updating packages..."
yay -Syu --noconfirm
echo "==> Removing orphaned dependencies..."
yay -Yc --noconfirm
echo "==> Checking for broken packages..."
yay -Dk
echo "==> Cleaning package cache..."
yay -Sc --noconfirm
echo "==> Cleaning user cache..."
rm -rf ~/.cache/*
echo "==> Emptying trash..."
rm -rf ~/.local/share/Trash/files/*
rm -rf ~/.local/share/Trash/info/*
echo "==> Cleaning system logs..."
sudo journalctl --vacuum-time=7d
echo "==> Done."