perform installation of the packages only if they are defined