node-red / linux-installers

Node-RED install scripts for various flavours of Linux
Apache License 2.0
94 stars 63 forks source link

Install fails on AlmaLinux 8.4 #17

Closed andrewm659 closed 3 years ago

andrewm659 commented 3 years ago

Trying to install nodered on Almalinux and get the following error:

Doesn't seem to be running on RedHat, Centos, Fedora, or Oracle Linux, so quitting

I tried removing the symlink from /etc/centos-release to /etc/almalinux-release and recreating the files with the CentOS and or Red Hat release info. Still didn't work.

Is this resolved in version 16?

dceejay commented 3 years ago

never heard of almalinux so never tested. Happy to consider a pull request if anyone willing to work it out.

andrewm659 commented 3 years ago

Alma Linux and Rocky Linux are the new stable clones of RedHat and or CentOS.

dceejay commented 3 years ago

If you grab the actual install script and edit line 67 to include the relevant release word - then what errors do you get if you run it locally ?

Also do they use dnf or yum to install packages (line 103) ?

link to script - https://raw.githubusercontent.com/node-red/linux-installers/master/rpm/update-nodejs-and-nodered

andrewm659 commented 3 years ago

dnf.

andrewm659 commented 3 years ago

I made it look like this and it worked

versions='fedora"centos"rhel"ol"almalinux"rockylinux'

Haven't tested on RockyLinux yet. But AlmaLinux works.

dceejay commented 3 years ago

did you also need to change line 103 so it picks the dnf path ?

if [ $MYOS = "fedora" ] || [ $MYOS = "almalinux" ] || [ $MYOS = "rockylinux" ]; then