Managing packages and environments