Skip to content

Instantly share code, notes, and snippets.

@faultylee
Last active January 10, 2017 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faultylee/d929e5c2d22c101cdcb779c0adbaa8fd to your computer and use it in GitHub Desktop.
Save faultylee/d929e5c2d22c101cdcb779c0adbaa8fd to your computer and use it in GitHub Desktop.
Check for moved/renamed AUR
#!/bin/bash
pacman -Qqm | while read line ;
do
aur_result=$(curl -o /dev/null --silent --head --write-out '%{http_code}\n' "https://aur.archlinux.org/packages/${line}/")
if [[ "$aur_result" = "404" ]]; then
echo ${line} ;
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment