Refactoring ubuntu pacakge installation