Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Publish apt and yum repositories with each release

73e98b74cf29c19adeeef3b4a277016838c3debe · Keenan Nemetz · 15d ago · parent eee732ec

Publish apt and yum repositories with each release

A release tree and a channel give one stable URL, but apt needs a flat Packages/Release repository and dnf needs repodata. Build both from the release packages, attach the dist tree so they sit under apt/ and yum/, cover the metadata in SHA256SUMS, and document installing and upgrading from the stable channel.

docs/install.md +63−5

@@ -1,21 +1,79 @@
1 1 # Install
2 2
3 Install Vole on Linux with a package, a release binary, or a source build. Each
4 path ends with the same check: `vole version` prints the installed version.
3 Install Vole on Linux from a package repository, a package file, a release
4 binary, or a source build. Each path ends with the same check: `vole version`
5 prints the installed version.
5 6
6 7 | Method | Best for | Requirements |
7 8 |---|---|---|
8 | [Package](#install-a-package) | Debian, Ubuntu, Fedora, RHEL, or Rocky servers | `sudo` access |
9 | [Package repository](#install-from-the-package-repository) | Servers that should upgrade with `apt` or `dnf` | A public channel and `sudo` access |
10 | [Package file](#install-a-package-file) | Debian, Ubuntu, Fedora, RHEL, or Rocky servers | `sudo` access |
9 11 | [Release binary](#install-a-release-binary) | Another Linux machine | Git and SQLite with FTS5 |
10 12 | [Build from source](#build-from-source) | Developing Vole or using an unsupported platform | Go, a C compiler, and Git |
11 13
12 14 Download packages and binaries from the
13 15 [Vole release page](https://rodent.software/vole/releases). Releases provide
14 `amd64` and `arm64` files plus `SHA256SUMS`. Vole does not currently sign release
16 `amd64` and `arm64` files plus `SHA256SUMS`. Vole does not sign release
15 17 artifacts, so checksums detect a corrupted or mismatched download; they do not
16 18 authenticate the server that supplied them.
17 19
18 ## Install a package
20 ## Install from the package repository
21
22 Every release publishes a Debian repository at `apt/` and an RPM repository at
23 `yum/`. Both are served through a channel — a URL that follows one release and
24 can move to the next ([Releases § Channels](releases.md#channels)) — so the
25 source line keeps working when a new release is published. Follow the `stable`
26 channel on Debian or Ubuntu:
27
28 ```sh
29 echo 'deb [trusted=yes] https://rodent.software/vole/channels/stable/apt ./' \
30 | sudo tee /etc/apt/sources.list.d/vole.list
31 sudo apt update
32 sudo apt install vole
33 ```
34
35 On Fedora, RHEL, or Rocky:
36
37 ```sh
38 sudo tee /etc/yum.repos.d/vole.repo >/dev/null <<'EOF'
39 [vole]
40 name=Vole
41 baseurl=https://rodent.software/vole/channels/stable/yum/
42 enabled=1
43 gpgcheck=0
44 repo_gpgcheck=0
45 EOF
46 sudo dnf install vole
47 ```
48
49 The repository contains both architectures; apt and dnf choose the one they run
50 on. Upgrades arrive with the package manager:
51
52 ```sh
53 sudo apt update && sudo apt upgrade vole
54 sudo dnf upgrade vole
55 ```
56
57 Vole does not sign release artifacts. The apt source trusts the host with
58 `trusted=yes`, and the dnf repository disables package and metadata signature
59 checks. The `Release` and `repomd.xml` files carry checksums, so a corrupted
60 download is refused, and HTTPS authenticates the server, but neither proves who
61 built the package. If that matters for your deployment,
62 [install a package file](#install-a-package-file) and verify it against
63 `SHA256SUMS`, or [build from source](#build-from-source).
64
65 The repository must be readable by anonymous visitors. A private repository
66 answers package managers with `404`; mirror the packages or install from a file
67 instead.
68
69 A channel follows exactly one release, and a file attached to that release is
70 served at `/<repo>/channels/<channel>/<path>`. To pin a version instead of
71 following a channel, replace `/channels/stable` with the release path, for
72 example `https://rodent.software/vole/releases/v0.2.0/artifacts`; the source
73 then stays on that release until you change it. A pinned apt source therefore
74 ends in `/releases/v0.2.0/artifacts/apt`.
75
76 ## Install a package file
19 77
20 78 Download the `.deb` or `.rpm` for your architecture and its `SHA256SUMS` file.
21 79 Verify the download, then install it: