Install gems by groups.