Useful CLI tools (bash) for Arch Linux administration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
322 B

  1. #!/bin/env bash
  2. # Simple core KDE package finder on Arch Linux
  3. # Pekka Helenius, 2018
  4. pattern="https://community.kde.org/Frameworks"
  5. IFS=$'\n'
  6. for pkg in $(pacman -Q | awk '{print $1}'); do
  7. if [[ $(printf $(pacman -Qi $pkg | grep -E ${pattern} &> /dev/null)$?) -eq 0 ]]; then
  8. echo $pkg
  9. fi
  10. done
  11. unset IFS