Skip to content

Instantly share code, notes, and snippets.

@jkhsjdhjs
Created August 21, 2019 20:27
Show Gist options
  • Save jkhsjdhjs/891b94fd9b7fbc94936d326557a04e68 to your computer and use it in GitHub Desktop.
Save jkhsjdhjs/891b94fd9b7fbc94936d326557a04e68 to your computer and use it in GitHub Desktop.
pacman: check for unsatisfied dependencies
pacman -Q $(pacman -Qq | pacman -Qi | grep "Depends On" | awk '{for(i=1;i<4;i++) $i=""; print}' | grep -v None | sed 's/ /\n/g' | cut -d'>' -f1 | cut -d'<' -f1 | cut -d'=' -f1 | grep -v "^$" | sort | uniq | xargs) | grep "^error: "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment