Skip to content

Get ignored AUR packages #864

Answered by adastx
adastx asked this question in Q&A
Discussion options

You must be logged in to vote

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:
1: https://bbs.archlinux.org/viewtopic.php?id=191442
2: https://bbs.archlinux.org/viewtopic.php?id=171072

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adastx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant