Update maintenance script

This commit is contained in:
2024-01-05 19:20:01 +00:00
parent 0fdac6c705
commit 21f498b029
3 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
#! /bin/bash
echo -e "\e[31m[+] Upgrading...\e[0m"
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt autoremove
sudo apt autoclean
echo -e "\e[31m[+] Removing logs older than 7d...\e[0m"
sudo journalctl --vacuum-time=7d
echo -e "\e[31m[I] Cleaning flatpak...:\e[0m"
flatpak remove --unused
read -p "Press enter to exit."