archupdate

One command to fully update and clean up an Arch Linux system (pacman, AUR, Flatpak), as a fish function.

What it does

upd is a fish function that runs the whole maintenance routine of an Arch Linux machine in one go:

  1. updates the official packages with pacman -Syu;
  2. updates AUR packages with yay or paru, whichever is installed;
  3. updates Flatpak apps and removes unused runtimes;
  4. removes orphaned packages;
  5. cleans the package cache.

Installation

Save upd.fish in ~/.config/fish/functions/, then open a new terminal. The file name is the command:

~ $ upd
update official packages
[sudo] password for you: