Comtrya

Comtrya·Comtrya.Comtrya

Comtrya is a tool to help provision a fresh OS with the packages and configuration (dotfiles) you need to become productive again.

winget install --id Comtrya.Comtrya --exact --source winget

Latest 0.13.0·November 30, 2026

Release Notes

Stage 4 of the road to 1.0.0: make it expressive. Manifests can now say version: 2, the format 1.0.0 will promise to keep. Version 1 manifests keep working unchanged, and comtrya manifests upgrade converts them. 1.0.0 will be the last 0.13.x with that promise added. Install curl -fsSL https://comtrya.dev/install.sh | sh Windows: irm https://comtrya.dev/install.ps1 | iex. Or cargo install comtrya.

Manifest version 2 A chapter of its own and a migration page explain it. In short:

  • The manifest is parsed first, then each value is rendered on its own, so an error names the value; the manifest's where is checked before any template (#786)
  • A value that is only a template can become a number or a boolean (#788)
  • One name per action and field: from/to everywhere, also on file.link; old aliases are refused with the name to use (#786, #787)
  • Variants set only the fields that differ from their action, and where picks the variant (#789)
  • Files next to the manifest with ./, so your own folder layout works without files/ (#790)
  • title names an action in the log (#786)
  • register on command.run keeps its stdout, stderr and exit code for later where conditions and templates (#792)
  • schema-v2.json for editors (#792)
  • comtrya manifests upgrade shows how a version 1 manifest looks in version 2, --write changes the files. A manifest that only needs version: 2 keeps its text and comments, and files that aren't manifests are left alone (#794, #796)

Features

  • package.install takes state: present | latest | absent with every provider, in both versions (#791, #793, #26)
  • present installs only the missing packages, so a second run does nothing (#800, #805)
  • ignore globs in Comtrya.yaml leave files that aren't manifests out (#785)
  • manifest.name and manifest.dir contexts, in both versions (#790, #317)
  • user.cache_dir context (#799)

Changed

  • apt uses apt-get, whose command line is stable for scripts, and doesn't keep downloaded packages. A sudoers rule that lets comtrya run only apt without a password needs apt-get too (#802)
  • apt runs apt-get update first when its package lists don't know a package, like on a fresh system (#801)
  • An action skipped by its where says so in the log, instead of "nothing to be done to reconcile action" (#806)
  • The log line of an action with variants names the variant that ran (#803)
  • file.link without from says it needs from (#787)

Fixes

  • The file.link docs had from and to reversed (#804)

Security

  • cargo deny ignores RUSTSEC-2026-0620 (curve25519-dalek, through age): comtrya only uses age's passphrase (scrypt) encryption, not the affected code, and no fixed version is released yet (#798)

For contributors

  • Compat tests compare with comtrya-lib 0.12.0 (#784)
  • docs/book.toml builds with mdBook 0.5

Installer type: portable

x64—217E74198B683DE946E13E265BE316EAF0E7332401BA0D2B8FE3B8317575166B

Details

Homepage
https://github.com/comtrya/comtrya
License
MIT License
Publisher
Comtrya
Support
https://github.com/comtrya/comtrya/issues

Tags

configuration-managementdotfileshacktoberfest

Older versions (3)

0.12.0
x64—1B5B245BD360D98B3D9788A3C8F81BF9047C5F187B3E2A53EAEB8662CCE38A19
0.11.0
x64—A1FCC97AFB1904390FCD928329D0CFABE9621481EC0A14D9A5E344C25D11F59A
0.9.2
x64—F1ECBB3E8816245845D31633DB6C5A52C3EDC8689CCB9C13ABABA075D58E8202