Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
executable file 81 lines (54 sloc) 2.14 KB
# todo:
# use yay as a pacman frontend
# use some colors for the echo messages
# listen to sigint
# Make sure to have a strong connection to the internet for the steps that depend on the network
# The requests to the various packages can be run in parallel!
neofetch --gtk3 off --gtk2 off --refresh_rate on
echo "Let's look for any failed services as reported by systemd"
systemctl --failed
echo "Here, we can see the error logs from journalctl ..."
journalctl -p 3 -xb
echo "Clearing old system logs ..."
sudo journalctl --vacuum-time=1d
echo "updating anti-virus signatures"
sudo freshclam
echo "Running anti virus scan on home folder"
clamscan ~
echo "Emptying trash ..."
# needs to be adapted to fish script ... help expand
rm -rf ~/.local/share/Trash/files/*
echo "Clearing pacman caches ..."
paccache -r
echo "Removing orphaned packages ..."
for p in (pacman -Qtdq)
# this seems pretty risky
yes | sudo pacman -Rns $p
echo "Retrieving mirror status and updating based on location"
# pacman-mirrors --status
sudo pacman-mirrors --geoip --api --protocol https
echo "Updating pacman packages ..."
# describe what the flags are doing; should be easier to read
echo "The following Kernels are intalled:"
mhwd-kernel --listinstalled
echo "These Kernels are available:"
mhwd-kernel --list
echo "If applicable, please consider upgrading with: 'mhwd-kernel install <kernel_name>'"
echo "Please consider using Filelight to see how the file system is used"
echo "Here is an overview of your log file folders:"
sudo du -h /var/log
echo "Outdated npm packages ..."
npm outdated -g --depth=0
# can we run this in parallel? Could be done independently of the manjaro package stuff
echo "Updating global npm packages ..."
sudo npm update -g
# the extension manager for my shell
omf update
echo "Consider inspecting what's on the hard drive by running filelight"
echo "When is the last time you have done a backup?"
echo "Maybe it is a good point in time to clear browser caches?"
echo "You should look at all the installed packages on this machine - do you need them all?"
echo "When is the last time you checked for the availability of a new kernel?"