Skip to content

Instantly share code, notes, and snippets.

@vlj91
Last active March 23, 2021 23:05
Show Gist options
  • Save vlj91/7ba9c28a2aa3b34c5c9d79461432deda to your computer and use it in GitHub Desktop.
Save vlj91/7ba9c28a2aa3b34c5c9d79461432deda to your computer and use it in GitHub Desktop.
xCAT install (CentOS 7)
#!/bin/bash
cat << EOF > /etc/yum.repos.d/xCAT-core.repo
[xcat-2-core]
name=xCAT 2 Core packages
baseurl=http://xcat.org/files/xcat/repos/yum/2.13/xcat-core
enabled=1
gpgcheck=1
gpgkey=http://xcat.org/files/xcat/repos/yum/2.13/xcat-core/repodata/repomd.xml.key
EOF
cat << EOF > /etc/yum.repos.d/xCAT-dep.repo
[xcat-dep]
name=xCAT 2 depedencies
baseurl=http://xcat.org/files/xcat/repos/yum/xcat-dep/rh7/x86_64
enabled=1
gpgcheck=1
gpgkey=http://xcat.org/files/xcat/repos/yum/xcat-dep/rh7/x86_64/repodata/repomd.xml.key
EOF
yum update -y
yum install -y xCAT vim screen gettext wget
systemctl enable xcatd
systemctl start xcatd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment