prepare: Return list of packages in YAML

This allows for more flexibility in the future.