minor update for RHEL-7 rpm docs

35 views
Skip to first unread message

Vince Skahan

unread,
Nov 22, 2020, 6:08:46 PM11/22/20
to weewx-development
Tom - in the -users group we've been going back and forth with a user having some growing pains getting the rpm to install on CentOS7.   I think a minor tweak to the redhat.htm docs might help.

--- suggested addition to the RH7 section ---
For RHEL 7 based systems,  also enable the EPEL repo and install pyserial, pyusb, and (optionally) python2-pip rpms from there.

They are not bundled with CentOS-7 in the os's default repositories.  They're extras.
  • sudo yum install epel-release
  • sudo yum install -y pyserial pyusb
  • sudo yum install -y python2-pip

Tom Keffer

unread,
Nov 23, 2020, 10:21:45 AM11/23/20
to Vince Skahan, weewx-development
Like this? I don't quite get the asymmetry between RHEL 7 and 8. Don't they both require EPEL?

Install pre-requisites

For Redhat 8, you will be using Python 3. Here are the pre-requisites:

sudo yum install epel-release
sudo yum install python3-cheetah

For Redhat 7, you will be using Python 2. You will need to enable the EPEL repository, then install some pre-requisites. They are not bundled in the default repositories.

sudo yum install epel-release
sudo yum install -y pyserial pyusb
sudo yum install -y python2-pip

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/7915871a-9313-402c-8262-a63f6a66c69dn%40googlegroups.com.

Vince Skahan

unread,
Nov 23, 2020, 10:51:26 AM11/23/20
to weewx-development
Actually yes, but for different things.  Redhat 7 needs serial/usb and (optionally) pip from EPEL.  Redhat 8 needs cheetah from EPEL.   Basically they switched what was in their core repos vs. EPEL for those rpms when they did the Redhat 8 major update.

I guess I'd suggest a tiny tweak to what you have there...
 * the 'you will need' wording in your Redhat 7 section is nice and clear.  Suggest using it in the Redhat 8 section too.
 * pip in the Redhat 7 section is of course optional for weewx, if we want to split hairs there

I did verify the Redhat 8 rpm is ok with the instructions as written plus your python3-cheetah steps you added above, so the rpm itself is good as-is.

Thanks....

Reply all
Reply to author
Forward
0 new messages