Skip to content

Instantly share code, notes, and snippets.

@zhum
Forked from vlj91/xcat-install.sh
Created February 18, 2020 07:00
Show Gist options
  • Save zhum/b89d9667712b7fbae49a22334057ce32 to your computer and use it in GitHub Desktop.
Save zhum/b89d9667712b7fbae49a22334057ce32 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