Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Add Support for Rocky Linux #49

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ elif [[ $distrib_name == "redhat" || $distrib_name == "RedHatEnterprise" || $d
# Install prerequirements
do_with_root yum -y install python-pip python-devel gcc lm_sensors wireless-tools

elif [[ $distrib_name == "rocky" ]]; then
# Rocky Linux

# Install prerequirements
do_with_root yum -y install python39-pip python39-devel gcc lm_sensors

elif [[ $distrib_name == "oracle" ]]; then
# Oracle EL 7, should work on 6 as well

Expand Down Expand Up @@ -135,7 +141,11 @@ DEPS="setuptools glances[action,batinfo,browser,cpuinfo,docker,export,folders,gp

# Install libs
# do_with_root pip install --upgrade pip
do_with_root pip install $DEPS
if [[ $distrib_name == "rocky" ]]; then
do_with_root pip3.9 install $DEPS
else
do_with_root pip install $DEPS
fi

# Install or upgrade Glances from the Pipy repository
if [[ -x /usr/local/bin/glances || -x /usr/bin/glances ]]; then
Expand Down