apt-cyg

apt-cyg (https://github.com/transcode-open/apt-cyg) is a single bash script wrapping Cygwin’s package repository.

Cygwin has no root/sudo concept: every operation runs as the invoking user. apt-cyg has no upgrade, outdated or cache-cleaning command at all: packages are upgraded by re-running Cygwin’s own setup program.

Both list (installed) and listall (search) print bare package names, one per line, with no version or description. apt-cyg applies the search query as a regular expression over the downloaded setup.ini catalog, so mpm refilters exact and extended matches itself.

Platforms

  • ⨂ Unix (Cygwin only)

Operations

Operation

Supported

Notes

installed

outdated

search

exact and extended search backfilled by mpm

install

upgrade

upgrade_all

remove

sync

cleanup

Ecosystem

  • Accepted purl types: pkg:apt-cyg

Usage

$ mpm --apt-cyg installed
$ mpm --apt-cyg search "query"
$ mpm install pkg:apt-cyg/hello
$ mpm --dry-run install pkg:apt-cyg/hello

Every example above accepts --dry-run, which simulates the underlying manager calls without touching the system: the safe way to watch what mpm would do before trusting it.

Deselect the manager for a single run with --no-apt-cyg, disable it from your configuration, or tune its invocation attributes with per-manager overrides.

Command line

  • CLI names, in lookup order: apt-cyg

The version is probed by running:

$ apt-cyg --version
apt-cyg version 1

and extracted with:

r"apt-cyg version (?P<version>\S+)"

Privilege escalation

mpm runs this manager as the current user and never prepends sudo by default. Flip the policy for its privileged operations with --sudo or the per-manager sudo override.

None of its operations needs root.

See privilege escalation for the full policy.

Cooldown

State of apt-cyg’s release-age gating, from the cooldown support table:

  • Status: ➖ N/A (unmaintained since 2017; wraps Cygwin’s setup.exe repository)

  • Reference: transcode-open/apt-cyg

With --cooldown set, mpm skips this manager’s install and upgrade operations rather than run them unguarded (fail-closed); --allow-unsupported-managers opts back in.

Reference traces

Raw native outputs captured in the bundled definition: the reference mpm’s parsers were written against. If you know apt-cyg well and a transcript below looks wrong, or a newer release changed its output format, report it.

$ apt-cyg list
bash
coreutils
tree
$ apt-cyg listall {query}
tree