Let's create a repo for:yum groupinstall Desktopfirst, i create a folder named test/root/Desktop/testnext i need to know what is inside of Desktop group.yum groupinfo Desktopresult:Group: Desktop Description: A minimal desktop that can also be used as a thin client. Mandatory Packages:   NetworkManager   NetworkManager-gnome   alsa-plugins-pulseaudio   at-spi   control-center   dbus   gdm   gdm-user-switch-applet   gnome-panel   gnome-power-manager   gnome-screensaver   gnome-session   gnome-terminal   gvfs-archive   gvfs-fuse   gvfs-smb   metacity   nautilus   notification-daemon   polkit-gnome   xdg-user-dirs-gtk   yelp Default Packages:   control-center-extra   eog   gdm-plugin-fingerprint   gnome-applets   gnome-media   gnome-packagekit   gnome-vfs2-smb   gok   openssh-askpass   orca   pulseaudio-module-gconf   pulseaudio-module-x11   rhn-setup-gnome   vino Optional Packages:   sabayon-apply   tigervnc-server   xguesti suppose optional packages are to be ignored, for each of the mandatory and default packages, i am going to download them via yumdownloaderlet's do just that: cd /root/Desktop/testand then download each one:# Mandatory Packages:yumdownloader --resolve NetworkManageryumdownloader --resolve NetworkManager-gnomeyumdownloader --resolve alsa-plugins-pulseaudioyumdownloader --resolve at-spiyumdownloader --resolve control-centeryumdownloader --resolve dbusyumdownloader --resolve gdmyumdownloader --resolve gdm-user-switch-appletyumdownloader --resolve gnome-panelyumdownloader --resolve gnome-power-manageryumdownloader --resolve gnome-screensaveryumdownloader --resolve gnome-sessionyumdownloader --resolve gnome-terminalyumdownloader --resolve gvfs-archiveyumdownloader --resolve gvfs-fuseyumdownloader --resolve gvfs-smbyumdownloader --resolve metacityyumdownloader --resolve nautilusyumdownloader --resolve notification-daemonyumdownloader --resolve polkit-gnomeyumdownloader --resolve xdg-user-dirs-gtkyumdownloader --resolve yelp#Default Packages:yumdownloader --resolve control-center-extrayumdownloader --resolve eogyumdownloader --resolve gdm-plugin-fingerprintyumdownloader --resolve gnome-appletsyumdownloader --resolve gnome-mediayumdownloader --resolve gnome-packagekityumdownloader --resolve gnome-vfs2-smbyumdownloader --resolve gokyumdownloader --resolve openssh-askpassyumdownloader --resolve orcayumdownloader --resolve pulseaudio-module-gconfyumdownloader --resolve pulseaudio-module-x11yumdownloader --resolve rhn-setup-gnomeyumdownloader --resolve vinookay, everything got downloaded to the 'test' folder. in this 'test' folder let's run this command to create a 'Desktop' group.yum-groups-manager -n Desktop --id=desktop --save=Desktop.xml \--mandatory  \NetworkManager \NetworkManager-gnome  \alsa-plugins-pulseaudio  \at-spi  \control-center  \dbus  \gdm  \gdm-user-switch-applet  \gnome-panel  \gnome-power-manager  \gnome-screensaver  \gnome-session  \gnome-terminal  \gvfs-archive  \gvfs-fuse  \gvfs-smb \metacity \nautilus  \notification-daemon  \polkit-gnome  \xdg-user-dirs-gtk  \yelp \--default  \control-center-extra  \eog  \gdm-plugin-fingerprint  \gnome-applets  \gnome-media  \gnome-packagekit  \gnome-vfs2-smb  \gok  \openssh-askpass  \orca  \pulseaudio-module-gconf  \pulseaudio-module-x11  \rhn-setup-gnome  \vinoerror:yum-groups-manager: error: no such option: --defaultlet's remove the '--default' so i suppose everything is 'mandatory'yum-groups-manager -n Desktop --id=desktop --save=Desktop.xml \--mandatory  \NetworkManager \NetworkManager-gnome  \alsa-plugins-pulseaudio  \at-spi  \control-center  \dbus  \gdm  \gdm-user-switch-applet  \gnome-panel  \gnome-power-manager  \gnome-screensaver  \gnome-session  \gnome-terminal  \gvfs-archive  \gvfs-fuse  \gvfs-smb \metacity \nautilus  \notification-daemon  \polkit-gnome  \xdg-user-dirs-gtk  \yelp \control-center-extra  \eog  \gdm-plugin-fingerprint  \gnome-applets  \gnome-media  \gnome-packagekit  \gnome-vfs2-smb  \gok  \openssh-askpass  \orca  \pulseaudio-module-gconf  \pulseaudio-module-x11  \rhn-setup-gnome  \vinoit created the file : Desktop.xmllet's see what it looks like :[root@localhost test]# cat Desktop.xml<?xml version=1.0 encoding=UTF-8?><!DOCTYPE comps PUBLIC -//Red Hat, Inc.//DTD Comps info//EN comps.dtd><comps>  <group>   <id>desktop</id>   <default>false</default>   <uservisible>true</uservisible>   <display_order>1024</display_order>   <name>Desktop</name>   <description></description>    <packagelist>      <packagereq type=mandatory>NetworkManager</packagereq>      <packagereq type=mandatory>NetworkManager-gnome</packagereq>      <packagereq type=mandatory>alsa-plugins-pulseaudio</packagereq>      <packagereq type=mandatory>at-spi</packagereq>      <packagereq type=mandatory>control-center</packagereq>      <packagereq type=mandatory>control-center-extra</packagereq>      <packagereq type=mandatory>dbus</packagereq>      <packagereq type=mandatory>eog</packagereq>      <packagereq type=mandatory>gdm</packagereq>      <packagereq type=mandatory>gdm-plugin-fingerprint</packagereq>      <packagereq type=mandatory>gdm-user-switch-applet</packagereq>      <packagereq type=mandatory>gnome-applets</packagereq>      <packagereq type=mandatory>gnome-media</packagereq>      <packagereq type=mandatory>gnome-packagekit</packagereq>      <packagereq type=mandatory>gnome-panel</packagereq>      <packagereq type=mandatory>gnome-power-manager</packagereq>      <packagereq type=mandatory>gnome-screensaver</packagereq>      <packagereq type=mandatory>gnome-session</packagereq>      <packagereq type=mandatory>gnome-terminal</packagereq>      <packagereq type=mandatory>gnome-vfs2-smb</packagereq>      <packagereq type=mandatory>gok</packagereq>      <packagereq type=mandatory>gvfs-archive</packagereq>      <packagereq type=mandatory>gvfs-fuse</packagereq>      <packagereq type=mandatory>gvfs-smb</packagereq>      <packagereq type=mandatory>metacity</packagereq>      <packagereq type=mandatory>nautilus</packagereq>      <packagereq type=mandatory>notification-daemon</packagereq>      <packagereq type=mandatory>openssh-askpass</packagereq>      <packagereq type=mandatory>orca</packagereq>      <packagereq type=mandatory>polkit-gnome</packagereq>      <packagereq type=mandatory>pulseaudio-module-gconf</packagereq>      <packagereq type=mandatory>pulseaudio-module-x11</packagereq>      <packagereq type=mandatory>vino</packagereq>      <packagereq type=mandatory>xdg-user-dirs-gtk</packagereq>      <packagereq type=mandatory>yelp</packagereq>    </packagelist>  </group></comps>Now i need to create a 'group' in the repo ?based on info i read i am suppose to run this command to create a group in the repo i thought what i did was basically just that. i suppose there is another step ?[root@localhost test]# createrepo -g /root/Desktop/test/Desktop.xml /root/Desktop/test/Spawning worker 0 with 60 pkgsWorkers FinishedGathering worker resultsSaving Primary metadataSaving file lists metadataSaving other metadataGenerating sqlite DBsSqlite DBs complete[root@localhost test]# okay, let's run ls to see what is in this folder test now..[root@localhost test]# lsalsa-lib-1.0.22-3.el6.i686.rpmalsa-plugins-pulseaudio-1.0.21-3.el6.i686.rpmalsa-plugins-pulseaudio-1.0.21-3.el6.x86_64.rpmat-spi-1.28.1-2.el6.centos.i686.rpmat-spi-1.28.1-2.el6.centos.x86_64.rpmcontrol-center-2.28.1-38.el6.i686.rpmcontrol-center-2.28.1-38.el6.x86_64.rpmcontrol-center-extra-2.28.1-38.el6.x86_64.rpmdbus-1.2.24-7.el6_3.x86_64.rpmDesktop.xmleog-2.28.2-4.el6.x86_64.rpmflac-1.2.1-6.1.el6.i686.rpmgdm-2.30.4-39.el6.x86_64.rpmgdm-plugin-fingerprint-2.30.4-39.el6.x86_64.rpmgdm-user-switch-applet-2.30.4-39.el6.x86_64.rpmgnome-applets-2.28.0-7.el6.centos.x86_64.rpmgnome-media-2.29.91-6.el6.x86_64.rpmgnome-packagekit-2.28.3-7.el6.x86_64.rpmgnome-panel-2.30.2-14.el6.x86_64.rpmgnome-power-manager-2.28.3-7.el6_4.x86_64.rpmgnome-screensaver-2.28.3-24.el6_4.1.x86_64.rpmgnome-session-2.28.0-18.el6.x86_64.rpmgnome-terminal-2.31.3-8.el6.x86_64.rpmgnome-vfs2-smb-2.24.2-6.el6.x86_64.rpmgok-2.28.1-5.el6.x86_64.rpmgvfs-archive-1.4.3-15.el6.x86_64.rpmgvfs-fuse-1.4.3-15.el6.x86_64.rpmgvfs-smb-1.4.3-15.el6.x86_64.rpmlibasyncns-0.8-1.1.el6.i686.rpmlibcanberra-0.22-1.el6.centos.i686.rpmlibcanberra-gtk2-0.22-1.el6.centos.i686.rpmlibgnomekbd-2.28.2-2.el6.i686.rpmlibgudev1-147-2.46.el6.i686.rpmlibogg-1.1.4-2.1.el6.i686.rpmlibsndfile-1.0.20-5.el6.i686.rpmlibtdb-1.2.10-1.el6.i686.rpmlibtool-ltdl-2.2.6-15.5.el6.i686.rpmlibudev-147-2.46.el6.i686.rpmlibvorbis-1.2.3-4.el6_2.1.i686.rpmlibwacom-0.5-4.el6.i686.rpmlibxkbfile-1.0.6-1.1.el6.i686.rpmlibxklavier-4.0-9.el6.i686.rpmlibXScrnSaver-1.2.2-2.el6.i686.rpmlibXtst-1.2.1-2.el6.i686.rpmmetacity-2.28.0-23.el6.i686.rpmmetacity-2.28.0-23.el6.x86_64.rpmnautilus-2.28.4-19.el6.x86_64.rpmNetworkManager-0.8.1-43.el6.x86_64.rpmNetworkManager-gnome-0.8.1-43.el6.x86_64.rpmnotification-daemon-0.5.0-1.el6.x86_64.rpmopenssh-askpass-5.3p1-84.1.el6.x86_64.rpmorca-2.28.2-1.el6.x86_64.rpmpolkit-gnome-0.96-3.el6.i686.rpmpolkit-gnome-0.96-3.el6.x86_64.rpmpulseaudio-libs-0.9.21-14.el6_3.i686.rpmpulseaudio-module-gconf-0.9.21-14.el6_3.x86_64.rpmpulseaudio-module-x11-0.9.21-14.el6_3.x86_64.rpmrepodatatcp_wrappers-libs-7.6-57.el6.i686.rpmvino-2.28.1-8.el6_3.x86_64.rpmxdg-user-dirs-gtk-0.8-7.el6.x86_64.rpmyelp-2.28.1-17.el6_3.x86_64.rpm[root@localhost test]# looks like a folder named 'repodata' has been created.[root@localhost test]# cd repodata[root@localhost repodata]# ls02e6e67a0eedf0b7d561253fd5e7d71032a6e0054536b88e75563681822dd774-filelists.xml.gz3fc84c02d6c0e033441e6f00353a98a7c2cc5530ff27f63206d5ef300890d9a0-primary.xml.gz91fe015bc6db77cd159518699d5c70838143681955bf3d3c28804d08063c3f92-filelists.sqlite.bz2af6d0c22babf5796feed2a24e1d74d5d0c6507f2625fbfa65c8acc8495856dc0-primary.sqlite.bz2c18a67f5fc206032c0081bc55bee52a2ea258873c093cdb55cda89d68a7af4eb-other.xml.gzc9913ed4169437a1728d021cce5d54f8b7bbf02e82fa5cab5345f653f97c64ae-other.sqlite.bz2e5ad7753d9fe659de92967aaeb29de70e0cf4b9bc3e8a07970a236748299b486-Desktop.xmlf9c925984ac89f3772590032080c01bca01df81b9bf611041cfbaceaaf107114-Desktop.xml.gzrepomd.xml[root@localhost repodata]# looks like lots of gibberish random stuff. but anyway, now how exactly do i use this repo to install..yum -y groupinstall Desktop to be more specific, how do i test it given that i alreadyhave it installed?i just would like to ensure it won't fail when i re-install minimal linux and then try to install this from this repo.
Is this the correct way to create a repo for offline usage ? ( for : yum groupinstall Desktop )
yum;repository
You can use Media Repo Insert Installation Media and Mount it using :mount /dev/cdrom /mntEdit /etc/yum.repos.d/Media.repo[c6-media]name=CentOS-$releasever - Mediabaseurl=file:///mntgpgcheck=1enabled=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6Then just download and install using :yum --disablerepo=\* --enablerepo=c6-media groupinstall Desktop