Visync
Ventoy Package Manager. Install, update, and manage Linux distros on your Ventoy drive.
Install
Requires Python 3.12+ and a mounted Ventoy drive.
pip install visync
For a development checkout:
pip install -e ".[dev]"
Both layouts work out of the box: config.toml ships inside the installed package, so visync search finds the distro list from any directory.
Quick Start
# See what's available
visync search
# Auto-detect distros already on the drive
visync autodetect
# Install a distro
visync install archlinux
visync install nixos-graphical
visync install leap
# Batch install from file
visync install -i packages.txt
# Update all installed distros
visync update
# Update a specific distro
visync update tails
# Check for old versions (dry-run)
visync sync
# Remove old versions
visync sync --clean
# Remove a distro
visync remove tails
# Show distro details
visync info archlinux
# Verify checksums
visync verify
Commands
| Command | Description |
|---|---|
visync search [query] |
List available distros (filter by query) |
visync install <name> |
Download and register a distro |
visync install -i <file> |
Batch install from file (one name per line) |
visync remove <name> |
Delete from drive and unregister |
visync update [name] [--no-staging] |
Update installed distros (all if no name given) |
visync sync [--no-staging] |
Sync installed distros to latest |
visync sync --all [--no-staging] |
Sync all configured distros |
visync sync --clean [--no-staging] |
Remove old versions of same distro |
visync sync --reset-visync |
Allow the watchdog to wipe an over-budget .visync/ |
visync list |
List ISOs on the drive |
visync autodetect |
Register existing ISOs as installed |
visync verify |
Verify checksums against upstream |
visync config [--config |
Show the selected configuration and verification setting |
visync info <name> |
Show distro details |
Batch Install File
Create a text file with one distro name per line:
# My Ventoy setup
archlinux
nixos-minimal
leap
tails
ubuntu-desktop
ubuntu-server
Then run:
visync install -i packages.txt
Blank lines and lines starting with # are ignored.
Configuration
Edit config.toml to add or remove distros. Each distro entry defines a scraping strategy, mirror URL, and checksum verification method.
Config resolution order: explicit --config path, then $VISYNC_CONFIG, then ~/.config/visync/config.toml, then the config.toml shipped inside the installed package. A config.toml in the current directory is only used as a last resort, so planted configs cannot hijack identification.
Release selection: version_filter restricts a scraper to one release family before the newest match is chosen. Ubuntu entries use \d*[02468]\.04(\.\d+)* so they track the current LTS (26.04.1) and ignore interim releases (25.10, 26.10). NixOS resolves the newest stable YY.MM channel from the release bucket at scrape time, so it advances to the next stable without a config edit; set channel = "26.05" to pin deliberately while that channel is current.
Built-in strategies:
| Strategy | Description | Example |
|---|---|---|
direct_match |
Flat index page | Arch Linux, Kali Linux, Debian netinst, openSUSE Tumbleweed |
fedora_nested |
Version dirs + variant subdirs | Fedora, Fedora KDE, openSUSE Leap |
ubuntu_nested |
Version dirs | Ubuntu, Zorin OS, CachyOS, Linux Mint, Parrot Security |
nixos_channel |
Stable-channel lookup + channel page parse | NixOS Minimal, NixOS Graphical |
popos_api |
JSON API | Pop!_OS |
tails_api |
JSON API | Tails |
elementary_page |
Fresh homepage link + installation-guide checksum | elementary OS |
Checksum formats: gpg_checksum (Fedora — inline SHA256 (file) = hash), sha256sums (Ubuntu, Arch, CachyOS, Linux Mint, Parrot, Zorin OS, Kali, NixOS, Tails, Debian netinst, openSUSE Tumbleweed), sha512sums (openSUSE Leap), json (Tails), elementary_docs (elementary OS — a SHA-256 tied to the exact ISO filename on the installation guide)
elementary OS publishes a temporary, tokenised download link on its homepage. visync reads that link fresh on every run and never hardcodes, generates, or caches the token; only dl.elementaryos.org is accepted, and an expired link is refreshed once before failing. The SHA-256 is read from the installation guide only when it is explicitly associated with the selected filename. A missing or ambiguous digest keeps the file and reports it as UNVERIFIED.
Signature checking is configured separately via signing_key_url + signing_key_fingerprint and works with any signed layout, so Parrot's sectioned hash list gets both a signature check and a digest check.
How it works
- Detect — finds mounted Ventoy drives on Windows, macOS, or Linux (with udisksctl automount)
- Scrape — concurrent mirror scraping with TCP pre-flight checks and watchdog timeouts. A distro whose mirror can't be read is reported with the reason and makes the command exit non-zero; it is never silently counted as up to date
- Select — release-family filters keep scrapers on the intended series: Ubuntu tracks the current LTS (even-year
.04, skipping interim releases and beta-only directories), and NixOS resolves the current stable channel from the release bucket instead of pinning a version string - Compare — version-aware comparison (semantic or date-based) against local ISOs
- Download — streaming downloads with staging buffer (less drive wear), falls back to direct if staging full. Use
--no-staging/--no-bufferto skip the staging buffer and download directly to the Ventoy drive. - Verify — optional checksum verification against published hashes
- Clean —
--cleanremoves deprecated ISOs only after all requested updates complete and a replacement is verified; combine with--dry-runto preview - State — tracks installed distros in
.visync/installed.json
Safety
- Old ISOs are retained by default.
--cleanremoves deprecated versions only after the entire requested sync succeeds and a verified replacement is installed;--dry-runpreviews updates without modifying the drive - A failed sync, an unverified replacement, or a sync with no verified replacement never removes rollback images
removeandnuke-metadatashow exactly what will be deleted and ask for confirmation (--yesskips)- Ambiguous distro queries are refused with candidate lists instead of acting on an arbitrary match
- Distro matching uses whole-token keywords (
popdoes not matchpopcorn.iso) .visync/watchdog enforces a 1 GiB ceiling by deep-cleaning orphaned metadata. Wiping.visync/entirely is opt-in viasync --reset-visync, because it destroysinstalled.jsonand every registration- The watchdog never runs on
--dry-run - Guardrails prevent deletion of
.isoor.imgfiles under any circumstance — including inside.visync/metadata - Downloads use parallel range requests with per-chunk HTTP 206 and byte-count validation; truncated or range-ignoring servers fail loudly instead of producing silent corruption
- Checksum mismatch deletes the download; an unreachable checksum source keeps the file and warns (
UNVERIFIED) - HTTPS is enforced for all mirrors and checksum sources (loopback exempt); https→http redirects are blocked
- GPG signature verification supports fingerprint pinning via
signing_key_fingerprint, and applies to any signed checksum file regardless of its digest layout (Fedora's inlineSHA256 (file) = hash, Parrot's sectioned md5/sha256/sha512 list) - When multiple digests for the same file appear in one signed list, the configured
checksum_algoselects the section — a first-match parser would compare an MD5 against a SHA-256 and delete a good download as corrupt - Failed downloads clean up
.partfiles automatically - Install verifies file exists on drive before marking as installed
- State and metadata writes are atomic (tmp file + rename)
Tests
python3 -m pytest test/ -v
CI installs from the committed uv.lock so a dependency release cannot break the build without a diff. uv is used for reproducible CI and builds only — installing visync itself with pip is fully supported.
Debug
VISYNC_DEBUG=1 visync sync
License
MIT — see LICENSE.
Metadata
Release files for visync 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| visync-1.2.0.tar.gz | 151.6 kB | With provenance | Details for visync-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| visync-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for visync-1.2.0-py3-none-any.whl |
Total release size: 220.5 kB
Release files / visync-1.2.0.tar.gz
| Download URL | visync-1.2.0.tar.gz |
|---|---|
| Size | 151.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50626b46d54ab0f49044551caa75890e87ef0232174522aa1896839366719ff2
|
|
BLAKE2b-256 checksum How to use checksums |
9b453323f854fee893b1954d54361f66169890ce7de18e0f0850757437b14235
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / visync-1.2.0-py3-none-any.whl
| Download URL | visync-1.2.0-py3-none-any.whl |
|---|---|
| Size | 68.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
432a2c950813283ae3273529248d73ab239b76bf13a597bc4582cc816646972b
|
|
BLAKE2b-256 checksum How to use checksums |
5dc2b436aca85bb6f87f80235cbae262999b42366645c62294369c93beebd241
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logSecurity for visync 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for visync-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.