Skip to content

Commit f7fe13b

Browse files
authored
Merge pull request #2676 from SteveL-MSFT/update-install
update registration of MSFT repo using .deb pkg
2 parents bb01b48 + 02caf44 commit f7fe13b

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

reference/docs-conceptual/setup/Installing-PowerShell-Core-on-Linux.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ PowerShell Core, for Linux, is published to package repositories for easy instal
4949
This is the preferred method.
5050

5151
```sh
52-
# Import the public repository GPG keys
53-
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
52+
# Download the Microsoft repository GPG keys
53+
wget -q https://packages.microsoft.com/config/ubuntu/14.04/packages-microsoft-prod.deb
5454

55-
# Register the Microsoft Ubuntu repository
56-
curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
55+
# Register the Microsoft repository GPG keys
56+
sudo dpkg -i packages-microsoft-prod.deb
5757

5858
# Update the list of products
5959
sudo apt-get update
@@ -100,11 +100,11 @@ PowerShell Core, for Linux, is published to package repositories for easy instal
100100
This is the preferred method.
101101

102102
```sh
103-
# Import the public repository GPG keys
104-
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
103+
# Download the Microsoft repository GPG keys
104+
wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
105105

106-
# Register the Microsoft Ubuntu repository
107-
sudo curl -o /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/ubuntu/16.04/prod.list
106+
# Register the Microsoft repository GPG keys
107+
sudo dpkg -i packages-microsoft-prod.deb
108108

109109
# Update the list of products
110110
sudo apt-get update
@@ -154,11 +154,11 @@ PowerShell Core, for Linux, is published to package repositories for easy instal
154154
This is the preferred method.
155155

156156
```sh
157-
# Import the public repository GPG keys
158-
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
157+
# Download the Microsoft repository GPG keys
158+
wget -q https://packages.microsoft.com/config/ubuntu/17.10/packages-microsoft-prod.deb
159159

160-
# Register the Microsoft Ubuntu repository
161-
sudo curl -o /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/ubuntu/17.10/prod.list
160+
# Register the Microsoft repository GPG keys
161+
sudo dpkg -i packages-microsoft-prod.deb
162162

163163
# Update the list of products
164164
sudo apt-get update
@@ -208,11 +208,11 @@ PowerShell Core, for Linux, is published to package repositories for easy instal
208208
This is the preferred method.
209209

210210
```sh
211-
# Import the public repository GPG keys
212-
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
211+
# Download the Microsoft repository GPG keys
212+
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
213213

214-
# Register the Microsoft Ubuntu repository
215-
sudo curl -o /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/ubuntu/18.04/prod.list
214+
# Register the Microsoft repository GPG keys
215+
sudo dpkg -i packages-microsoft-prod.deb
216216

217217
# Update the list of products
218218
sudo apt-get update

0 commit comments

Comments
 (0)