Skip to content

Commit c939308

Browse files
authored
readme: add package repository instructions (#893)
1 parent 275a52e commit c939308

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,29 @@ For **macOS** users:
102102

103103
For **Linux** users:
104104

105-
* Thanks [@aikawayataro](https://github.com/aikawayataro) for providing `RPM/DEB` pacakges on [Codeberg.org](https://codeberg.org/yataro/-/packages).
105+
* Thanks [@aikawayataro](https://github.com/aikawayataro) for providing `rpm` and `deb` repositories, hosted on [Codeberg](https://codeberg.org/yataro/-/packages).
106+
107+
`deb` how to:
108+
```shell
109+
curl https://codeberg.org/api/packages/yataro/debian/repository.key | sudo tee /etc/apt/keyrings/sourcegit.asc
110+
echo "deb [signed-by=/etc/apt/keyrings/sourcegit.asc] https://codeberg.org/api/packages/yataro/debian generic main" | sudo tee /etc/apt/sources.list.d/sourcegit.list
111+
sudo apt update
112+
sudo apt install sourcegit
113+
```
114+
115+
`rpm` how to:
116+
```shell
117+
curl https://codeberg.org/api/packages/yataro/rpm.repo | sed -e 's/gpgcheck=1/gpgcheck=0/' > sourcegit.repo
118+
119+
# Fedora 41 and newer
120+
sudo dnf config-manager addrepo --from-repofile=./sourcegit.repo
121+
# Fedora 40 and earlier
122+
sudo dnf config-manager --add-repo ./sourcegit.repo
123+
124+
sudo dnf install sourcegit
125+
```
126+
127+
If your distribution isn't using `dnf`, please refer to the documentation of your distribution on how to add an `rpm` repository.
106128
* `AppImage` files can be found on [AppImage hub](https://appimage.github.io/SourceGit/), `xdg-open` (`xdg-utils`) must be installed to support open native file manager.
107129
* Make sure [git-credential-manager](https://github.com/git-ecosystem/git-credential-manager/releases) is installed on your Linux.
108130
* Maybe you need to set environment variable `AVALONIA_SCREEN_SCALE_FACTORS`. See https://github.com/AvaloniaUI/Avalonia/wiki/Configuring-X11-per-monitor-DPI.

0 commit comments

Comments
 (0)