How to Install GUI (Gnome 3) Using CD/DVD on RHEL/CentOS 7

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.95/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

33 Responses

  1. Dhinesh says:

    Hello Ravi, Your post have crystal clear step by step instruction helped me! Thank you!

  2. Lee Chang Hwa says:


  3. Optimxr says:

    Hi Ravi, I had no luck with the repo as [centos7] but when I changed it to[centos7dvd] the packages downloaded but I ran into another problem with the public key file. Here is the final output:
    Transaction Summary: Install 288 Packages (+705 Dependent packages)
    Total Download size: 721 M
    Installed size: 2.1 G
    Is this ok [y/d/N]: y
    Downloading Packages:
    # warning: /mnt/cdrom/Packages/GConf2-3.2.6-8.e17.x86_64.rpm: Header V3 RSA/SHA256
    Signature, key ID f4a80eb5: NOKEY
    Public Key for GConf2-3.2.6-8.e17.x86_64.rpm is not installed
    Total 7.3 MB/s | 721 MB 01:38
    Retrieving key from file: ///etc/pki/rpm-gpg/RPM-GPG-KEY-centOS-7
    GPG key retrieval failed: [Errno 14] curl#37 – “Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-centOS-7”
    Do have any suggestions I can try?

    • Ravi Saive says:


      Please use following command to import GPG key.

      # rpmkeys --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centOS-7
      • Optimxr says:

        Thanks Ravi, I found the problem, I had a lower case “c” for the PGP= statement instead of “CentOS-7”

        I made that change and then ran:

        # yum –disablerepo=* --enablerepo=centos7dvd groupinstall “GNOME Desktop”

        and all 993 packages were installed & verified. I then unmounted the cdrom by typing:

        # umount /mnt/cdrom

        but the message said nothing mounted.
        I typed in the GUI target switch as follows:

        # ln -sf /lib/systemd/system/ /etc/systemd/system/

        There were no errors, just went to the root prompt again. When I rebooted, it went to the normal Centos 7 command line login.

        I logged in as root and typed

        # init 5

        and it then started the GUI.

        I repeated this process once more and now it boots to the GUI.

        Happy Days!!! Thanks for all you good instructions and patience.

        • Ravi Saive says:


          Yeah, that’s great to know, you finally install GUI i.e Gnome Desktop on CentOS 7. I hope you learned few things today..

  4. Optimxr says:

    When clearing the yum I get this message;
    [[email protected]~]# yum clear all
    loaded plugins: fastestmirror
    No such command: clear. please use /bin/yum –help

    I am not sure what I need to do with –help menu, any suggestions?

    • Ravi Saive says:


      It should be yum clean all, if you wanted to clear all system repository cache, type:

      # yum clean all
      • Optimxr says:

        Thanks Ravi for responding so quickly. A silly mistake on my part. It cleans successfully now.
        However, when I do the repolist I do not see centos7 in red and I see enabled: 0 . Could this be due to no network connection( it did not appear when I did the core installation)?

  5. wathsala says:

    I did every thing right. it said an successful installation. also run the last command to boot with GUI. but it went to usual centos 7 core mode

    • Ravi Saive says:


      Have you executed the following command without any errors?

      # ln -sf /lib/systemd/system/ /etc/systemd/system/

      What you will getting after reboot? is the server booted into GUI mode or not? or it remains in same server mode? if yes, try init 5 command to switch to GUI mode.

      # init 5
  6. FherPie says:

    Please I have this error:
    after to type: mount /dev/cdrom /mnt/cdrom
    mount /dev/sr0 is write-protected. mounting read-only
    sorry but What is means??
    Thanks a lot

    • Ravi Saive says:


      That means your CD-Rom is mounted as read-only mode, you can’t write to this drive, but you can copy/view the content of cdrom.

  7. Majid says:

    Thank you,it is really helpful.

  8. Kumar says:

    For anyone tring this out, i recommend naming the repo as centos7dvd for the file, the bracket and name. Should get you around the repodata error on CentOS 7

  9. diego Bustamante says:

    I have Problem i do everything, but when i do the install i have these message: ” Cannot find a valid base url for repo: base/y/x86_64

    • Ravi Saive says:

      Try adding following DNS nameservers entries to /etc/resolv.conf file and try again…

  10. Volodymyr Krupach says:

    Thank you!!!

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *