Install packages in headless mode