Skip to content

Commit 6af1771

Browse files
authored
Updating for clarification of rhel7 vs rhel8 repos
Updating for clarification of rhel7 vs rhel8 repos
1 parent 713e5a7 commit 6af1771

1 file changed

Lines changed: 27 additions & 5 deletions

File tree

docs/linux/quickstart-install-connect-red-hat.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In this quickstart, you install SQL Server 2017 or SQL Server 2019 on Red Hat En
2424
<!--SQL Server 2019 on Linux-->
2525
::: moniker range=">= sql-server-linux-ver15 || >= sql-server-ver15 "
2626

27-
In this quickstart, you install SQL Server 2019 on Red Hat Enterprise Linux (RHEL) 8. You then connect with **sqlcmd** to create your first database and run queries.
27+
In this quickstart, you install SQL Server 2019 on Red Hat Enterprise Linux (RHEL) 7/8. You then connect with **sqlcmd** to create your first database and run queries.
2828

2929
::: moniker-end
3030

@@ -71,19 +71,30 @@ For other system requirements, see [System requirements for SQL Server on Linux]
7171
> ```
7272
> For more information, see the following blog on installing python2 and configuring it as the default interpreter: https://www.redhat.com/en/blog/installing-microsoft-sql-server-red-hat-enterprise-linux-8-beta.
7373
>
74-
> If you are using RHEL 7, change the path below to `/rhel/7` instead of `/rhel/8`.
7574
7675
To configure SQL Server on RHEL, run the following commands in a terminal to install the **mssql-server** package:
7776
7877
1. Download the Microsoft SQL Server 2017 Red Hat repository configuration file:
7978
79+
For RHEL7:
80+
```bash
81+
sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server-2017.repo
82+
```
83+
84+
For RHEL8:
8085
```bash
8186
sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/8/mssql-server-2017.repo
8287
```
8388

8489
> [!TIP]
8590
> If you want to install SQL Server 2019 , you must instead register the SQL Server 2019 repository. Use the following command for SQL Server 2019 installations:
8691
>
92+
> For RHEL7:
93+
> ```bash
94+
> sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server-2019.repo
95+
> ```
96+
>
97+
> For RHEL8:
8798
> ```bash
8899
> sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/8/mssql-server-2019.repo
89100
> ```
@@ -140,12 +151,17 @@ At this point, SQL Server is running on your RHEL machine and is ready to use!
140151
> ```
141152
> For more information about these steps, see the following blog on installing python2 and configuring it as the default interpreter: https://www.redhat.com/en/blog/installing-microsoft-sql-server-red-hat-enterprise-linux-8-beta.
142153
>
143-
> If you are using RHEL 7, change the path below to `/rhel/7` instead of `/rhel/8`.
144154
145155
To configure SQL Server on RHEL, run the following commands in a terminal to install the **mssql-server** package:
146156
147157
1. Download the Microsoft SQL Server 2019 Red Hat repository configuration file:
148-
158+
159+
For RHEL7:
160+
```bash
161+
sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server-2019.repo
162+
```
163+
164+
For RHEL8:
149165
```bash
150166
sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/8/mssql-server-2019.repo
151167
```
@@ -188,6 +204,12 @@ To create a database, you need to connect with a tool that can run Transact-SQL
188204

189205
1. Download the Microsoft Red Hat repository configuration file.
190206

207+
For RHEL7:
208+
```bash
209+
sudo curl -o /etc/yum.repos.d/msprod.repo https://packages.microsoft.com/config/rhel/7/prod.repo
210+
```
211+
212+
For RHEL8:
191213
```bash
192214
sudo curl -o /etc/yum.repos.d/msprod.repo https://packages.microsoft.com/config/rhel/8/prod.repo
193215
```
@@ -212,4 +234,4 @@ To create a database, you need to connect with a tool that can run Transact-SQL
212234
source ~/.bashrc
213235
```
214236

215-
[!INCLUDE [Connect, create, and query data](../includes/sql-linux-quickstart-connect-query.md)]
237+
[!INCLUDE [Connect, create, and query data](../includes/sql-linux-quickstart-connect-query.md)]

0 commit comments

Comments
 (0)