Install dependencies and packages