Skip to content

Instantly share code, notes, and snippets.

@br0kenpixel
Last active May 31, 2026 08:04
Show Gist options
  • Select an option

  • Save br0kenpixel/97f1a0733237f48330aa781e73b9b35a to your computer and use it in GitHub Desktop.

Select an option

Save br0kenpixel/97f1a0733237f48330aa781e73b9b35a to your computer and use it in GitHub Desktop.
update-arch.sh
#!/bin/zsh
#
# Arch/CachyOS update & cleanup script
#
# Update system & AUR packages and applications
sudo pacman -Syu
paru -Syu
paru -Scc
flatpak update
# Rust development tools
rustup update
cargo install-update -a
cargo cache --autoclean-expensive
#espup update
# Javascript tools
bun upgrade
rm -rf ~/.bun/install/cache/
npm cache clean --force
pnpm cache delete
pnpm store prune
# Python tools & cleanup
pipx upgrade-all
pip cache purge
uv cache clean
# Golang cache cleanup
go clean -cache -testcache -modcache -fuzzcache
# PHP tools & cleanup
composer self-update
composer global require laravel/installer
composer clear-cache
# Rclone update
sudo rclone selfupdate
# BTRFS scrub
#sudo btrfs scrub start -B /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment