Created
December 19, 2020 19:28
-
-
Save tejasbubane/3897c43f9851f53cf7ef2fb114fa9405 to your computer and use it in GitHub Desktop.
Revisions
-
tejasbubane created this gist
Dec 19, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ # No need to run this everyday - once a month should be fine # Remove cache: sudo pacman -Scc yay -Scc # Remove unwanted dependencies: yay -Yc # Remove orphan packages sudo pacman -Qtdq | sudo pacman -Rns # Cleanup cache: du -sh ~/.cache rm -rf ~/.cache/* # Clean the journal: du -sh /var/log/journal sudo journalctl vacuum-time=1weeks # Update mirrors sudo reflector -c India -c Singapore -c France -c Germany --age 12 --completion-percent 100 --protocol https --sort rate --verbose --save /etc/pacman.d/mirrorlist # Update packages: sudo pacman -Syyu yay -Syu --devel --timeupdate