-
Is there an option for this? I'd like to get a list of the AUR packages from pacman.conf's IgnorePkg= |
Beta Was this translation helpful? Give feedback.
Answered by
adastx
Oct 9, 2022
Replies: 1 comment
-
I just threw together this script with some snippets I found on the arch forums #!/bin/sh
# Get list of ignored pkgs
function ignored() {
pkgs="$(grep IgnorePkg /etc/pacman.conf | sed -e 's/IgnorePkg =//' -e 's/#.*//')"
grps="$(grep IgnoreGroup /etc/pacman.conf | sed -e 's/IgnoreGroup =//' -e 's/#.*//')"
[[ -n $grps ]] && pkgs="$pkgs $(pacman -Sgq $grps)"
echo -n "$pkgs" | tail -n -1
}
# Return only AUR pkgs
for pkg in $(ignored)
do
pacman -Si $pkg &>/dev/null || echo "$pkg"
done sources: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adastx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just threw together this script with some snippets I found on the arch forums
sources:
1: https://bbs.archlinux.org/viewtopic.php?id=191442
2: https://bbs.archlinux.org/viewtopic.php?id=171072