#!/usr/bin/env bash
while read -r pkg; do
pacman -Qi "$pkg" >/dev/null 2>&1 || printf '%s\n' "$pkg"
done < packages