Merge pull request 'docs: registry is public now — drop the token/auth.conf.d from apt setup' (#36) from docs/public-registry into main
Reviewed-on: #36
This commit was merged in pull request #36.
This commit is contained in:
@@ -41,24 +41,15 @@ apt pulls the GUI dependencies (PySide6, pyte) automatically:
|
|||||||
sudo apt install ./rigdoctor_*_all.deb # CLI only: add --no-install-recommends
|
sudo apt install ./rigdoctor_*_all.deb # CLI only: add --no-install-recommends
|
||||||
```
|
```
|
||||||
|
|
||||||
**Or add the apt repository** for `apt install` + automatic updates. The registry is private and
|
**Or add the apt repository** for `apt install` + automatic updates. The registry is public and
|
||||||
GPG-signed, so you need a Gitea token with **`read:package`**, the signing key, and the deb822
|
GPG-signed — no token needed; just add the signing key and a deb822 source:
|
||||||
source (`read -rsp` keeps the token out of your shell history):
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
read -rsp 'Gitea read:package token: ' TOKEN; echo
|
# signing key → dearmored into the keyring
|
||||||
|
|
||||||
# signing key → dearmored into the keyring (the key endpoint requires the token too)
|
|
||||||
sudo install -d -m 0755 /etc/apt/keyrings
|
sudo install -d -m 0755 /etc/apt/keyrings
|
||||||
curl -fsSL --user <user>:"$TOKEN" \
|
curl -fsSL https://git.jesseyvanofferen.com/api/packages/jessey/debian/repository.key \
|
||||||
https://git.jesseyvanofferen.com/api/packages/jessey/debian/repository.key \
|
|
||||||
| sudo gpg --dearmor -o /etc/apt/keyrings/gitea-jessey.gpg
|
| sudo gpg --dearmor -o /etc/apt/keyrings/gitea-jessey.gpg
|
||||||
|
|
||||||
# download credentials, kept out of the sources file
|
|
||||||
printf 'machine git.jesseyvanofferen.com login <user> password %s\n' "$TOKEN" \
|
|
||||||
| sudo tee /etc/apt/auth.conf.d/rigdoctor.conf >/dev/null
|
|
||||||
sudo chmod 0600 /etc/apt/auth.conf.d/rigdoctor.conf
|
|
||||||
|
|
||||||
# the source (modern deb822 format, GPG-verified, all-arch)
|
# the source (modern deb822 format, GPG-verified, all-arch)
|
||||||
sudo tee /etc/apt/sources.list.d/rigdoctor.sources >/dev/null <<'EOF'
|
sudo tee /etc/apt/sources.list.d/rigdoctor.sources >/dev/null <<'EOF'
|
||||||
Types: deb
|
Types: deb
|
||||||
@@ -72,8 +63,7 @@ EOF
|
|||||||
sudo apt update && sudo apt install rigdoctor
|
sudo apt update && sudo apt install rigdoctor
|
||||||
```
|
```
|
||||||
|
|
||||||
Then `sudo apt upgrade` keeps it current. *(Quick-and-dirty alternative if the registry isn't
|
Then `sudo apt upgrade` keeps it current.
|
||||||
signed: skip the key and use a one-line `deb [arch=all trusted=yes] …/debian stable main` source.)*
|
|
||||||
|
|
||||||
### Any distro — self-extracting `.run` (no root)
|
### Any distro — self-extracting `.run` (no root)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user