Added support for listing installed and available packages.