diff --git a/doc/installation/linux.md b/doc/installation/linux.md
index bcc5d748..5fc99f15 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
+sudo bash -c "curl https://packages.microsoft.com/config/centos/7/prod.repo > /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
+sudo bash -c "curl https://packages.microsoft.com/config/centos/8/prod.repo > /etc/yum.repos.d/msprod.repo"
 
 # Install dependencies and mssql-cli
 sudo yum install libunwind