check if group of packages are installed or not