Automated XFCE Install From Kickstart And Epel-release Issue

Home » CentOS » Automated XFCE Install From Kickstart And Epel-release Issue
CentOS 3 Comments

Hello,

I am working on a kickstart automated CentOS 7 GUI vm deployment.

Defining gnome desktop in kickstart works.
@gnome-desktop – A GNOME desktop

However CentOS and anything from the epel-release such as xrdp does not work.

I have tried it on different ways.

repo –name=epel-release
%packages
#epel-release # DOES NOT WORK
@ Core #@core
@ Base #@base
@ X Window System #@x11
#@ XFCE # DOES NOT WORK
@xfce-desktop # DOES NOT WORK
#@Server with GUI # DOES NOT WORK
#Xfce # DOES NOT WORK
#xrdp # DOES NOT WORK

I have followed the recommendations in this discussion:

https://unix.stackexchange.com/questions/81354/import-epel-gpg-key-in-kickstart-post-installation

None of them worked. In the %post% section yum -y commands seems to be ignored.

I would also like to do a full system upgrade automatically.

Any ideas?

Thanks

3 thoughts on - Automated XFCE Install From Kickstart And Epel-release Issue

  • You need to tell anaconda where to find the repo:

    repo –name=EPEL –baseurl=http://download.fedoraproject.org/pub/epel/7/x86_64/

    You can then use EPEL packages in the %packages section. It’s better to point to a local or nearby mirror if you do this often. Add another line for the updates repo to get those installed. My typical kickstart file has lines like:

    url –url=https://…/CentOS/7/os/x86_64/

    repo –name

  • Hello,

    I will give it a shot in the future. What I found that kickstart does not like yum installs at all in the %post% section. It will execute commands like add user, create files, create directories but not yum installs such as:

    yum update -y yum install epel-release -y yum groupinstall “Server with GUI” -y yum groupinstall “Xfce” -y

    Also the other reply is completely irrelevant since the point here is fully automating the install with kickstart.

    Unfortunately if you use the GUI you will need to push FINISH once during the setup:

    eula –agreed

    doesn’t help on that either.