Update main.yml

Add method to handle package installation