implement commands corresponding to pacman -Qo and -Ql

Signed-off-by: Mattias Andrée <maandree@operamail.com>