Skip Navigation

Thoughts on my update script? Any suggestions for improvement?

#!/usr/bin/env bash
echo -e '\nReading the news...\n'
        yay -Pw
echo -e '\nUpdating...\n'
        sudo pacman -Syu
echo -e '\nLooking for orphaned packages...\n'
        yay -Qtd
echo -e '\nLooking for obsolete packages...\n'
        url='https://aur.archlinux.org/rpc?v=5&'
        pacman -Qmq | sort >| /tmp/pkgs
        curl -s "${url}type=info$(printf '&arg[]=%s' $(cat /tmp/pkgs))" \
                | jq -r '.results[]|.Name' | sort | comm -13 - /tmp/pkgs
echo -e '\nLooking for changed config files...\n'
        sudo find /etc -name *.pac*
echo -e '\nDone.\n'
6

You're viewing a single thread.

6 comments
6 comments