Browse Source

Add script for finding KDE packages on Arch Linux

master
Pekka Helenius 6 years ago
committed by GitHub
parent
commit
77d6f92da8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      misc/kdepkgs.sh

+ 13
- 0
misc/kdepkgs.sh View File

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

Loading…
Cancel
Save