Skip to content

Commit 0cbaff3

Browse files
Lessley Denningtonderrickstolee
Lessley Dennington
authored andcommitted
Merge pull request #393 from ldennington/update-linux
Add instructions for `apt-get` install to `README`
2 parents 4c89091 + 2049049 commit 0cbaff3

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

.github/workflows/release-apt-get.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77
inputs:
88
release:
9-
description: 'Release Tag'
9+
description: 'Release Id'
1010
required: true
1111
default: 'latest'
1212

README.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,33 @@ Or you can run the `git update-microsoft-git` command, which will run those brew
112112

113113
## Linux
114114

115-
For Ubuntu/Debian distributions, `apt-get` support is coming soon. For now, please use the most
116-
recent [`.deb` package](https://github.com/microsoft/git/releases). For example, you can download a
117-
specific version as follows:
115+
`apt-get` support is available for Ubuntu Bionic Beaver (18.04) and Hirsute
116+
Hippo (21.04). Take the following steps to set up and install based on the
117+
version you are running:
118+
119+
### Ubuntu 18.04 (Bionic)
120+
121+
```shell
122+
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
123+
sudo apt-add-repository https://packages.microsoft.com/ubuntu/18.04/prod
124+
sudo apt-get update
125+
sudo apt-get install microsoft-git
126+
```
127+
128+
### Ubuntu 21.04 (Hirsute)
129+
130+
```shell
131+
curl -sSL https://packages.microsoft.com/config/ubuntu/21.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft-prod.list
132+
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
133+
sudo apt-get update
134+
sudo apt-get install microsoft-git
135+
```
136+
137+
### Other Ubuntu/Debian distributions
138+
139+
Please use the most recent
140+
[`.deb` package](https://github.com/microsoft/git/releases). For example,
141+
you can download a specific version as follows:
118142

119143
```shell
120144
wget -O microsoft-git.deb https://github.com/microsoft/git/releases/download/v2.32.0.vfs.0.2/git-vfs_2.32.0.vfs.0.2.deb
@@ -128,8 +152,8 @@ which should have the same output:
128152
git version
129153
scalar version
130154
```
131-
132-
For other distributions, you will need to compile and install `microsoft/git` from source:
155+
### Non-Ubuntu/Debian distributions
156+
You will need to compile and install `microsoft/git` from source:
133157

134158
```shell
135159
git clone https://github.com/microsoft/git microsoft-git

0 commit comments

Comments
 (0)