Move OS package installation code from Halcyon
Refactor OS package installation