prepare: Return list of packages in YAML

This allows for more flexible in the future.