Steps to install xcat_openbmc_py3 on RH8 - xcat2/xcat-core GitHub Wiki
The steps:
- install epel to generate epel repo
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- create python3 dependencies pkgs repo: For PPC64le
cat <<EOF >/etc/yum.repos.d/fc28-ppc64le.repo
[fc28-ppc64le]
name=Fedora28 yum repository
baseurl=https://www.rpmfind.net/linux/fedora-secondary/releases/28/Everything/ppc64le/os/
enabled=1
gpgcheck=0
EOF
For x86_64:
cat <<EOF >/etc/yum.repos.d/fc28-x86_64.repo
[fc28-x86_64]
name=Fedora28 yum repository
baseurl=https://rpmfind.net/linux/fedora/linux/releases/28/Everything/x86_64/os/
enabled=1
gpgcheck=0
EOF
- install xcat-openbmc-py3 package
yum install -y http://xcat.org/files/xcat/xcat-dep/2.x_Linux/beta/xCAT-openbmc-py3-2.14.6-snap201903270354.noarch.rpm
- Config python before using openbmc related hardware control command:
# update-alternatives --config python
There are 2 programs which provide 'python'.
Selection Command
-----------------------------------------------
* 1 /usr/libexec/no-python
+ 2 /usr/bin/python3
Enter to keep the current selection[+], or type selection number: 2
- Then, command is ready:
# rpower f5u14 state
f5u14: on