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.

Code

527 commit(s) on main

Put job execution behind an interface Keenan Nemetz · 2h ago de3eec16
source preview history blame raw 12.5 KiB
1# Install
2
3Install Vole with your package manager where possible, or download a standalone
4binary. After installing, `vole version` confirms that the command is ready.
5
6| Your platform or goal | Start with | Other options |
7|---|---|---|
8| Debian, Ubuntu, Fedora, RHEL, Rocky, AlmaLinux, or Arch Linux | [Install script](#install-with-the-script) | [Package repository](#add-the-repository-by-hand), [package file](#install-a-package-file), or [binary](#install-a-release-binary) |
9| Another Linux distribution | [Standalone binary](#install-a-release-binary) | [Build from source](#build-from-source) |
10| macOS | [Homebrew](#install-with-homebrew) for a service, or the [install script](#use-the-install-script) for your account | Build from source |
11| Windows | [PowerShell installer](#install-on-windows) | Download the MSI directly |
12| Develop Vole | [Build from source](#build-from-source) | — |
13
14Releases provide Linux and macOS binaries for `amd64` and `arm64`. Windows
15releases are `amd64` only. The same `vole` command provides the CLI and forge
16server; the Windows package does not include the CI runner.
17
18## Install on Linux
19
20### Install with the script
21
22On Debian, Ubuntu, Fedora, RHEL, Rocky, AlmaLinux, and Arch Linux, run:
23
24```sh
25curl -fsSL https://rodent.software/vole/channels/stable/install.sh | sudo sh
26```
27
28The script detects your distribution and architecture, installs the release key
29and package repository, and installs Vole with `apt`, `dnf`, or `pacman`. Your
30package manager verifies the signed repository and packages and handles later
31upgrades. The script also checks the release key's pinned SHA-256 and fingerprint
32before changing the system.
33
34Confirm the installation:
35
36```sh
37vole version
38```
39
40For the current stable release, the output is:
41
42```text
430.2.0
44```
45
46The Linux package installs Git, the `vole` command, systemd units, and
47`/etc/vole/vole.toml`. It does not create an instance administrator or enable
48the forge service. Continue with the [Quickstart](quickstart.md) for a local
49instance, or [Deploy on Linux](deploy/linux.md) to configure the service.
50
51To inspect the script and preview its changes before installing:
52
53```sh
54curl -fsSLO https://rodent.software/vole/channels/stable/install.sh
55less install.sh
56sh install.sh --dry-run
57sudo sh install.sh
58```
59
60Run `sh install.sh --help` for channel, version-pinning, repository-only, and
61image-build options.
62
63## Install on macOS
64
65Use Homebrew when you want Homebrew to manage Vole and its LaunchAgent. Use the
66install script when you want only the command in your account. Both methods
67support Apple Silicon and Intel Macs running macOS 13 or later.
68
69### Install with Homebrew
70
71The tap is hosted on the Rodent Software forge, so give Homebrew its clone URL:
72
73```sh
74brew tap rodent-software/homebrew-tap https://rodent.software/homebrew-tap.git
75brew install vole
76vole version
77```
78
79The formula can manage Vole as a LaunchAgent with `brew services start vole`.
80[Deploy on macOS](deploy/macos.md) explains the service, its data directories,
81and machine-wide deployment.
82
83### Use the install script
84
85```sh
86curl -fsSL https://rodent.software/vole/channels/stable/install.sh | sh
87vole version
88```
89
90The script selects the right binary, checks it against the release's
91`SHA256SUMS`, and installs it as `~/.local/bin/vole`. Make sure `~/.local/bin` is
92on your `PATH`. Run the script with `sudo sh` instead to install
93`/usr/local/bin/vole` for the machine. If Homebrew already manages Vole, the
94script leaves that installation alone and tells you to use `brew upgrade vole`.
95
96Vole needs Git at run time. If `git --version` opens a dialog offering to install
97the command line tools, run `xcode-select --install` and finish that installation
98first.
99
100Continue with the [Quickstart](quickstart.md) for a local instance, or
101[Deploy on macOS](deploy/macos.md) to run the forge as a service.
102
103## Install on Windows
104
105You need Windows Server 2019 or later, or Windows 10/11 on `amd64`; Git for
106Windows on the machine `PATH`; and an elevated PowerShell. Download and run the
107installer:
108
109```powershell
110Invoke-WebRequest https://rodent.software/vole/channels/stable/install.ps1 -OutFile install.ps1
111.\install.ps1
112```
113
114The script downloads the MSI, checks it against the release's `SHA256SUMS`, and
115installs it. The installer registers and starts the `Vole` service and writes a
116default configuration to `%ProgramData%\Vole\vole.toml`. It does not create an
117instance administrator.
118
119Confirm the installation with the installed executable:
120
121```powershell
122& "C:\Program Files\Vole\vole.exe" version
123```
124
125!!! warning "Windows reports an unknown publisher"
126 The MSI is not Authenticode-signed. The installer checks its checksum; for
127 independent signature verification, follow
128 [Verify a direct download](#verify-a-direct-download) before running the MSI.
129
130Use `.\install.ps1 -DryRun` to preview the installation. To select a release,
131see [Pin a release](#pin-a-release). To install without the script, download
132`vole-windows-amd64.msi` from the
133[stable channel](https://rodent.software/vole/channels/stable) and run it with
134`msiexec /i`.
135
136Continue with [Deploy on Windows](deploy/windows.md) to configure HTTPS, create
137the first administrator, and open the firewall. Run CI runners on Linux; the
138Windows package provides the forge server and CLI client only.
139
140## Build from source
141
142Use this path when you want to change Vole. You need Git and Go with toolchain
143management. `go.mod` selects Go 1.27.4 and downloads that toolchain when needed.
144SQLite uses a pure-Go driver, so you do not need a C compiler.
145
146```sh
147git clone https://rodent.software/vole.git
148cd vole
149go install ./cmd/vole
150vole version
151```
152
153`go install` writes the command to `$(go env GOPATH)/bin`; add that directory to
154your `PATH` if necessary. A source build reports its revision and adds `.dirty`
155when the checkout has uncommitted changes. See `DEVELOPMENT.md` in the checkout
156for tests and a throwaway development instance.
157
158## Other Linux installation methods
159
160### Install a release binary
161
162Use the standalone binary when your distribution does not use one of the
163supported package managers. Install Git first. These commands install the
164current stable `amd64` binary for your account:
165
166```sh
167curl -fLO https://rodent.software/vole/channels/stable/vole-linux-amd64
168install -D -m 0755 vole-linux-amd64 ~/.local/bin/vole
169vole version
170```
171
172On ARM, replace `vole-linux-amd64` with `vole-linux-arm64`. Make sure
173`~/.local/bin` is on your `PATH`. The binary is static and includes SQLite, so it
174has no runtime library dependencies. To authenticate the download before
175installing it, follow [Verify a direct download](#verify-a-direct-download).
176
177### Install a package file
178
179Download the `.deb`, `.rpm`, or `.pkg.tar.zst` for your architecture from the
180[stable channel](https://rodent.software/vole/channels/stable). Follow
181[Verify a direct download](#verify-a-direct-download) before installing it, then
182use the command for your distribution.
183
184Debian or Ubuntu:
185
186```sh
187sudo apt install ./vole_*.deb
188vole version
189```
190
191Fedora, RHEL, Rocky, or AlmaLinux:
192
193```sh
194sudo dnf install ./vole-*.rpm
195vole version
196```
197
198Arch Linux:
199
200```sh
201sudo pacman -U ./vole-*.pkg.tar.zst
202vole version
203```
204
205### Add the repository by hand
206
207Use these commands to inspect and apply each package-manager change yourself.
208They configure the same signed repository as the install script.
209
210#### Debian or Ubuntu
211
212```sh
213sudo install -d -m 0755 /etc/apt/keyrings
214sudo curl -fsSL https://rodent.software/vole/channels/stable/vole-release-key.asc \
215 -o /etc/apt/keyrings/vole.asc
216echo 'deb [signed-by=/etc/apt/keyrings/vole.asc] https://rodent.software/vole/channels/stable/apt ./' \
217 | sudo tee /etc/apt/sources.list.d/vole.list
218sudo apt update && sudo apt install vole
219vole version
220```
221
222#### Fedora, RHEL, or Rocky
223
224Use this repository on AlmaLinux as well:
225
226```sh
227sudo curl -fsSL https://rodent.software/vole/channels/stable/vole-release-key.asc \
228 -o /etc/pki/rpm-gpg/RPM-GPG-KEY-vole
229sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-vole
230sudo tee /etc/yum.repos.d/vole.repo >/dev/null <<'EOF'
231[vole]
232name=Vole
233baseurl=https://rodent.software/vole/channels/stable/yum/
234enabled=1
235gpgcheck=1
236repo_gpgcheck=1
237gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-vole
238EOF
239sudo dnf install vole
240vole version
241```
242
243#### Arch Linux
244
245If this machine has never initialized its pacman keyring, run
246`sudo pacman-key --init` first. Then add Vole's key and repository:
247
248```sh
249curl -fsSLO https://rodent.software/vole/channels/stable/vole-release-key.asc
250sudo pacman-key --add vole-release-key.asc
251sudo pacman-key --lsign-key 01A6F610DBD731DD3C2321C52D74BC712CE88523
252sudo tee -a /etc/pacman.conf >/dev/null <<'EOF'
253[vole]
254Server = https://rodent.software/vole/channels/stable/pacman/$arch
255SigLevel = Required DatabaseRequired
256EOF
257sudo pacman -Syu vole
258vole version
259```
260
261Pacman expands `$arch` to `x86_64` or `aarch64`. Apt and dnf select the
262architecture automatically.
263
264## Pin a release
265
266The install scripts follow the `stable` channel by default. To install one
267release instead, download the script for your platform and pass the tag.
268
269On Linux, or on macOS for a system-wide installation:
270
271```sh
272sudo sh install.sh --version v0.2.0
273```
274
275Omit `sudo` for a user-local macOS installation. On Windows:
276
277```powershell
278.\install.ps1 -Version v0.2.0
279```
280
281For a manually configured package repository, replace `/channels/stable` in its
282base URL with `/releases/v0.2.0/artifacts`. For example, a pinned apt source
283ends in `/releases/v0.2.0/artifacts/apt`. Change that URL when you are ready to
284upgrade.
285
286## Verify a direct download
287
288Repository installations already verify Vole's signed packages and repository
289metadata. Use this procedure for a binary, package file, or MSI that you download
290directly.
291
292Every release publishes `SHA256SUMS`, the detached signature `SHA256SUMS.asc`,
293and `vole-release-key.asc`. On Linux or macOS, download those files into the
294directory containing the release artifact you want to check:
295
296```sh
297tag=v0.2.0
298base=https://rodent.software/vole/releases/$tag/artifacts
299curl -fLO "$base/vole-release-key.asc"
300curl -fLO "$base/SHA256SUMS"
301curl -fLO "$base/SHA256SUMS.asc"
302gpg --import vole-release-key.asc
303gpg --fingerprint 'Vole Release'
304gpg --verify SHA256SUMS.asc SHA256SUMS
305sha256sum -c --ignore-missing SHA256SUMS
306```
307
308`gpg --verify` must report `Good signature`. The checksum command checks every
309downloaded file named in `SHA256SUMS` and skips files you did not download.
310
311On macOS, install GnuPG with `brew install gnupg` and replace the last command
312with:
313
314```sh
315shasum -a 256 -c --ignore-missing SHA256SUMS
316```
317
318On Windows, `install.ps1` performs the checksum comparison automatically. To
319check the MSI yourself, verify `SHA256SUMS.asc` with GnuPG, find the
320`vole-windows-amd64.msi` entry in `SHA256SUMS`, and compare it with:
321
322```powershell
323(Get-FileHash .\vole-windows-amd64.msi -Algorithm SHA256).Hash
324```
325
326For an independent key check, compare the imported key's fingerprint with the
327public key committed at `packaging/keys/vole-release.asc` in Vole's source
328repository. The release also publishes `vole-release-key.fingerprint`. HTTPS
329authenticates the release host; comparing with the source checkout gives you a
330second path for authenticating the key.
331
332## Upgrade an installed server
333
334!!! danger "Back up before upgrading"
335 Database migrations run in place and cannot be reversed by installing an
336 older binary. Follow [Back up an instance](backup-and-restore.md#back-up-an-instance)
337 and test the backup before upgrading.
338
339### Upgrade a Linux package
340
341Use the package manager connected to Vole's repository.
342
343Debian or Ubuntu:
344
345```sh
346sudo apt update && sudo apt upgrade vole
347```
348
349Fedora, RHEL, Rocky, or AlmaLinux:
350
351```sh
352sudo dnf upgrade vole
353```
354
355Arch Linux:
356
357```sh
358sudo pacman -Syu vole
359```
360
361Restart the service if the package manager did not:
362
363```sh
364sudo systemctl restart vole
365```
366
367Check the installed version and service state:
368
369```sh
370vole version
371sudo systemctl status vole --no-pager
372```
373
374Also check account sign-in, an SSH clone, and runner connectivity. Upgrade the
375instance before its runners; see [Upgrade a runner](runner.md#upgrade-a-runner).
376
377### Upgrade macOS or Windows
378
379On macOS, use `brew upgrade vole` for a Homebrew installation or run the install
380script again for a standalone binary. Restart a running service after upgrading.
381On Windows, run `install.ps1` again or install the newer MSI; see
382[Deploy on Windows § Upgrading](deploy/windows.md#upgrading).
383
384## Next
385
386- [Quickstart](quickstart.md) — create a local repository, push a commit, and
387 open an issue.
388- [Deploy on Linux](deploy/linux.md) — configure a public forge and its first
389 administrator.
390- [Backup and restore](backup-and-restore.md) — protect an instance before an
391 upgrade.
392