From fd27e115c532d60e8451ff975bae71506f729300 Mon Sep 17 00:00:00 2001 From: John-Paul Ensign Date: Mon, 26 Feb 2024 14:04:16 -0600 Subject: [PATCH 1/3] doc: add documentation for other RHEL versions; fix: use sudo tee to add repo --- doc/installation/linux.md | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/doc/installation/linux.md b/doc/installation/linux.md index bcc5d748..58fc434b 100644 --- a/doc/installation/linux.md +++ b/doc/installation/linux.md @@ -116,7 +116,7 @@ To uninstall mssql-cli, call `sudo apt-get remove mssql-cli`. sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc # Register the Microsoft product feed -curl https://packages.microsoft.com/config/centos/7/prod.repo > /etc/yum.repos.d/msprod.repo +curl https://packages.microsoft.com/config/centos/7/prod.repo | sudo tee /etc/yum.repos.d/msprod.repo # Install dependencies and mssql-cli sudo yum install libunwind @@ -129,7 +129,7 @@ sudo yum install mssql-cli sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc # Register the Microsoft product feed -curl https://packages.microsoft.com/config/centos/8/prod.repo > /etc/yum.repos.d/msprod.repo +curl https://packages.microsoft.com/config/centos/8/prod.repo | sudo tee /etc/yum.repos.d/msprod.repo # Install dependencies and mssql-cli sudo yum install libunwind @@ -144,7 +144,33 @@ sudo yum install mssql-cli sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc # Register the Microsoft product feed -curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/msprod.repo +curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/msprod.repo + +# Install dependencies and mssql-cli +sudo yum install libunwind +sudo yum install mssql-cli +``` + +#### RHEL 8 +```sh +# Import the public repository GPG keys +sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc + +# Register the Microsoft product feed +curl https://packages.microsoft.com/config/rhel/9/prod.repo | sudo tee /etc/yum.repos.d/msprod.repo + +# Install dependencies and mssql-cli +sudo yum install libunwind +sudo yum install mssql-cli +``` + +#### RHEL 9 +```sh +# Import the public repository GPG keys +sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc + +# Register the Microsoft product feed +curl https://packages.microsoft.com/config/rhel/9/prod.repo | sudo tee /etc/yum.repos.d/msprod.repo # Install dependencies and mssql-cli sudo yum install libunwind From 0e837263f0b56ef10a8533831c6eaad7c0157f8d Mon Sep 17 00:00:00 2001 From: John-Paul Ensign Date: Mon, 26 Feb 2024 14:07:03 -0600 Subject: [PATCH 2/3] fix: missed version 8 --- doc/installation/linux.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/installation/linux.md b/doc/installation/linux.md index 58fc434b..9d1bb3e0 100644 --- a/doc/installation/linux.md +++ b/doc/installation/linux.md @@ -157,7 +157,7 @@ sudo yum install mssql-cli sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc # Register the Microsoft product feed -curl https://packages.microsoft.com/config/rhel/9/prod.repo | sudo tee /etc/yum.repos.d/msprod.repo +curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/msprod.repo # Install dependencies and mssql-cli sudo yum install libunwind From 91ee4f7de1fb9f589d9053c1c41f0e0a8c9c6316 Mon Sep 17 00:00:00 2001 From: John-Paul Ensign Date: Mon, 26 Feb 2024 14:08:40 -0600 Subject: [PATCH 3/3] doc: add links --- doc/installation/linux.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/installation/linux.md b/doc/installation/linux.md index 9d1bb3e0..d979bd82 100644 --- a/doc/installation/linux.md +++ b/doc/installation/linux.md @@ -15,6 +15,8 @@ Stable installations of mssql-cli on Linux are hosted in the [Microsoft Linux So - [CentOS 8](#centos-8) - [**Red Hat Enterprise Linux**](#Red-Hat-Enterprise-Linux) - [RHEL 7](#RHEL-7) + - [RHEL 8](#RHEL-8) + - [RHEL 9](#RHEL-9) ## Debian-based