Skip to content

Commit

Permalink
fixup! Add install from source instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ldennington committed May 26, 2022
1 parent 3ab5136 commit 382c0c7
Showing 1 changed file with 29 additions and 26 deletions.
55 changes: 29 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,32 +93,6 @@ sudo /usr/local/share/gcm-core/uninstall.sh

### Linux

#### Experimental: install from source helper script

If you would like to help dogfood our new install from source helper script,
run the following:

1. To ensure `curl` is installed:

```shell
curl --version
```

If `curl` is not installed, please use your distribution's package manager
to install it.

1. To download and run the script:

```shell
curl -LO https://raw.githubusercontent.com/GitCredentialManager/git-credential-manager/main/src/linux/Packaging.Linux/install-from-source.sh &&
sh ./install-from-source.sh &&
git-credential-manager-core configure
```

**Note:** You will be prompted to enter your credentials so that the script
can download GCM's dependencies using your distribution's package
manager.

#### Ubuntu/Debian distributions

Download the latest [.deb package](https://github.com/GitCredentialManager/git-credential-manager/releases/latest), and run the following:
Expand All @@ -142,6 +116,8 @@ sudo dpkg -r gcmcore

#### Other distributions

##### Option 1: Tarball

Download the latest [tarball](https://github.com/GitCredentialManager/git-credential-manager/releases/latest), and run the following:

```shell
Expand All @@ -156,6 +132,33 @@ git-credential-manager-core unconfigure
rm $(command -v git-credential-manager-core)
```

#### Option 2: Install from source helper script

1. Ensure `curl` is installed:

```shell
curl --version
```

If `curl` is not installed, please use your distribution's package manager
to install it.

1. Download and run the script:

```shell
curl -LO https://raw.githubusercontent.com/GitCredentialManager/git-credential-manager/main/src/linux/Packaging.Linux/install-from-source.sh &&
sh ./install-from-source.sh &&
git-credential-manager-core configure
```

**Note:** You will be prompted to enter your credentials so that the script
can download GCM's dependencies using your distribution's package
manager.

To uninstall:

[Follow these instructions](docs/linux-fromsrc-uninstall.md) for your distribution.

**Note:** all Linux distributions [require additional configuration](https://aka.ms/gcm/credstores) to use GCM.

---
Expand Down

0 comments on commit 382c0c7

Please sign in to comment.