From f7024c848a7004a30297b479b6adf8464808f693 Mon Sep 17 00:00:00 2001 From: Lessley Dennington Date: Wed, 30 Jun 2021 20:51:04 -0700 Subject: [PATCH 1/2] Add instructions for `apt-get` install to `README` Updating `README.md` with instructions for `apt-get` setup and install for Ubuntu Bionic + Hirsute. --- README.md | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 53b701c32cb8bc..ed915691c5230a 100644 --- a/README.md +++ b/README.md @@ -112,9 +112,33 @@ Or you can run the `git update-microsoft-git` command, which will run those brew ## Linux -For Ubuntu/Debian distributions, `apt-get` support is coming soon. For now, please use the most -recent [`.deb` package](https://github.com/microsoft/git/releases). For example, you can download a -specific version as follows: +`apt-get` support is available for Ubuntu Bionic Beaver (18.04) and Hirsute +Hippo (21.04). Take the following steps to set up and install based on the +version you are running: + +### Bionic + +```shell +curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - +sudo apt-add-repository https://packages.microsoft.com/ubuntu/18.04/prod +sudo apt-get update +sudo apt-get install microsoft-git +``` + +### Ubuntu 21.04 (Hirsute) + +```shell +curl -sSL https://packages.microsoft.com/config/ubuntu/21.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft-prod.list +curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc +sudo apt-get update +sudo apt-get install microsoft-git +``` + +### Other Ubuntu/Debian distributions + +Please use the most recent +[`.deb` package](https://github.com/microsoft/git/releases). For example, +you can download a specific version as follows: ```shell 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: git version scalar version ``` - -For other distributions, you will need to compile and install `microsoft/git` from source: +### Non-Ubuntu/Debian distributions +You will need to compile and install `microsoft/git` from source: ```shell git clone https://github.com/microsoft/git microsoft-git From 9228d0bcb7e64e899240bd0a38b55cddb48bf2c4 Mon Sep 17 00:00:00 2001 From: Lessley Dennington Date: Thu, 1 Jul 2021 09:58:20 -0700 Subject: [PATCH 2/2] Clarify `workflow_dispatch` input description We are currently using 'Release tag' to describe the required input to our `workflow_dispatch` trigger. This is inaccurate - this field actually requires a 'Release id', which I discovered when testing GCM Core `apt-get` deployments yesterday. Updating so that the description doesn't confuse folks running the workflow for a release that is not 'latest'. --- .github/workflows/release-apt-get.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-apt-get.yml b/.github/workflows/release-apt-get.yml index 96965d732163ce..115ddc1101a93c 100644 --- a/.github/workflows/release-apt-get.yml +++ b/.github/workflows/release-apt-get.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: inputs: release: - description: 'Release Tag' + description: 'Release Id' required: true default: 'latest' diff --git a/README.md b/README.md index ed915691c5230a..9a12ea1613d652 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ Or you can run the `git update-microsoft-git` command, which will run those brew Hippo (21.04). Take the following steps to set up and install based on the version you are running: -### Bionic +### Ubuntu 18.04 (Bionic) ```shell curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -