Installation
tsoqna is a single binary with no runtime dependencies. Pick whichever package manager you already use.
Homebrew (macOS and Linux)#
brew tap tsoqna/tools
brew install tsoqna
Upgrades come through brew upgrade tsoqna as usual. The formula also installs shell completions and the man page.
pipx#
The Python package is a thin wrapper that ships the prebuilt binary as a wheel, so you do not need a compiler. Use pipx rather than plain pip to keep it out of your project environments.
pipx install tsoqna
Wheels are published for macOS (x86-64 and Apple silicon), Linux (x86-64 and aarch64, glibc 2.28+), and Windows (x86-64).
Cargo#
If you have a Rust toolchain (1.79 or newer), you can build from the crate:
cargo install tsoqna --locked
--locked uses the exact dependency versions we tested with. Leaving it off usually works, but if a build fails, try again with it.
Prebuilt archives#
Each release also comes as a plain .tar.gz / .zip with a checksum file. Archives are attached to releases in the source repository; a public mirror is coming soon. Unpack anywhere on your PATH:
tar -xzf tsoqna-1.4.2-x86_64-linux.tar.gz
sha256sum -c tsoqna-1.4.2-x86_64-linux.tar.gz.sha256
install -m 755 tsoqna ~/.local/bin/
Check it works#
$ tsoqna --version
tsoqna 1.4.2 (heic, raw, video)
The words in brackets are the format families compiled in. All official builds include all three; a custom cargo build can leave some out with --no-default-features.
Shell completions#
# zsh
tsoqna completions zsh > "${fpath[1]}/_tsoqna"
# bash
tsoqna completions bash > ~/.local/share/bash-completion/completions/tsoqna
# fish
tsoqna completions fish > ~/.config/fish/completions/tsoqna.fish
Upgrading from 0.x#
If you used tsoqna before 1.0, two things changed: the --yes flag is gone (real runs no longer ask for confirmation; use --dry-run first instead), and the config file moved from ~/.tsoqnarc to the platform config directory. Run tsoqna config migrate once and it will move and convert the old file for you.
Uninstalling#
Remove it with the same tool you installed it with (brew uninstall, pipx uninstall, cargo uninstall). tsoqna keeps nothing outside its config directory and the journals it writes next to your photos, which are safe to delete once you are happy with a run.