2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2024-11-23 18:10:14 +00:00
2 Steps to install xcat_openbmc_py3 on RH8
zet809 edited this page 2019-03-29 15:50:55 +08:00

The steps:

  1. install epel to generate epel repo
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  1. 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
  1. 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
  1. 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
  1. Then, command is ready:
# rpower f5u14 state
f5u14: on