Skip to content

Commit 6dd3098

Browse files
committed
fixup! Add install from source instructions
1 parent 984d374 commit 6dd3098

File tree

1 file changed

+29
-26
lines changed

1 file changed

+29
-26
lines changed

README.md

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -93,32 +93,6 @@ sudo /usr/local/share/gcm-core/uninstall.sh
9393

9494
### Linux
9595

96-
#### Experimental: install from source helper script
97-
98-
If you would like to help dogfood our new install from source helper script,
99-
run the following:
100-
101-
1. To ensure `curl` is installed:
102-
103-
```shell
104-
curl --version
105-
```
106-
107-
If `curl` is not installed, please use your distribution's package manager
108-
to install it.
109-
110-
1. To download and run the script:
111-
112-
```shell
113-
curl -LO https://raw.githubusercontent.com/GitCredentialManager/git-credential-manager/main/src/linux/Packaging.Linux/install-from-source.sh &&
114-
sh ./install-from-source.sh &&
115-
git-credential-manager-core configure
116-
```
117-
118-
**Note:** You will be prompted to enter your credentials so that the script
119-
can download GCM's dependencies using your distribution's package
120-
manager.
121-
12296
#### Ubuntu/Debian distributions
12397

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

143117
#### Other distributions
144118

119+
##### Option 1: Tarball
120+
145121
Download the latest [tarball](https://github.com/GitCredentialManager/git-credential-manager/releases/latest), and run the following:
146122

147123
```shell
@@ -156,6 +132,33 @@ git-credential-manager-core unconfigure
156132
rm $(command -v git-credential-manager-core)
157133
```
158134

135+
#### Option 2: Install from source helper script
136+
137+
1. Ensure `curl` is installed:
138+
139+
```shell
140+
curl --version
141+
```
142+
143+
If `curl` is not installed, please use your distribution's package manager
144+
to install it.
145+
146+
1. Download and run the script:
147+
148+
```shell
149+
curl -LO https://raw.githubusercontent.com/GitCredentialManager/git-credential-manager/main/src/linux/Packaging.Linux/install-from-source.sh &&
150+
sh ./install-from-source.sh &&
151+
git-credential-manager-core configure
152+
```
153+
154+
**Note:** You will be prompted to enter your credentials so that the script
155+
can download GCM's dependencies using your distribution's package
156+
manager.
157+
158+
To uninstall:
159+
160+
[Follow these instructions](docs/linux-fromsrc-uninstall.md) for your distribution.
161+
159162
**Note:** all Linux distributions [require additional configuration](https://aka.ms/gcm/credstores) to use GCM.
160163

161164
---

0 commit comments

Comments
 (0)