[MDEV-25805] support Rocky Linux in mariadb_repo_setup script Created: 2021-05-28  Updated: 2021-06-15  Resolved: 2021-06-14

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Daniel Black Assignee: Daniel Bartholomew
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-25812 Rocky Linux unsupported by some scripts Closed

 Description   

From https://mariadb.com/kb/en/no-rocky-linux-support-yet/ :

the only way i was able to get RL to run was to look for any reference in the ./mariadb_repo_setup script and any place i saw rhel|centos i changed it to rhel|centos|rocky and also changed /etc/redhat-release from Rocky LInux to Centos Linux.

when will Rocky-Linux be fully supported? I don't feel comfortable hacking an install script to get it to work.

also i would suggest changing yum to dnf



 Comments   
Comment by Daniel Bartholomew [ 2021-05-28 ]

When running the mariadb_repo_setup script, you can tell it what OS and version to use and then it will skip trying to detect the OS you are running:

./mariadb_repo_setup --os-type=rhel --os-version=8

(I also added the above to the question in the KB)

Comment by Daniel Bartholomew [ 2021-05-28 ]

I agree that we should move the script to using dnf for RHEL. It used to support older RHEL versions which didn't have dnf, but they have now been deprecated, so now all versions supported by the script have dnf.

Comment by Sergei Golubchik [ 2021-06-04 ]

dbart, may be also check that it works on AlmaLinux, while you're at it?

Comment by Daniel Bartholomew [ 2021-06-07 ]

I have a test version of the mariadb_repo_setup_script uploaded to: https://downloads.mariadb.com/MariaDB/mariadb_repo_setup_test

Just run normally and it should properly detect both AlmaLinux and Rocky. i.e. something like the following:

curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup_test | sudo bash -s --
sudo dnf install -y MariaDB-server
sudo systemctl start mariadb && sudo mariadb -e "select @@version"

I'll get it pushed to the production location once I've tested it a bit more.

Comment by Daniel Bartholomew [ 2021-06-14 ]

The script has been updated. Will now properly detect both Alma and Rocky Linux.

Comment by Daniel Black [ 2021-06-15 ]

Thanks Daniel

Generated at Thu Feb 08 09:40:32 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.