libexec/sh/linux: Function to list installed packages