How can I list the packages that have been flagged as outdated on the remote repository. I can check archlinux.org/packages and see the desired information here: list of packages on remote, one is flagged out of date

When I run yay --show --stats I see flagged packages in the AUR like this: yay showing a remote package is flagged out of date

But this doesn't show information about packages installed with pacman. To be extra clear I am not talking about my system being out of date. I am talking about packages on the remote repository that are flagged as out of date. When a remote package is out of date it looks like this on archlinux.org:

showing a package on archlinux.org thats flagged as being out of date

  1. How can I see all the pacman installed flagged as out of date packages on my system?
  2. Is there a simple way to show pacman and yay packages that our flagged at the same time?
  3. If it can't be done using yay or pacman, can it be done with another program?

1 Answer 1


you will need jq installed first then run this command

comm -12 \
<(curl -Ss 'https://archlinux.org/packages/search/json/?arch=any&flagged=Flagged' | jq '.results[].pkgname' | tr -d '"' | sort) \
<(pacman -Qq | sort)

the fast pacman command this command is faster, but doesn't show all of the ones out of date


for package in $(pacman -Qq); do
    curl -Ss "https://archlinux.org/packages/search/json/?name=${package}&flagged=Flagged" | jq -r '.results[].pkgname'

the slow pacman command

this command is slower, but shows every package out of date


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .