Skip to content

Commit 6586158

Browse files
authored
Refresh Debian manual setup steps (#8630)
* Refresh Debian manual setup steps * Make it three to be safe
1 parent 9cf70a5 commit 6586158

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

docs/setup/linux.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,29 +56,42 @@ MetaDescription: Get Visual Studio Code up and running on Linux.
5656
5757
1. To manually install the apt repository:
5858
59-
1. Run the following script:
59+
1. Run the following script to install the signing key:
6060
6161
```bash
6262
sudo apt-get install wget gpg
63-
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
64-
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
65-
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" |sudo tee /etc/apt/sources.list.d/vscode.list > /dev/null
66-
rm -f packages.microsoft.gpg
63+
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
64+
sudo install -D -o root -g root -m 644 microsoft.gpg /usr/share/keyrings/microsoft.gpg
65+
rm -f microsoft.gpg
6766
```
6867
69-
1. Then update the package cache and install the package using:
68+
1. Create a `/etc/apt/sources.list.d/vscode.sources` file with the following contents to add a reference to the upstream package repository:
69+
70+
```plaintext
71+
Types: deb
72+
URIs: https://packages.microsoft.com/repos/code
73+
Suites: stable
74+
Components: main
75+
Architectures: amd64,arm64,armhf
76+
Signed-By: /usr/share/keyrings/microsoft.gpg
77+
```
78+
79+
1. Lastly, update the package cache and install the package:
7080
7181
```bash
7282
sudo apt install apt-transport-https
7383
sudo apt update
7484
sudo apt install code # or code-insiders
7585
```
7686
87+
> [!NOTE]
88+
> Due to the manual signing process and the publishing system we use, the Debian repo could lag behind by up to three hours and not immediately get the latest version of VS Code.
89+
7790
### RHEL, Fedora, and CentOS based distributions
7891
7992
We currently ship the stable 64-bit VS Code for RHEL, Fedora, or CentOS based distributions in a yum repository.
8093
81-
1. Install the key and yum repository by running the following script:
94+
1. Install the key and yum repository by running the following script:
8295
8396
```bash
8497
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
@@ -100,7 +113,7 @@ We currently ship the stable 64-bit VS Code for RHEL, Fedora, or CentOS based di
100113
```
101114
102115
> [!NOTE]
103-
> Due to the manual signing process and the publishing system we use, the yum repo could lag behind and might not immediately get the latest version of VS Code.
116+
> Due to the manual signing process and the publishing system we use, the yum repo could lag behind by up to three hours and not immediately get the latest version of VS Code.
104117
105118
### Snap
106119

0 commit comments

Comments
 (0)