Skip to content
Avinash H. Duduskar edited this page Jul 2, 2020 · 44 revisions

Command line examples for arch-update

Defaults

  • Check command : /usr/bin/checkupdates
  • Update command : gnome-terminal -e 'sh -c "sudo pacman -Syu ; echo Done - Press enter to exit; read" '

Add AUR Support

yaourt

  • Check command : /bin/sh -c "(/usr/bin/checkupdates; /usr/bin/yaourt -Qu -a | cut -c 5-) | sort -u -t' ' -k1,1"
  • Update command : gnome-terminal -- sh -c "yaourt -Syua ; yaourt -C ; echo Done - Press enter to exit; read"

pacaur

  • Check command : /bin/sh -c "/usr/bin/checkupdates; /usr/bin/pacaur -Qqu -a"
  • Update command : gnome-terminal -- sh -c "pacaur -Syu ; echo Done - Press enter to exit; read"
  • Update command (with terminator) : terminator -e 'pacaur -Syu ; echo Done - Press enter to exit; read '

aurman

  • Check command : /bin/sh -c "/usr/bin/checkupdates; /usr/bin/aurman -Qqu"
  • Update command : gnome-terminal -e 'sh -c "aurman -Syu ; echo Done - Press enter to exit; read" '
  • Update command (with terminator) : terminator -e 'aurman -Syu ; echo Done - Press enter to exit; read '

trizen

  • Check command : /bin/sh -c "/usr/bin/checkupdates; /usr/bin/trizen -Qqu -a"
  • Update command : gnome-terminal -e 'sh -c "trizen -Syu ; echo Done - Press enter to exit; read" '
  • Update command (with terminator) : terminator -e 'trizen -Syu ; echo Done - Press enter to exit; read '

yay

  • Check command : /bin/sh -c "(/usr/bin/checkupdates; /usr/bin/yay -Qqu --color never | sed 's/Get .*//') | sort -u -t' ' -k1,1"
  • Update command : gnome-terminal -e 'sh -c "yay ; echo Done - Press enter to exit; read" '

aurutils

  • Check command : /bin/sh -c "/usr/bin/checkupdates; /usr/bin/aur repo -d customrepo --list | /usr/bin/aur vercmp && /usr/bin/pacman -Qm | /usr/bin/aur vercmp"
  • Update command : gnome-terminal -e 'bash -c "sudo pacman -Syu && /usr/bin/grep -Fxf <(/usr/bin/pacman -Qq) <(/usr/bin/pacman -Slq customrepo) > ~/installed.txt && /usr/bin/xargs -a ~/installed.txt /usr/bin/aur sync repo -d customrepo; echo Done - Press enter to exit; read" '

Add Flatpak Support

  • Check command : /bin/sh -c "/usr/bin/checkupdates; /usr/bin/flatpak remote-ls --columns=application -a --updates"
  • Update command : gnome-terminal -e 'sh -c "sudo pacman -Syu; flatpak update; echo Done - Press enter to exit; read" '

To auto refresh the flatpak check after an update an empty file with user permissions can be used in the pacman local directory path. I.e gnome-terminal -e 'sh -c "sudo pacman -Syu; flatpak update; touch /var/lib/pacman/local/flatpak-arch-update; echo Done - Press enter to exit; read" '

Support for other distros than Arch

To be completed (help wanted)

Clone this wiki locally