Skip to content

Commit 967429c

Browse files
authored
doc: add repository instructions to readme (#797)
1 parent 33625b5 commit 967429c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,32 @@ For **macOS** users:
9898

9999
For **Linux** users:
100100

101+
* For Debian/Ubuntu based distributions, you can add the `sourcegit` repository by following:
102+
You may need to install curl and/or gpg first, if you're on a very minimal host:
103+
```shell
104+
apt update && apt install curl gpg -y
105+
```
106+
Install the registry signing key:
107+
```shell
108+
curl -fsSL "https://packages.buildkite.com/sourcegit/sourcegit-deb/gpgkey" | gpg --dearmor -o /etc/apt/keyrings/sourcegit_sourcegit-deb-archive-keyring.gpg
109+
```
110+
Configure the source:
111+
```shell
112+
echo -e "deb [signed-by=/etc/apt/keyrings/sourcegit_sourcegit-deb-archive-keyring.gpg] https://packages.buildkite.com/sourcegit/sourcegit-deb/any/ any main\ndeb-src [signed-by=/etc/apt/keyrings/sourcegit_sourcegit-deb-archive-keyring.gpg] https://packages.buildkite.com/sourcegit/sourcegit-deb/any/ any main" > /etc/apt/sources.list.d/buildkite-sourcegit-sourcegit-deb.list
113+
```
114+
Update your local repository and install the package:
115+
```shell
116+
apt update && apt install sourcegit
117+
```
118+
* For RHEL/Fedora based distributions, you can add the `sourcegit` repository by following:
119+
Configure the source:
120+
```shell
121+
sudo sh -c 'echo -e "[sourcegit-rpm]\nname=sourcegit-rpm\nbaseurl=https://packages.buildkite.com/sourcegit/sourcegit-rpm/rpm_any/rpm_any/\$basearch\nenabled=1\nrepo_gpgcheck=1\ngpgcheck=0\ngpgkey=https://packages.buildkite.com/sourcegit/sourcegit-rpm/gpgkey\npriority=1"' > /etc/yum.repos.d/sourcegit-rpm.repo
122+
```
123+
Install the package with this command:
124+
```shell
125+
sudo dnf install -y sourcegit
126+
```
101127
* `DEB` or `RPM` packages are available at [buildkite](https://buildkite.com/organizations/sourcegit/packages).
102128
* `Appimage` files can be found on [AppimageHub](https://appimage.github.io/SourceGit/)
103129
* `xdg-open` must be installed to support open native file manager.

0 commit comments

Comments
 (0)