this post was submitted on 14 Sep 2024
34 points (97.2% liked)

Arch Linux

7175 readers
2 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 
#!/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'
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 6 points 4 days ago (1 children)
[โ€“] [email protected] 3 points 4 days ago* (last edited 4 days ago)

Love this. One of those extremely satisfying terminal commands to pointlessly run over and over, so much so that I added it to my crontab so I don't do that ๐Ÿ˜ญ