Dotfiles/update.sh

16 lines
776 B
Bash
Executable File

#!/bin/bash
# Batch full-system upgrade — runs both official repos and AUR in one shot.
# Prefer sysupdate.sh for interactive, per-package control; use this script
# only when a silent, non-interactive sweep is acceptable (e.g. in CI or cron).
# -Syu: sync package databases (-y) then upgrade all installed packages (-u);
# --noconfirm skips all "proceed? [Y/n]" prompts
pacman -Syu --noconfirm
# yay wraps pacman and also handles AUR packages in a single pass.
# --answerdiff None : never show diffs for PKGBUILDs (avoids interactive pause)
# --answerclean All : always clean build directories before rebuilding
# --removemake : discard make-only dependencies after the build completes
yay -Syu --noconfirm --answerdiff None --answerclean All --removemake