New post: XBPS API example: list installed pkgs (emulating pacman -Q).