This is the original command:
yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"
I would like to create 4 folders for these. (1 folder for each).
mkdir Desktop
mkdir Desktop_Platform
mkdir X_Window_System
mkdir Fonts
Then I would like to run:
yum groupinfo Desktop
to see what packages are in that group, and download each one to the first folder above, via:
yumdownloader --resolve <package_name>
Same thing for every other folder and group above. So I repeat this process 4 times, until each folder has all the RPM files for each group.
Now I re-install CentOS Linux minimal, and then I want to install all of the groups without running:
yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"
Can it be done by going into each one of those folders individually and running this command:
yum --nogpgcheck localinstall *.rpm
?