# Install greenmask with Homebrew, Nix

PostgreSQL dump and obfuscation tool. Version 0.2.22 via Homebrew; verified 2026-07-01.

## Install

```sh
sudo av install brew:greenmask
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install greenmask
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#greenmask
```

  Evidence: nixpkgs package indexes: pkgs/by-name/gr/greenmask/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:greenmask
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/greenmask>
- **Version:** 0.2.22
- **Source summary:** PostgreSQL dump and obfuscation tool
- **Homepage:** <https://www.greenmask.io/>
- **Repository:** <https://github.com/GreenmaskIO/greenmask>
- **Upstream docs:** <https://docs.greenmask.io/>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/GreenmaskIO/greenmask/archive/refs/tags/v0.2.22.tar.gz>
- **Last updated:** 2026-07-01T18:24:11Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- greenmask (cli)
- greenmask (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.2.22
- Package-manager updated: 2026-07-01
- Local data: ok
- Upstream repository: https://github.com/GreenmaskIO/greenmask
- Upstream latest detected: v0.2.22 (current)
## Project history and usage

Greenmask is an open-source database dump, anonymization, synthetic-data generation, and restore tool aimed at PostgreSQL workflows, with MySQL work represented in the project materials as a developing area. Its history is short but well documented through official release notes and GitHub releases.

### Project history

The project presents itself as a stateless logical dump proxy that does not require database schema changes and remains compatible with familiar PostgreSQL tools such as pg_restore. That design places it closer to backup and staging-data infrastructure than to an application-level masking library.

The v0.1.0 release notes describe the January 2024 release as the first production-ready version, with CI/CD, a Docker Compose playground, transformer improvements, JSON-line protocol fixes, and binary assets. The v0.2.0 release notes describe an October 2024 milestone focused on database subsetting, pgzip compression, topological restore order, INSERT-format restoration, dynamic transformer parameters, and transformer-engine refactoring.

### Adoption history

Greenmask entered package-manager culture as a CLI for teams that need repeatable sanitized databases for staging, analytics, and development. The batch package facts show Homebrew and Nix packaging, while upstream distributes release assets, Docker-oriented workflows, and documentation that emphasizes CI/CD integration.

### How it is used

Greenmask is used around logical backup and restore flows: dump a database, apply transformations or subsets, store the result locally or in S3-compatible storage, and restore into another environment. The documentation emphasizes deterministic transformers, dynamic parameters, validation output, schema diff checks, and compatibility with PostgreSQL dump/restore routines.

The default configuration convention in the batch curation is config.yml, matching the project's example configuration style.

### Why package nerds care

Greenmask matters to package users because it packages a messy operational workflow into one repeatable binary: masked dumps, synthetic data, subsetting, restore order, and storage backends. That makes it attractive for development environments where production-like data is useful but raw production data is unsafe.

For Homebrew-style packaging, it is also a representative modern Go CLI: single binary, release assets, Docker examples, and docs-first operational commands.

### Timeline

- 2024: v0.1.0 release notes marked the first production-ready version.
- 2024: v0.2.0 added database subsetting, pgzip support, topological restore order, and transformer refactoring.
- 2025: v1.0.0b1 release metadata appeared for the 1.0 beta line.
- 2026: v0.2.x releases continued through v0.2.21 in the official GitHub release feed.

### Related projects

- PostgreSQL pg_dump and pg_restore are central compatibility references in the documentation.
- Docker Compose, MinIO, and S3-compatible storage appear in the official examples and feature descriptions.
- Transformer concepts such as random, hash, template, and CMD transformers form the project's internal extension surface.

### Sources

- <https://api.github.com/repos/GreenmaskIO/greenmask/releases?per_page=100>
- <https://docs.greenmask.io/v0.2.21/>
- <https://docs.greenmask.io/v0.2.21/release_notes/greenmask_0_1_0/>
- <https://docs.greenmask.io/v0.2.21/release_notes/greenmask_0_2_0/>
- <https://github.com/GreenmaskIO/greenmask>


## Security Notes

No matching local secret-handling manifest was found for greenmask. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: config.yml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** greenmask
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - greenmask: normalized package name match | nixpkgs package indexes: pkgs/by-name/gr/greenmask/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [automysqlbackup](https://www.automicvault.com/pkg/brew/automysqlbackup/) - Shares av.db curated category or tags: backup, cli, data, database.
- [dexter](https://www.automicvault.com/pkg/brew/dexter/) - Shares av.db curated category or tags: cli, data, database, postgresql.
- [doltgres](https://www.automicvault.com/pkg/brew/doltgres/) - Shares av.db curated category or tags: cli, data, database, postgresql.
- [dumpling](https://www.automicvault.com/pkg/brew/dumpling/) - Shares av.db curated category or tags: backup, cli, data, database.
- [kitchen-sync](https://www.automicvault.com/pkg/brew/kitchen-sync/) - Shares av.db curated category or tags: cli, data, database, postgresql.
- [lazysql](https://www.automicvault.com/pkg/brew/lazysql/) - Shares av.db curated category or tags: cli, data, database, postgresql.
- [percona-xtrabackup](https://www.automicvault.com/pkg/brew/percona-xtrabackup/) - Shares av.db curated category or tags: backup, cli, data, database.
- [pgloader](https://www.automicvault.com/pkg/brew/pgloader/) - Shares av.db curated category or tags: cli, data, database, postgresql.

## Combined YAML source

View the package source record on GitHub. [combined/greenmask.yml](https://github.com/automic-vault/db/blob/main/combined/greenmask.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
